| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class CommentifyPlugin implements Plugin |
||
| 13 | { |
||
| 14 | public function getId(): string |
||
| 15 | { |
||
| 16 | return 'commentify'; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function register(Panel $panel): void |
||
| 20 | { |
||
| 21 | // Check if Filament is installed |
||
| 22 | if (!class_exists(Filament::class)) { |
||
| 23 | return; |
||
| 24 | } |
||
| 25 | |||
| 26 | $panel |
||
| 27 | ->resources([ |
||
| 28 | CommentResource::class, |
||
| 29 | CommentReportResource::class, |
||
| 30 | ]) |
||
| 31 | ->pages([ |
||
| 32 | CommentifySettings::class, |
||
| 33 | ]); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function boot(Panel $panel): void |
||
| 38 | // |
||
| 39 | } |
||
| 40 | |||
| 41 | public static function make(): static |
||
| 44 | } |
||
| 45 | |||
| 46 | public static function get(): static |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 |
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