@@ -134,8 +134,8 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | $luminance = 0; |
137 | - for ($x = 1;$x <= $samples;$x++) { |
|
138 | - for ($y = 1;$y <= $samples;$y++) { |
|
137 | + for ($x = 1; $x <= $samples; $x++) { |
|
138 | + for ($y = 1; $y <= $samples; $y++) { |
|
139 | 139 | $coordX = round($portion->getWidth() / $samples * $x) - ($portion->getWidth() / $samples / 2); |
140 | 140 | $cooordY = round($portion->getHeight() / $samples * $y) - ($portion->getHeight() / $samples / 2); |
141 | 141 | $rgb = imagecolorat($portion->getResource(), $coordX, $cooordY); |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | * @return bool|ImageResponse |
206 | 206 | * @throws Exception |
207 | 207 | */ |
208 | - public function toWebP($filePathName = null){ |
|
208 | + public function toWebP($filePathName = null) { |
|
209 | 209 | return ImageWriter::toWebP($this->getResource(), $filePathName); |
210 | 210 | } |
211 | 211 |