@@ -137,8 +137,7 @@ discard block |
||
| 137 | 137 | $this->sourceImage = $resource; |
| 138 | 138 | $this->type = $type; |
| 139 | 139 | $this->info = self::getImageSize($resource); |
| 140 | - } |
|
| 141 | - else |
|
| 140 | + } else |
|
| 142 | 141 | { |
| 143 | 142 | $this->file = $sourceFile; |
| 144 | 143 | if (!file_exists($this->file)) { |
@@ -580,8 +579,7 @@ discard block |
||
| 580 | 579 | if ($this->width <= $this->height) |
| 581 | 580 | { |
| 582 | 581 | $this->resampleByWidth($width); |
| 583 | - } |
|
| 584 | - else |
|
| 582 | + } else |
|
| 585 | 583 | { |
| 586 | 584 | $this->resampleByHeight($height); |
| 587 | 585 | } |