| Conditions | 5 |
| Paths | 8 |
| Total Lines | 19 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 50 | { |
||
| 51 | $function = $input->getArgument('function'); |
||
| 52 | $date = $input->getOption('date'); |
||
| 53 | if ($date === null) { |
||
| 54 | $date = date('Y-m-d'); |
||
| 55 | } |
||
| 56 | switch ($function) { |
||
| 57 | case 'top-week': |
||
| 58 | $this->articleService->postTopWeek($date); |
||
| 59 | break; |
||
| 60 | case 'top-month': |
||
| 61 | $this->articleService->postTopMonth($date); |
||
| 62 | break; |
||
| 63 | case 'top-year': |
||
| 64 | $this->articleService->postTopYear($date); |
||
| 65 | break; |
||
| 66 | } |
||
| 67 | return 0; |
||
| 68 | } |
||
| 70 |
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