Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
PSR-2 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lansoweb committed Jan 18, 2015
1 parent b1a8a03 commit 542c11f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/classmap_generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@
$maxWidth = max($maxWidth, strlen($match[1]));
}

$content = preg_replace_callback('(\n\s+([^=]+)=>)', function ($matches)
{
$content = preg_replace_callback('(\n\s+([^=]+)=>)', function ($matches) {
global $maxWidth;

return str_replace(' =>', str_repeat(' ', $maxWidth - strlen($matches[1])) . ' =>', $matches[0]);
}, $content);

Expand Down

0 comments on commit 542c11f

Please sign in to comment.