| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class PostTopMonthCommand extends Command |
||
| 12 | { |
||
| 13 | protected static $defaultName = 'vgr-core:post-top-month'; |
||
| 14 | |||
| 15 | private PostTopMonthHandler $postTopMonthHandler; |
||
| 16 | |||
| 17 | public function __construct(PostTopMonthHandler $postTopMonthHandler) |
||
| 18 | { |
||
| 19 | $this->postTopMonthHandler = $postTopMonthHandler; |
||
| 20 | parent::__construct(); |
||
| 21 | } |
||
| 22 | |||
| 23 | protected function configure() |
||
| 24 | { |
||
| 25 | $this |
||
| 26 | ->setName('vgr-core:post-top-month') |
||
| 27 | ->setDescription('Command post top month') |
||
| 28 | ->addOption( |
||
| 29 | 'date', |
||
| 30 | null, |
||
| 31 | InputOption::VALUE_OPTIONAL, |
||
| 32 | '' |
||
| 33 | ) |
||
| 34 | ; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param InputInterface $input |
||
| 39 | * @param OutputInterface $output |
||
| 40 | * @return int |
||
| 41 | * @throws Exception |
||
| 42 | */ |
||
| 43 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
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