Skip to content

Commit 11816c5

Browse files
committed
fixed CS
1 parent 7dc8931 commit 11816c5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -750,13 +750,11 @@ private function removeAbsolutePathsFromContainer($content)
750750
return preg_replace_callback("{'([^']*)(".preg_quote($rootDir)."[^']*)'}", function ($match) use ($filesystem, $cacheDir) {
751751
$prefix = isset($match[1]) && $match[1] ? "'$match[1]'.__DIR__" : "__DIR__";
752752

753-
$relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/');
754-
755-
if ($relativePath === '.') {
753+
if ('.' === $relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/')) {
756754
return $prefix;
757755
}
758756

759-
return $prefix . ".'/" . $relativePath . "'";
757+
return $prefix.".'/".$relativePath."'";
760758
}, $content);
761759
}
762760

0 commit comments

Comments
 (0)