| Conditions | 13 | 
| Paths | 52 | 
| Total Lines | 69 | 
| Code Lines | 48 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 1 | Features | 0 | 
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php  | 
            ||
| 37 | protected function execute(InputInterface $input, OutputInterface $output): int  | 
            ||
| 38 |     { | 
            ||
| 39 | $this->debugger->stop();  | 
            ||
| 40 | |||
| 41 | $io = new SymfonyStyle($input, $output);  | 
            ||
| 42 | |||
| 43 |         if ($input->hasArgument('route') && !empty($input->getArgument('route'))) { | 
            ||
| 44 |             $routes = (array) $input->getArgument('route'); | 
            ||
| 45 |             foreach ($routes as $route) { | 
            ||
| 46 | $route = $this->routeCollection->getRoute($route);  | 
            ||
| 47 | $data = $route->__debugInfo();  | 
            ||
| 48 | $action = '';  | 
            ||
| 49 | $middlewares = [];  | 
            ||
| 50 |                 if (!empty($data['middlewareDefinitions'])) { | 
            ||
| 51 | $middlewareDefinitions = $data['middlewareDefinitions'];  | 
            ||
| 52 | $action = array_pop($middlewareDefinitions);  | 
            ||
| 53 | $middlewares = $middlewareDefinitions;  | 
            ||
| 54 | }  | 
            ||
| 55 | |||
| 56 | $io->title($data['name']);  | 
            ||
| 57 | $definitionList = [  | 
            ||
| 58 | ['Methods' => $this->export($data['methods'])],  | 
            ||
| 59 | ['Name' => $data['name']],  | 
            ||
| 60 | ['Pattern' => $data['pattern']],  | 
            ||
| 61 | ];  | 
            ||
| 62 |                 if (!empty($action)) { | 
            ||
| 63 | $definitionList[] = ['Action' => $this->export($action)];  | 
            ||
| 64 | }  | 
            ||
| 65 |                 if (!empty($data['defaults'])) { | 
            ||
| 66 | $definitionList[] = ['Defaults' => $this->export($data['defaults'])];  | 
            ||
| 67 | }  | 
            ||
| 68 |                 if (!empty($data['hosts'])) { | 
            ||
| 69 | $definitionList[] = ['Hosts' => $this->export($data['hosts'])];  | 
            ||
| 70 | }  | 
            ||
| 71 | |||
| 72 | $io->definitionList(...$definitionList);  | 
            ||
| 73 |                 if (!empty($middlewares)) { | 
            ||
| 74 |                     $io->section('Middlewares'); | 
            ||
| 75 |                     foreach ($middlewares as $middleware) { | 
            ||
| 76 | $io->writeln(is_string($middleware) ? $middleware : $this->export($middleware));  | 
            ||
| 77 | }  | 
            ||
| 78 | }  | 
            ||
| 79 | }  | 
            ||
| 80 | |||
| 81 | return ExitCode::OK;  | 
            ||
| 82 | }  | 
            ||
| 83 | |||
| 84 | $table = new Table($output);  | 
            ||
| 85 | $rows = [];  | 
            ||
| 86 |         foreach ($this->routeCollection->getRoutes() as $route) { | 
            ||
| 87 | $data = $route->__debugInfo();  | 
            ||
| 88 | $action = '';  | 
            ||
| 89 |             if (!empty($data['middlewareDefinitions'])) { | 
            ||
| 90 | $middlewareDefinitions = $data['middlewareDefinitions'];  | 
            ||
| 91 | $action = array_pop($middlewareDefinitions);  | 
            ||
| 92 | }  | 
            ||
| 93 | $rows[] = [  | 
            ||
| 94 | 'methods' => $this->export($data['methods']),  | 
            ||
| 95 | 'name' => $data['name'],  | 
            ||
| 96 | 'hosts' => $this->export($data['hosts']),  | 
            ||
| 97 | 'pattern' => $data['pattern'],  | 
            ||
| 98 | 'defaults' => $this->export($data['defaults']),  | 
            ||
| 99 | 'action' => $this->export($action),  | 
            ||
| 100 | ];  | 
            ||
| 101 | }  | 
            ||
| 102 | $table->addRows($rows);  | 
            ||
| 103 | $table->render();  | 
            ||
| 104 | |||
| 105 | return ExitCode::OK;  | 
            ||
| 106 | }  | 
            ||
| 127 | 
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths