Test Setup Failed
Pull Request — master (#348)
by Pol
02:28
created
src/Math/Distance/Distance.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $distance = 0;
34 34
 
35 35
         foreach ($this->deltas($a, $b) as $delta) {
36
-          $distance += $delta ** $this->norm;
36
+            $distance += $delta ** $this->norm;
37 37
         }
38 38
 
39 39
         return $distance ** (1 / $this->norm);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         for ($i = 0; $i < $count; $i++)
56 56
         {
57
-          $deltas[] = abs($a[$i] - $b[$i]);
57
+            $deltas[] = abs($a[$i] - $b[$i]);
58 58
         }
59 59
 
60 60
         return $deltas;
Please login to merge, or discard this patch.