@@ -58,8 +58,8 @@ |
||
58 | 58 | |
59 | 59 | protected function isValidPercent($value) |
60 | 60 | { |
61 | - $percent_value = (int) $this->getPercentValue($value); |
|
62 | - if ($percent_value < 1 || ($percent_value > 100 && ! $this->upscale)) { |
|
61 | + $percent_value = (int)$this->getPercentValue($value); |
|
62 | + if ($percent_value < 1 || ($percent_value > 100 && !$this->upscale)) { |
|
63 | 63 | throw new BadRequestException("Size $value is invalid."); |
64 | 64 | } |
65 | 65 |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | { |
114 | 114 | $scaleFactors = []; |
115 | 115 | $maxSize = max($this->image->width(), $this->image->height()); |
116 | - $total = (int) ceil($maxSize / $this->config['tile_width']); |
|
116 | + $total = (int)ceil($maxSize / $this->config['tile_width']); |
|
117 | 117 | $factor = 1; |
118 | 118 | while ($factor / 2 <= $total) { |
119 | 119 | $scaleFactors[] = $factor; |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | protected function getExtraFormats() |
130 | 130 | { |
131 | - $formats = $this->getSupportedFormats((string) $this->config['driver']); |
|
131 | + $formats = $this->getSupportedFormats((string)$this->config['driver']); |
|
132 | 132 | |
133 | 133 | // All formats except level2 deafults of jpg and png |
134 | 134 | return array_intersect($formats, ['jpg', 'png']); |