Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 71 | public function getImageSize($file, $type = '') |
|
1 ignored issue
–
show
|
|||
16 | { |
||
17 | 71 | $size = getimagesize($file); |
|
18 | |||
19 | 71 | if (empty($size)) { |
|
20 | 6 | return false; |
|
21 | } |
||
22 | |||
23 | return array( |
||
24 | 65 | 'width' => $size[0], |
|
25 | 65 | 'height' => $size[1], |
|
26 | 65 | 'type' => $size[2], |
|
27 | 65 | ); |
|
30 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.