@@ -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 | } |