1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-09-20 10:34:05 +00:00

remove directory rtrim

The rtrim is redundant, it doesn't communicate anything useful.
This commit is contained in:
lukinovec 2026-09-18 10:58:01 +02:00
parent 35d96b5b6f
commit 1ef7710da4

View file

@ -67,7 +67,7 @@ class RemoveStorageSymlinksAction
// Remove the directories CreateStorageSymlinksAction created for the symlink
// 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)) {
// Stop the loop if the directory couldn't be removed
break;