Issues (35)

common/helpers.php (1 issue)

Labels
Severity
1
<?php
2
3
use Botble\PluginManagement\Services\PluginService;
0 ignored issues
show
The type Botble\PluginManagement\Services\PluginService was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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