فهرست منبع

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