Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
73 | public static function analyzeFile($filename, $mediaInfo = []) |
||
74 | { |
||
75 | if (!$mediaInfo['imageInfo'] = @getimagesize($filename)) { |
||
76 | throw new Exception('Failed to read image file information'); |
||
77 | } |
||
78 | |||
79 | // store image data |
||
80 | $mediaInfo['width'] = $mediaInfo['imageInfo'][0]; |
||
81 | $mediaInfo['height'] = $mediaInfo['imageInfo'][1]; |
||
82 | $mediaInfo['duration'] = 0; |
||
83 | |||
84 | return $mediaInfo; |
||
85 | } |
||
87 |