Remove redundant path check
The first `if` statement in this method already performs this same check, so the expression here always evaluated to `true`.
This commit is contained in:
parent
d33e2458ec
commit
10795cf096
@ -1120,7 +1120,7 @@ class Request
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sourceDirs = explode('/', isset($basePath[0]) && '/' === $basePath[0] ? substr($basePath, 1) : $basePath);
|
$sourceDirs = explode('/', isset($basePath[0]) && '/' === $basePath[0] ? substr($basePath, 1) : $basePath);
|
||||||
$targetDirs = explode('/', isset($path[0]) && '/' === $path[0] ? substr($path, 1) : $path);
|
$targetDirs = explode('/', substr($path, 1));
|
||||||
array_pop($sourceDirs);
|
array_pop($sourceDirs);
|
||||||
$targetFile = array_pop($targetDirs);
|
$targetFile = array_pop($targetDirs);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user