Skip to content

Commit 51ecc78

Browse files
committed
Revert "fixed CS"
This reverts commit 11816c5.
1 parent 4d6cad5 commit 51ecc78

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Kernel.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,11 +750,13 @@ 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-
if ('.' === $relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/')) {
753+
$relativePath = rtrim($filesystem->makePathRelative($match[2], $cacheDir), '/');
754+
755+
if ($relativePath === '.') {
754756
return $prefix;
755757
}
756758

757-
return $prefix.".'/".$relativePath."'";
759+
return $prefix . ".'/" . $relativePath . "'";
758760
}, $content);
759761
}
760762

0 commit comments

Comments
 (0)