Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
StyleCIBot committed Dec 16, 2023
1 parent 8b60ae8 commit 71a20d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/Features/CheckImports/CheckImportReporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Imanghafoori\LaravelMicroscope\Features\CheckImports;

use Imanghafoori\LaravelMicroscope\BladeFiles;
use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter;
use Imanghafoori\LaravelMicroscope\FileReaders\FilePath;
use Imanghafoori\LaravelMicroscope\Iterators\ChecksOnPsr4Classes;
use Imanghafoori\TokenAnalyzer\ImportsAnalyzer;
Expand Down Expand Up @@ -61,10 +60,10 @@ public static function printPsr4(array $psr4Stats)
$output = ' <fg=blue>./'.$composerPath.'composer.json'.'</>'.PHP_EOL;
foreach ($psr4 as $psr4Namespace => $psr4Paths) {
foreach ($psr4Paths as $path => $countClasses) {
$countClasses = str_pad((string) $countClasses, 3, ' ', STR_PAD_LEFT);
$len = strlen($psr4Namespace);
$output .= ' - <fg=red>'.$psr4Namespace.str_repeat(' ', $spaces - $len).' </>';
$output .= " <fg=blue>$countClasses </>file".($countClasses == 1 ? '' : 's').' found (<fg=green>./'.$path."</>)\n";
$countClasses = str_pad((string) $countClasses, 3, ' ', STR_PAD_LEFT);
$len = strlen($psr4Namespace);
$output .= ' - <fg=red>'.$psr4Namespace.str_repeat(' ', $spaces - $len).' </>';
$output .= " <fg=blue>$countClasses </>file".($countClasses == 1 ? '' : 's').' found (<fg=green>./'.$path."</>)\n";
}
}
$result .= $output.PHP_EOL;
Expand Down
1 change: 0 additions & 1 deletion src/Features/CheckImports/CheckImportsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ private function getParamProvider()

private function reportAll($psr4Stats, $foldersStats, $bladeStats, $routeCounts, $errors)
{

}

private function getLaravelFolders()
Expand Down

0 comments on commit 71a20d7

Please sign in to comment.