Revert "fixed CS"

This reverts commit 11816c5e51.
This commit is contained in:
Fabien Potencier 2014-05-26 18:41:58 +02:00
parent af1c41c2fc
commit d1f77c6d0d

View File

@ -750,11 +750,13 @@ abstract class Kernel implements KernelInterface, TerminableInterface
return preg_replace_callback("{'([^']*)(".preg_quote($rootDir)."[^']*)'}", function ($match) use ($filesystem, $cacheDir) {
$prefix = isset($match[1]) && $match[1] ? "'$match[1]'.__DIR__" : "__DIR__";
if ('.' === $relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/')) {
$relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/');
if ($relativePath === '.') {
return $prefix;
}
return $prefix.".'/".$relativePath."'";
return $prefix . ".'/" . $relativePath . "'";
}, $content);
}