@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | throw new NotImplementedException("Maximum size is not implemented."); |
34 | 34 | } |
35 | 35 | |
36 | - if (! $this->allow_upscaling && $this->upscale) { |
|
36 | + if (!$this->allow_upscaling && $this->upscale) { |
|
37 | 37 | throw new NotImplementedException("Upscaling is not allowed."); |
38 | 38 | } |
39 | 39 | |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | |
65 | 65 | protected function isValidPercent($value) |
66 | 66 | { |
67 | - $percent_value = (int) $this->getPercentValue($value); |
|
68 | - if ($percent_value < 1 || ($percent_value > 100 && ! $this->upscale)) { |
|
67 | + $percent_value = (int)$this->getPercentValue($value); |
|
68 | + if ($percent_value < 1 || ($percent_value > 100 && !$this->upscale)) { |
|
69 | 69 | throw new BadRequestException("Size $value is invalid."); |
70 | 70 | } |
71 | 71 |