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