Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Psr11 |
||
14 | { |
||
15 | private static $definition = null; |
||
16 | private static $container = null; |
||
17 | |||
18 | /** |
||
19 | * @param string $env |
||
20 | * @return Container |
||
21 | * @throws ConfigNotFoundException |
||
22 | * @throws EnvironmentException |
||
23 | * @throws InvalidArgumentException |
||
24 | */ |
||
25 | public static function container($env = null) |
||
26 | { |
||
27 | if (is_null(self::$container)) { |
||
28 | self::$container = self::environment()->build($env); |
||
29 | } |
||
30 | |||
31 | return self::$container; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return Definition |
||
36 | * @throws EnvironmentException |
||
37 | */ |
||
38 | public static function environment() |
||
56 | } |
||
57 | } |
||
58 |
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