@@ -89,7 +89,7 @@ |
||
89 | 89 | |
90 | 90 | // THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION |
91 | 91 | '_check4htaccess' => false, |
92 | - '_tinyMCEPath' => MODX_BASE_URL . "assets/plugins/tinymce/tiny_mce", |
|
92 | + '_tinyMCEPath' => MODX_BASE_URL."assets/plugins/tinymce/tiny_mce", |
|
93 | 93 | |
94 | 94 | '_sessionVar' => &$_SESSION['KCFINDER'], |
95 | 95 | //'_sessionLifetime' => 30, |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | ); |
36 | 36 | } |
37 | 37 | |
38 | - public function resizeFit($width, $height, $background=false) |
|
38 | + public function resizeFit($width, $height, $background = false) |
|
39 | 39 | { |
40 | 40 | if ((!$width && !$height) || (($width == $this->width) && ($height == $this->height))) { |
41 | 41 | return true; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | } |
80 | 80 | } |
81 | 81 | |
82 | - public function resizeCrop($width, $height, $offset=false) |
|
82 | + public function resizeCrop($width, $height, $offset = false) |
|
83 | 83 | { |
84 | 84 | if (($this->width / $this->height) > ($width / $height)) { |
85 | 85 | $h = $height; |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | return $return; |
139 | 139 | } |
140 | 140 | |
141 | - public function rotate($angle, $background="#000000") |
|
141 | + public function rotate($angle, $background = "#000000") |
|
142 | 142 | { |
143 | 143 | $angle = -$angle; |
144 | 144 | $img = @imagerotate($this->image, $angle, $this->gdColor($background)); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | return true; |
178 | 178 | } |
179 | 179 | |
180 | - public function watermark($file, $left=false, $top=false) |
|
180 | + public function watermark($file, $left = false, $top = false) |
|
181 | 181 | { |
182 | 182 | $info = getimagesize($file); |
183 | 183 | list($w, $h, $t) = $info; |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | return true; |
220 | 220 | } |
221 | 221 | |
222 | - public function output($type='jpeg', array $options=array()) |
|
222 | + public function output($type = 'jpeg', array $options = array()) |
|
223 | 223 | { |
224 | 224 | $method = "output_$type"; |
225 | 225 | if (!method_exists($this, $method)) { |
@@ -252,11 +252,11 @@ discard block |
||
252 | 252 | (false !== (list($width, $height, $t) = @getimagesize($image))) |
253 | 253 | ) { |
254 | 254 | $image = |
255 | - ($t == IMAGETYPE_GIF) ? @imagecreatefromgif($image) : ( |
|
255 | + ($t == IMAGETYPE_GIF) ? @imagecreatefromgif($image) : ( |
|
256 | 256 | ($t == IMAGETYPE_WBMP) ? @imagecreatefromwbmp($image) : ( |
257 | 257 | ($t == IMAGETYPE_JPEG) ? @imagecreatefromjpeg($image) : ( |
258 | - ($t == IMAGETYPE_PNG) ? @imagecreatefrompng($image) : ( |
|
259 | - ($t == IMAGETYPE_XBM) ? @imagecreatefromxbm($image) : false |
|
258 | + ($t == IMAGETYPE_PNG) ? @imagecreatefrompng($image) : ( |
|
259 | + ($t == IMAGETYPE_XBM) ? @imagecreatefromxbm($image) : false |
|
260 | 260 | )))); |
261 | 261 | |
262 | 262 | return $image; |
@@ -282,11 +282,11 @@ discard block |
||
282 | 282 | } |
283 | 283 | |
284 | 284 | $img = |
285 | - ($t == IMAGETYPE_GIF) ? @imagecreatefromgif($file) : ( |
|
285 | + ($t == IMAGETYPE_GIF) ? @imagecreatefromgif($file) : ( |
|
286 | 286 | ($t == IMAGETYPE_WBMP) ? @imagecreatefromwbmp($file) : ( |
287 | 287 | ($t == IMAGETYPE_JPEG) ? @imagecreatefromjpeg($file) : ( |
288 | - ($t == IMAGETYPE_PNG) ? @imagecreatefrompng($file) : ( |
|
289 | - ($t == IMAGETYPE_XBM) ? @imagecreatefromxbm($file) : false |
|
288 | + ($t == IMAGETYPE_PNG) ? @imagecreatefrompng($file) : ( |
|
289 | + ($t == IMAGETYPE_XBM) ? @imagecreatefromxbm($file) : false |
|
290 | 290 | )))); |
291 | 291 | |
292 | 292 | return ($img !== false); |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | |
296 | 296 | // OWN METHODS |
297 | 297 | |
298 | - protected function output_png(array $options=array()) |
|
298 | + protected function output_png(array $options = array()) |
|
299 | 299 | { |
300 | 300 | $file = isset($options['file']) ? $options['file'] : null; |
301 | 301 | $quality = isset($options['quality']) ? $options['quality'] : null; |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | return imagepng($this->image, $file, $quality, $filters); |
308 | 308 | } |
309 | 309 | |
310 | - protected function output_jpeg(array $options=array()) |
|
310 | + protected function output_jpeg(array $options = array()) |
|
311 | 311 | { |
312 | 312 | $file = isset($options['file']) ? $options['file'] : null; |
313 | 313 | $quality = isset($options['quality']) |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | return imagejpeg($this->image, $file, $quality); |
320 | 320 | } |
321 | 321 | |
322 | - protected function output_gif(array $options=array()) |
|
322 | + protected function output_gif(array $options = array()) |
|
323 | 323 | { |
324 | 324 | $file = isset($options['file']) ? $options['file'] : null; |
325 | 325 | if (isset($options['file']) && !headers_sent()) { |
@@ -378,8 +378,8 @@ discard block |
||
378 | 378 | } |
379 | 379 | |
380 | 380 | protected function imageCopyResampled( |
381 | - $src, $dstX=0, $dstY=0, $srcX=0, $srcY=0, $dstW=null, $dstH=null, $srcW=null, $srcH=null |
|
382 | - ) { |
|
381 | + $src, $dstX = 0, $dstY = 0, $srcX = 0, $srcY = 0, $dstW = null, $dstH = null, $srcW = null, $srcH = null |
|
382 | + ){ |
|
383 | 383 | $imageDetails = $this->buildImage($src); |
384 | 384 | |
385 | 385 | if ($imageDetails === false) { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param integer $expire |
27 | 27 | * @param array $headers */ |
28 | 28 | |
29 | - public static function file($file, $type=null, $expire=null, array $headers=null) |
|
29 | + public static function file($file, $type = null, $expire = null, array $headers = null) |
|
30 | 30 | { |
31 | 31 | $mtime = @filemtime($file); |
32 | 32 | if ($mtime !== false) { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @param array $headers |
54 | 54 | * @param bool $checkMTime */ |
55 | 55 | |
56 | - public static function content($content, $mtime, $type=null, $expire=null, array $headers=null, $checkMTime=true) |
|
56 | + public static function content($content, $mtime, $type = null, $expire = null, array $headers = null, $checkMTime = true) |
|
57 | 57 | { |
58 | 58 | if ($checkMTime) { |
59 | 59 | self::checkMTime($mtime); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $expire = self::DEFAULT_EXPIRE; |
66 | 66 | } |
67 | 67 | $size = strlen($content); |
68 | - $expires = gmdate("D, d M Y H:i:s", time() + $expire) . " GMT"; |
|
68 | + $expires = gmdate("D, d M Y H:i:s", time() + $expire)." GMT"; |
|
69 | 69 | header("Content-Type: $type"); |
70 | 70 | header("Expires: $expires"); |
71 | 71 | header("Cache-Control: max-age=$expire"); |
@@ -85,9 +85,9 @@ discard block |
||
85 | 85 | * the PHP to be configured as Apache module. |
86 | 86 | * @param integer $mtime */ |
87 | 87 | |
88 | - public static function checkMTime($mtime, $sendHeaders=null) |
|
88 | + public static function checkMTime($mtime, $sendHeaders = null) |
|
89 | 89 | { |
90 | - header("Last-Modified: " . gmdate("D, d M Y H:i:s", $mtime) . " GMT"); |
|
90 | + header("Last-Modified: ".gmdate("D, d M Y H:i:s", $mtime)." GMT"); |
|
91 | 91 | |
92 | 92 | $headers = function_exists("getallheaders") |
93 | 93 | ? getallheaders() |
@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | return $this->type = 'bmp'; |
68 | 68 | case "GI": |
69 | 69 | return $this->type = 'gif'; |
70 | - case chr(0xFF) . chr(0xd8): |
|
70 | + case chr(0xFF).chr(0xd8): |
|
71 | 71 | return $this->type = 'jpeg'; |
72 | - case chr(0x89) . 'P': |
|
72 | + case chr(0x89).'P': |
|
73 | 73 | return $this->type = 'png'; |
74 | 74 | default: |
75 | 75 | return false; |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | $response = null; |
183 | 183 | |
184 | 184 | // do we need more data? |
185 | - if ($this->strpos + $n -1 >= strlen($this->str)) { |
|
185 | + if ($this->strpos + $n - 1 >= strlen($this->str)) { |
|
186 | 186 | $end = ($this->strpos + $n); |
187 | 187 | |
188 | 188 | while (strlen($this->str) < $end && $response !== false) { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | * @param string $string |
57 | 57 | * @param bool $cdata */ |
58 | 58 | |
59 | - public static function xmlData($string, $cdata=false) |
|
59 | + public static function xmlData($string, $cdata = false) |
|
60 | 60 | { |
61 | 61 | $string = str_replace("]]>", "]]]]><![CDATA[>", $string); |
62 | 62 | if (!$cdata) { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | return false; |
39 | 39 | } |
40 | 40 | |
41 | - $return = self::normalize(substr($dir, strlen($doc_root)) . "/$path"); |
|
41 | + $return = self::normalize(substr($dir, strlen($doc_root))."/$path"); |
|
42 | 42 | if (substr($return, 0, 1) !== "/") { |
43 | 43 | $return = "/$return"; |
44 | 44 | } |
@@ -66,11 +66,11 @@ discard block |
||
66 | 66 | if ($uri === false) { |
67 | 67 | return false; |
68 | 68 | } |
69 | - $url = dirname($uri) . "/$url"; |
|
69 | + $url = dirname($uri)."/$url"; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | if (isset($_SERVER['DOCUMENT_ROOT'])) { |
73 | - return self::normalize($_SERVER['DOCUMENT_ROOT'] . "/$url"); |
|
73 | + return self::normalize($_SERVER['DOCUMENT_ROOT']."/$url"); |
|
74 | 74 | } else { |
75 | 75 | if ($uri === false) { |
76 | 76 | return false; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | if (isset($_SERVER['SCRIPT_FILENAME'])) { |
80 | 80 | $scr_filename = self::normalize($_SERVER['SCRIPT_FILENAME']); |
81 | - return self::normalize(substr($scr_filename, 0, -strlen($uri)) . "/$url"); |
|
81 | + return self::normalize(substr($scr_filename, 0, -strlen($uri))."/$url"); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | $count = count(explode('/', $uri)) - 1; |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | $rdir = getcwd(); |
95 | 95 | chdir($dir); |
96 | - return ($rdir !== false) ? self::normalize($rdir . "/$url") : false; |
|
96 | + return ($rdir !== false) ? self::normalize($rdir."/$url") : false; |
|
97 | 97 | } |
98 | 98 | } |
99 | 99 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $path = substr($path, 0, -1); |
114 | 114 | } |
115 | 115 | if (substr($path, 0, 1) == "\\") { |
116 | - $path = "/" . substr($path, 1); |
|
116 | + $path = "/".substr($path, 1); |
|
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $path = self::normalize($path); |
144 | 144 | $encoded = ""; |
145 | 145 | foreach (explode("/", $path) as $dir) { |
146 | - $encoded .= rawurlencode($dir) . "/"; |
|
146 | + $encoded .= rawurlencode($dir)."/"; |
|
147 | 147 | } |
148 | 148 | $encoded = substr($encoded, 0, -1); |
149 | 149 | return $encoded; |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $path = self::normalize($path); |
159 | 159 | $decoded = ""; |
160 | 160 | foreach (explode("/", $path) as $dir) { |
161 | - $decoded .= rawurldecode($dir) . "/"; |
|
161 | + $decoded .= rawurldecode($dir)."/"; |
|
162 | 162 | } |
163 | 163 | $decoded = substr($decoded, 0, -1); |
164 | 164 | return $decoded; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | return true; |
40 | 40 | } |
41 | 41 | |
42 | - public function resizeFit($width, $height, $background=false) |
|
42 | + public function resizeFit($width, $height, $background = false) |
|
43 | 43 | {// |
44 | 44 | if (!$width) { |
45 | 45 | $width = 1; |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | } |
79 | 79 | } |
80 | 80 | |
81 | - public function resizeCrop($width, $height, $offset=false) |
|
81 | + public function resizeCrop($width, $height, $offset = false) |
|
82 | 82 | { |
83 | 83 | if (!$width) { |
84 | 84 | $width = 1; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | return true; |
143 | 143 | } |
144 | 144 | |
145 | - public function rotate($angle, $background="#000000") |
|
145 | + public function rotate($angle, $background = "#000000") |
|
146 | 146 | { |
147 | 147 | try { |
148 | 148 | $this->image->rotateImage($background, $angle); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | return true; |
177 | 177 | } |
178 | 178 | |
179 | - public function watermark($file, $left=false, $top=false) |
|
179 | + public function watermark($file, $left = false, $top = false) |
|
180 | 180 | { |
181 | 181 | try { |
182 | 182 | $wm = new Gmagick($file); |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | |
278 | 278 | // INHERIT METHODS |
279 | 279 | |
280 | - public function output($type="jpeg", array $options=array()) |
|
280 | + public function output($type = "jpeg", array $options = array()) |
|
281 | 281 | { |
282 | 282 | $type = strtolower($type); |
283 | 283 | try { |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | } |
298 | 298 | echo $this->image; |
299 | 299 | } else { |
300 | - $file = $options['file'] . ".$type"; |
|
300 | + $file = $options['file'].".$type"; |
|
301 | 301 | try { |
302 | 302 | $this->image->writeImage($file); |
303 | 303 | } catch (Exception $e) { |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | |
318 | 318 | // OWN METHODS |
319 | 319 | |
320 | - protected function optimize_jpeg(array $options=array()) |
|
320 | + protected function optimize_jpeg(array $options = array()) |
|
321 | 321 | { |
322 | 322 | $quality = isset($options['quality']) ? $options['quality'] : self::DEFAULT_JPEG_QUALITY; |
323 | 323 | try { |
@@ -56,12 +56,12 @@ discard block |
||
56 | 56 | $image = imagecreatetruecolor($width, $height); |
57 | 57 | } elseif (false !== (list($width, $height, $type) = @getimagesize($image))) { |
58 | 58 | $image = |
59 | - ($type == IMAGETYPE_GIF) ? @imagecreatefromgif($image) : ( |
|
60 | - ($type == IMAGETYPE_WBMP) ? @imagecreatefromwbmp($image) : ( |
|
61 | - ($type == IMAGETYPE_JPEG) ? @imagecreatefromjpeg($image) : ( |
|
59 | + ($type == IMAGETYPE_GIF) ? @imagecreatefromgif($image) : ( |
|
60 | + ($type == IMAGETYPE_WBMP) ? @imagecreatefromwbmp($image) : ( |
|
61 | + ($type == IMAGETYPE_JPEG) ? @imagecreatefromjpeg($image) : ( |
|
62 | 62 | ($type == IMAGETYPE_JPEG2000) ? @imagecreatefromjpeg($image) : ( |
63 | - ($type == IMAGETYPE_PNG) ? @imagecreatefrompng($image) : ( |
|
64 | - ($type == IMAGETYPE_XBM) ? @imagecreatefromxbm($image) : false |
|
63 | + ($type == IMAGETYPE_PNG) ? @imagecreatefrompng($image) : ( |
|
64 | + ($type == IMAGETYPE_XBM) ? @imagecreatefromxbm($image) : false |
|
65 | 65 | ))))); |
66 | 66 | |
67 | 67 | if ($type == IMAGETYPE_PNG) { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @param integer $bigger_size |
99 | 99 | * @return gd */ |
100 | 100 | |
101 | - public function __construct($image, $bigger_size=null) |
|
101 | + public function __construct($image, $bigger_size = null) |
|
102 | 102 | { |
103 | 103 | $this->image = $this->width = $this->height = null; |
104 | 104 | |
@@ -347,11 +347,11 @@ discard block |
||
347 | 347 | |
348 | 348 | public function imagecopy( |
349 | 349 | $src, |
350 | - $dst_x=0, $dst_y=0, |
|
351 | - $src_x=0, $src_y=0, |
|
352 | - $dst_w=null, $dst_h=null, |
|
353 | - $src_w=null, $src_h=null |
|
354 | - ) { |
|
350 | + $dst_x = 0, $dst_y = 0, |
|
351 | + $src_x = 0, $src_y = 0, |
|
352 | + $dst_w = null, $dst_h = null, |
|
353 | + $src_w = null, $src_h = null |
|
354 | + ){ |
|
355 | 355 | $image_details = $this->build_image($src); |
356 | 356 | |
357 | 357 | if ($image_details !== false) { |
@@ -377,11 +377,11 @@ discard block |
||
377 | 377 | |
378 | 378 | public function imagecopyresampled( |
379 | 379 | $src, |
380 | - $dst_x=0, $dst_y=0, |
|
381 | - $src_x=0, $src_y=0, |
|
382 | - $dst_w=null, $dst_h=null, |
|
383 | - $src_w=null, $src_h=null |
|
384 | - ) { |
|
380 | + $dst_x = 0, $dst_y = 0, |
|
381 | + $src_x = 0, $src_y = 0, |
|
382 | + $dst_w = null, $dst_h = null, |
|
383 | + $src_w = null, $src_h = null |
|
384 | + ){ |
|
385 | 385 | $image_details = $this->build_image($src); |
386 | 386 | |
387 | 387 | if ($image_details !== false) { |
@@ -418,9 +418,9 @@ discard block |
||
418 | 418 | imagefilledrectangle($this->image, 0, 0, $dst_w, $dst_h, $transindex); |
419 | 419 | imagecopyresampled($this->image, $src, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h); |
420 | 420 | imagecolortransparent($this->image, $transindex); |
421 | - for ($y=0; $y<$dst_h; ++$y) { |
|
422 | - for ($x=0; $x<$dst_w; ++$x) { |
|
423 | - if (((imagecolorat($this->image, $x, $y)>>24) & 0x7F) >= 100) { |
|
421 | + for ($y = 0; $y < $dst_h; ++$y) { |
|
422 | + for ($x = 0; $x < $dst_w; ++$x) { |
|
423 | + if (((imagecolorat($this->image, $x, $y) >> 24) & 0x7F) >= 100) { |
|
424 | 424 | imagesetpixel($this->image, $x, $y, $transindex); |
425 | 425 | } |
426 | 426 | } |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | return imagefilledrectangle($this->image, $x1, $y1, $x2, $y2, $color); |
447 | 447 | } |
448 | 448 | |
449 | - public function imagepng($filename=null, $quality=null, $filters=null) |
|
449 | + public function imagepng($filename = null, $quality = null, $filters = null) |
|
450 | 450 | { |
451 | 451 | if (is_null($filename) && !headers_sent()) { |
452 | 452 | header("Content-Type: image/png"); |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | return imagepng($this->image, $filename, $quality, $filters); |
456 | 456 | } |
457 | 457 | |
458 | - public function imagejpeg($filename=null, $quality=75) |
|
458 | + public function imagejpeg($filename = null, $quality = 75) |
|
459 | 459 | { |
460 | 460 | if (is_null($filename) && !headers_sent()) { |
461 | 461 | header("Content-Type: image/jpeg"); |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | return imagejpeg($this->image, $filename, $quality); |
464 | 464 | } |
465 | 465 | |
466 | - public function imagegif($filename=null) |
|
466 | + public function imagegif($filename = null) |
|
467 | 467 | { |
468 | 468 | if (is_null($filename) && !headers_sent()) { |
469 | 469 | header("Content-Type: image/gif"); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | return true; |
40 | 40 | } |
41 | 41 | |
42 | - public function resizeFit($width, $height, $background=false) |
|
42 | + public function resizeFit($width, $height, $background = false) |
|
43 | 43 | {// |
44 | 44 | if (!$width) { |
45 | 45 | $width = 1; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | } |
75 | 75 | } |
76 | 76 | |
77 | - public function resizeCrop($width, $height, $offset=false) |
|
77 | + public function resizeCrop($width, $height, $offset = false) |
|
78 | 78 | { |
79 | 79 | if (!$width) { |
80 | 80 | $width = 1; |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | return true; |
139 | 139 | } |
140 | 140 | |
141 | - public function rotate($angle, $background="#000000") |
|
141 | + public function rotate($angle, $background = "#000000") |
|
142 | 142 | { |
143 | 143 | try { |
144 | 144 | $this->image->rotateImage(new ImagickPixel($background), $angle); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | return true; |
172 | 172 | } |
173 | 173 | |
174 | - public function watermark($file, $left=false, $top=false) |
|
174 | + public function watermark($file, $left = false, $top = false) |
|
175 | 175 | { |
176 | 176 | try { |
177 | 177 | $wm = new Imagick($file); |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | |
280 | 280 | // INHERIT METHODS |
281 | 281 | |
282 | - public function output($type="jpeg", array $options=array()) |
|
282 | + public function output($type = "jpeg", array $options = array()) |
|
283 | 283 | { |
284 | 284 | $type = strtolower($type); |
285 | 285 | try { |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | } |
300 | 300 | echo $this->image; |
301 | 301 | } else { |
302 | - $file = $options['file'] . ".$type"; |
|
302 | + $file = $options['file'].".$type"; |
|
303 | 303 | try { |
304 | 304 | $this->image->writeImage($file); |
305 | 305 | } catch (Exception $e) { |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | |
320 | 320 | // OWN METHODS |
321 | 321 | |
322 | - protected function optimize_jpeg(array $options=array()) |
|
322 | + protected function optimize_jpeg(array $options = array()) |
|
323 | 323 | { |
324 | 324 | $quality = isset($options['quality']) ? $options['quality'] : self::DEFAULT_JPEG_QUALITY; |
325 | 325 | try { |