Total Complexity | 4 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class CLILoader { |
||
16 | |||
17 | /** |
||
18 | * Base Command. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $base_command = 'bulk-delete'; |
||
23 | |||
24 | /** |
||
25 | * Load CLI command. |
||
26 | * |
||
27 | * This will be called after `bd_loaded` hook. |
||
28 | */ |
||
29 | public function load() { |
||
30 | $commands = $this->get_commands(); |
||
31 | |||
32 | foreach ( $commands as $command ) { |
||
33 | $this->register_command( $command ); |
||
34 | } |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * List of Bulk Delete WP CLI Commands. |
||
39 | * |
||
40 | * @return \BulkWP\BulkDelete\Core\Base\BaseCommand[] |
||
41 | */ |
||
42 | protected function get_commands() { |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * Register a command. |
||
60 | * |
||
61 | * @param \BulkWP\BulkDelete\Core\Base\BaseCommand $command Command to register. |
||
62 | */ |
||
63 | protected function register_command( $command ) { |
||
65 | } |
||
66 | } |
||
67 |
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