| Total Complexity | 8 |
| Total Lines | 70 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | final class AdminBar implements Bootable |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Boot the service. |
||
| 12 | * |
||
| 13 | * @return void |
||
| 14 | */ |
||
| 15 | public static function boot(): void |
||
| 16 | { |
||
| 17 | $self = new static; |
||
| 18 | |||
| 19 | add_action('admin_bar_menu', [$self, 'extendMenu']); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Extend the admin bar menu. |
||
| 24 | * |
||
| 25 | * @param WP_Admin_Bar $adminBar |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | public function extendMenu(WP_Admin_Bar $adminBar): void |
||
| 78 | ), |
||
| 79 | ]); |
||
| 83 |
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