Browse Source

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

Removing newlines before closing braces leads to issues with heredoc/nowdoc
Igor Wiedler 14 năm trước cách đây
mục cha
commit
dedf29ffda
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  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;
     }