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