Total Complexity | 4 |
Total Lines | 61 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class BlackListCommand extends Command |
||
13 | { |
||
14 | /** |
||
15 | * The name and signature of the console command. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $signature = 'firewall:blacklist'; |
||
20 | |||
21 | /** |
||
22 | * The console command description. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $description = 'This command fetches all ip addresses that are added to blacklist array in "firewall" config file.'; |
||
27 | |||
28 | /** |
||
29 | * Create a new command instance. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | public function __construct() |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Execute the console command. |
||
40 | * This command returns and displays all black listed ip addresses. |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | public function handle() |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * Decorate values as table with headers. |
||
55 | * |
||
56 | * @param array $black_list |
||
57 | * |
||
58 | * @return array $ip_list |
||
59 | */ |
||
60 | private function formTableHeaders($black_list) |
||
75 |
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