Passed
Branch master (38a26d)
by Arkadiusz
03:19
created
src/Phpml/Math/Distance/Manhattan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
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
 
@@ -43,6 +43,6 @@  discard block
 block discarded – undo
43 43
             $distance += pow(abs($a[$i] - $b[$i]), $this->lambda);
44 44
         }
45 45
 
46
-        return (float)pow($distance, 1 / $this->lambda);
46
+        return (float) pow($distance, 1 / $this->lambda);
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/Phpml/Math/Distance/Euclidean.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.
src/Phpml/Metric/Accuracy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Phpml\Metric;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/Metric/ClassificationReport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Phpml\Metric;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/Metric/ConfusionMatrix.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Phpml\Metric;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/Preprocessing/Imputer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Phpml\Preprocessing;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/Preprocessing/Preprocessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Phpml\Preprocessing;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/Preprocessing/Normalizer.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\Preprocessing;
6 6
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         foreach ($sample as $feature) {
79 79
             $norm2 += $feature * $feature;
80 80
         }
81
-        $norm2 = sqrt((float)$norm2);
81
+        $norm2 = sqrt((float) $norm2);
82 82
 
83 83
         if (0 == $norm2) {
84 84
             $sample = array_fill(0, count($sample), 1);
Please login to merge, or discard this patch.