From 9a47224c094fbeaad3d955c45d7ec11235fd86a7 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 25 Oct 2022 11:48:54 -0700 Subject: [PATCH] Lint fix --- lib/Command/Index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Command/Index.php b/lib/Command/Index.php index 15a36c41..4b10559e 100644 --- a/lib/Command/Index.php +++ b/lib/Command/Index.php @@ -197,7 +197,7 @@ class Index extends Command $endTime = microtime(true); $execTime = (int) (($endTime - $startTime) * 1000) / 1000; $nTotal = $this->nInvalid + $this->nSkipped + $this->nProcessed; - $this->output->writeln("=========================================="); + $this->output->writeln('=========================================='); $this->output->writeln("Checked {$nTotal} files in {$execTime} sec"); $this->output->writeln($this->nInvalid.' not valid media items'); $this->output->writeln($this->nSkipped.' skipped because unmodified'); @@ -265,8 +265,9 @@ class Index extends Command // Respect the '.nomedia' file. If present don't traverse the folder if ($folder->nodeExists('.nomedia')) { - $this->output->writeln('Skipping folder '.$folderPath." because of .nomedia file"); + $this->output->writeln('Skipping folder '.$folderPath.' because of .nomedia file'); $this->previousLineLength = 0; + return; } @@ -276,7 +277,7 @@ class Index extends Command $this->output->write("\r".str_repeat(' ', $this->previousLineLength)."\r"); } $this->output->write($line."\r"); - $this->previousLineLength = strlen($line); + $this->previousLineLength = \strlen($line); $nodes = $folder->getDirectoryListing();