1 | <?php |
||
2 | |||
3 | use Botble\PluginManagement\Services\PluginService; |
||
0 ignored issues
–
show
|
|||
4 | |||
5 | if (!function_exists('is_plugin_active')) { |
||
6 | function is_plugin_active(string $alias): bool |
||
7 | { |
||
8 | return in_array($alias, get_active_plugins()); |
||
9 | } |
||
10 | } |
||
11 | |||
12 | if (!function_exists('get_active_plugins')) { |
||
13 | function get_active_plugins(): array |
||
14 | { |
||
15 | return PluginService::getActivatedPlugins(); |
||
16 | } |
||
17 | } |
||
18 |
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