Passed
Pull Request — master (#158)
by
unknown
02:12
created
src/Phpml/Math/Distance/Euclidean.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Phpml\Math\Distance;
6 6
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
             throw InvalidArgumentException::arraySizeNotMatch();
19 19
         }
20 20
 
21
-        return sqrt((float) array_sum(array_map(function ($m, $n) {
21
+        return sqrt((float) array_sum(array_map(function($m, $n) {
22 22
             return ($m - $n) ** 2;
23 23
         }, $a, $b)));
24 24
     }
Please login to merge, or discard this patch.
src/Phpml/Math/Distance/Chebyshev.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Phpml\Math\Distance;
6 6
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
             throw InvalidArgumentException::arraySizeNotMatch();
19 19
         }
20 20
 
21
-        return max(array_map(function ($m, $n) {
21
+        return max(array_map(function($m, $n) {
22 22
             return abs($m - $n);
23 23
         }, $a, $b));
24 24
     }
Please login to merge, or discard this patch.
src/Phpml/Math/Distance/Minkowski.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Phpml\Math\Distance;
6 6
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         }
30 30
 
31 31
         return (float) pow(
32
-            array_sum(array_map(function ($m, $n) {
32
+            array_sum(array_map(function($m, $n) {
33 33
                 return pow(abs($m - $n), $this->lambda);
34 34
             }, $a, $b)),
35 35
             1 / $this->lambda
Please login to merge, or discard this patch.