Completed
Push — master ( 01474b...1ce9ff )
by Yılmaz
02:49
created
src/Color.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
     /**
164 164
      * Returns distance between two colors.
165 165
      * 
166
-     * @param array $color1 RGB color
166
+     * @param integer[] $color1 RGB color
167 167
      * @param array $color2 RGB color
168 168
      *
169 169
      * @see https://stackoverflow.com/questions/4057475/rounding-colours
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         list($r, $g, $b) = sscanf($this->color, "%02x%02x%02x");
75 75
 
76
-        return [ $r, $g, $b ];
76
+        return [$r, $g, $b];
77 77
     }
78 78
 
79 79
     /**
@@ -173,9 +173,9 @@  discard block
 block discarded – undo
173 173
     private function distanceL2(array $color1, array $color2)
174 174
     {
175 175
         return sqrt(
176
-            pow($color1[0]-$color2[0], 2) +
177
-            pow($color1[1]-$color2[1], 2) +
178
-            pow($color1[2]-$color2[2], 2)
176
+            pow($color1[0] - $color2[0], 2) +
177
+            pow($color1[1] - $color2[1], 2) +
178
+            pow($color1[2] - $color2[2], 2)
179 179
         );
180 180
     }
181 181
 
Please login to merge, or discard this patch.