Total Complexity | 7 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class ArticleCommand extends Command |
||
13 | { |
||
14 | protected static $defaultName = 'vgr-dwh:article'; |
||
15 | |||
16 | private ArticleService $articleService; |
||
17 | |||
18 | public function __construct(ArticleService $articleService) |
||
19 | { |
||
20 | $this->articleService = $articleService; |
||
21 | parent::__construct(); |
||
22 | } |
||
23 | |||
24 | protected function configure() |
||
25 | { |
||
26 | $this |
||
27 | ->setName('vgr-dwh:article') |
||
28 | ->setDescription('Command post article') |
||
29 | ->addArgument( |
||
30 | 'function', |
||
31 | InputArgument::REQUIRED, |
||
32 | 'Who do you want to do?' |
||
33 | ) |
||
34 | ->addOption( |
||
35 | 'date', |
||
36 | null, |
||
37 | InputOption::VALUE_OPTIONAL, |
||
38 | '' |
||
39 | ) |
||
40 | ; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @param InputInterface $input |
||
45 | * @param OutputInterface $output |
||
46 | * @return int |
||
47 | * @throws Exception |
||
48 | */ |
||
49 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
68 | } |
||
69 | } |
||
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