@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | $tmpfile = null; |
342 | 342 | $imagesize = getimagesize($this->_filename); |
343 | 343 | |
344 | - if ( $imagesize[2] == IMAGETYPE_JPEG |
|
344 | + if ($imagesize[2] == IMAGETYPE_JPEG |
|
345 | 345 | && $this->_jpegtran_available()) { |
346 | 346 | /* jpegtran */ |
347 | 347 | $operations = [ |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | $imagesize = getimagesize($this->_filename); |
410 | 410 | |
411 | 411 | // Try lossless jpegtran rotation if possible |
412 | - if ( $imagesize[2] == IMAGETYPE_JPEG |
|
412 | + if ($imagesize[2] == IMAGETYPE_JPEG |
|
413 | 413 | && ($rotate % 90 == 0) |
414 | 414 | && $this->_jpegtran_available()) { |
415 | 415 | $tmpfile = $this->_get_tempfile(); |
@@ -539,7 +539,7 @@ discard block |
||
539 | 539 | */ |
540 | 540 | public function fill($x = null, $y = null, $color = null, string $gravity = 'center') |
541 | 541 | { |
542 | - if ( empty($x) |
|
542 | + if (empty($x) |
|
543 | 543 | || empty($y) |
544 | 544 | || empty($color)) { |
545 | 545 | //This is a bit silly, but here for backwards compatibility... |