@@ -133,12 +133,12 @@ discard block |
||
133 | 133 | * |
134 | 134 | * @return bool|resource |
135 | 135 | */ |
136 | - private function openImage ($file) { |
|
136 | + private function openImage($file) { |
|
137 | 137 | if (!file_exists($file)) |
138 | 138 | return false; |
139 | 139 | |
140 | 140 | $size = getimagesize($file); |
141 | - switch($size["mime"]){ |
|
141 | + switch ($size["mime"]) { |
|
142 | 142 | case "image/jpeg": |
143 | 143 | $im = imagecreatefromjpeg($file); |
144 | 144 | break; |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | $im = imagecreatefrompng($file); |
150 | 150 | break; |
151 | 151 | default: |
152 | - $im=false; |
|
152 | + $im = false; |
|
153 | 153 | break; |
154 | 154 | } |
155 | 155 | return $im; |
@@ -134,8 +134,9 @@ |
||
134 | 134 | * @return bool|resource |
135 | 135 | */ |
136 | 136 | private function openImage ($file) { |
137 | - if (!file_exists($file)) |
|
138 | - return false; |
|
137 | + if (!file_exists($file)) { |
|
138 | + return false; |
|
139 | + } |
|
139 | 140 | |
140 | 141 | $size = getimagesize($file); |
141 | 142 | switch($size["mime"]){ |