Переглянути джерело

[HttpKernel] No longer reformat {} "a la python"

Removing newlines before closing braces leads to issues with heredoc/nowdoc
Igor Wiedler 14 роки тому
батько
коміт
dedf29ffda
1 змінених файлів з 0 додано та 3 видалено
  1. 0 3
      src/Symfony/Component/HttpKernel/Kernel.php

+ 0 - 3
src/Symfony/Component/HttpKernel/Kernel.php

@@ -446,9 +446,6 @@ abstract class Kernel implements HttpKernelInterface, \Serializable
         // 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;
     }