Skip to content

Commit

Permalink
[HttpKernel] No longer reformat {} "a la python"
Browse files Browse the repository at this point in the history
Removing newlines before closing braces leads to issues with heredoc/nowdoc
  • Loading branch information
igorw authored and fabpot committed Jan 10, 2011
1 parent 98c787a commit dedf29f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Symfony/Component/HttpKernel/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,9 +446,6 @@ static public function stripComments($source)
// replace multiple new lines with a single newline
$output = preg_replace(array('/\s+$/Sm', '/\n+/S'), "\n", $output);

// reformat {} "a la python"
$output = preg_replace(array('/\n\s*\{/', '/\n\s*\}/'), array(' {', ' }'), $output);

return $output;
}

Expand Down

0 comments on commit dedf29f

Please sign in to comment.