Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0116 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
77 | 2 | public static function analyzeFile($filename, $mediaInfo = []) |
|
78 | { |
||
79 | 2 | if (!$mediaInfo['imageInfo'] = getimagesize($filename)) { |
|
80 | throw new Exception('Failed to read image file information'); |
||
81 | } |
||
82 | |||
83 | // store image data |
||
84 | 2 | $mediaInfo['width'] = $mediaInfo['imageInfo'][0]; |
|
85 | 2 | $mediaInfo['height'] = $mediaInfo['imageInfo'][1]; |
|
86 | 2 | $mediaInfo['duration'] = 0; |
|
87 | |||
88 | 2 | return $mediaInfo; |
|
89 | } |
||
91 |
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