Conditions | 9 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public static function configureThumb(string $alias, array $config): ThumbConfig |
||
12 | { |
||
13 | if (!isset($config['name']) || |
||
14 | !isset($config['size']) || |
||
15 | !is_array($config['size']) || |
||
16 | (!isset($config['size'][0]) && !is_null($config['size'][0])) || |
||
17 | (!isset($config['size'][1]) && !is_null($config['size'][1])) |
||
18 | ) { |
||
19 | throw new Exception('Error in thumb configuration.'); |
||
20 | } |
||
21 | |||
22 | return new ThumbConfig( |
||
23 | $alias, |
||
24 | $config['name'], |
||
25 | $config['size'][0], |
||
26 | $config['size'][1], |
||
27 | !empty($config['mode']) ? $config['mode'] : ImageInterface::THUMBNAIL_OUTBOUND |
||
28 | ); |
||
38 | } |
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