| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | class ImageUtils |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param $filePathName |
||
| 13 | * @return int |
||
| 14 | */ |
||
| 15 | public static function getImageWidth($filePathName) |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param $filePathName |
||
| 22 | * @return int |
||
| 23 | */ |
||
| 24 | public static function getImageHeight($filePathName) |
||
| 25 | { |
||
| 26 | return self::getImageDimensions($filePathName)[1]; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param $filePathName |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | private static function getImageDimensions($filePathName) |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
If the returned type also contains false, it is an indicator that maybe an error condition leading to the specific return statement remains unhandled.