Skip to content

Commit 791b124

Browse files
committed
fixed CS
1 parent 7bb394e commit 791b124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Filesystem/Filesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function makePathRelative($endPath, $startPath)
331331
$depth = count($startPathArr) - $index;
332332

333333
// When we need to traverse from the start, and we are starting from a root path, don't add '../'
334-
if ($startPath[0] == '/' && $index == 0 && $depth == 1) {
334+
if ('/' === $startPath[0] && 0 === $index && 1 === $depth) {
335335
$traverser = '';
336336
} else {
337337
// Repeated "../" for each level need to reach the common path

0 commit comments

Comments
 (0)