reliqarts/laravel-scavenger

View on GitHub
src/Console/Command/Seek.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method showResult has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function showResult(Result $result): void
    {
        if (!$result->isSuccess()) {
            foreach ($result->getErrors() as $errorMessage) {
                $this->line(PHP_EOL . "<error>✘</error> {$errorMessage}");
Severity: Minor
Found in src/Console/Command/Seek.php - About 1 hr to fix

    Method handle has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function handle(ConfigProvider $configProvider, Seeker $seeker): void
        {
            $saveScraps = $this->option('keep');
            $target = $this->argument('target');
            $keywords = $this->option('keywords');
    Severity: Minor
    Found in src/Console/Command/Seek.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status