Prechádzať zdrojové kódy

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

Removing newlines before closing braces leads to issues with heredoc/nowdoc
Igor Wiedler 14 rokov pred
rodič
commit
dedf29ffda

+ 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;
     }