Completed
Pull Request — master (#3)
by Luca
08:03
created
src/Model/Image.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.