@@ -13,11 +13,11 @@ |
||
| 13 | 13 | |
| 14 | 14 | function getimagesize($path) |
| 15 | 15 | { |
| 16 | - $image = Image\Factory::create($path); |
|
| 16 | + $image = Image\Factory::create($path); |
|
| 17 | 17 | |
| 18 | - if (is_null($image)) { |
|
| 19 | - return false; |
|
| 20 | - } |
|
| 18 | + if (is_null($image)) { |
|
| 19 | + return false; |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - return $image->getSize(); |
|
| 22 | + return $image->getSize(); |
|
| 23 | 23 | } |
| 24 | 24 | \ No newline at end of file |
@@ -12,18 +12,18 @@ |
||
| 12 | 12 | |
| 13 | 13 | class FastImageSize |
| 14 | 14 | { |
| 15 | - public function getImageSize($file, $type = '') |
|
| 16 | - { |
|
| 17 | - $size = getimagesize($file); |
|
| 15 | + public function getImageSize($file, $type = '') |
|
| 16 | + { |
|
| 17 | + $size = getimagesize($file); |
|
| 18 | 18 | |
| 19 | - if (empty($size)) { |
|
| 20 | - return false; |
|
| 21 | - } |
|
| 19 | + if (empty($size)) { |
|
| 20 | + return false; |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - return array( |
|
| 24 | - 'width' => $size[0], |
|
| 25 | - 'height' => $size[1], |
|
| 26 | - 'type' => $size[2], |
|
| 27 | - ); |
|
| 28 | - } |
|
| 23 | + return array( |
|
| 24 | + 'width' => $size[0], |
|
| 25 | + 'height' => $size[1], |
|
| 26 | + 'type' => $size[2], |
|
| 27 | + ); |
|
| 28 | + } |
|
| 29 | 29 | } |