mirror of
https://github.com/archtechx/tenancy.git
synced 2026-09-20 14:14:03 +00:00
remove directory rtrim
The rtrim is redundant, it doesn't communicate anything useful.
This commit is contained in:
parent
35d96b5b6f
commit
1ef7710da4
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ class RemoveStorageSymlinksAction
|
||||||
|
|
||||||
// Remove the directories CreateStorageSymlinksAction created for the symlink
|
// Remove the directories CreateStorageSymlinksAction created for the symlink
|
||||||
// until a non-empty one is reached.
|
// until a non-empty one is reached.
|
||||||
while (str_starts_with(rtrim($directory, '/\\'), rtrim($publicRoot, '/\\') . DIRECTORY_SEPARATOR) && $files->isEmptyDirectory($directory)) {
|
while (str_starts_with($directory, rtrim($publicRoot, '/\\') . DIRECTORY_SEPARATOR) && $files->isEmptyDirectory($directory)) {
|
||||||
if (! @rmdir($directory)) {
|
if (! @rmdir($directory)) {
|
||||||
// Stop the loop if the directory couldn't be removed
|
// Stop the loop if the directory couldn't be removed
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue