Passed
Pull Request — master (#92)
by Maxime
03:21
created
src/Phpml/Helper/Optimizer/GD.php 1 patch
Spacing   +3 added lines, -3 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\Helper\Optimizer;
6 6
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
             $this->updateWeightsWithUpdates($updates, $totalPenalty);
44 44
 
45
-            $this->costValues[] = array_sum($errors)/$this->sampleCount;
45
+            $this->costValues[] = array_sum($errors) / $this->sampleCount;
46 46
 
47 47
             if ($this->earlyStop($theta)) {
48 48
                 break;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     protected function gradient(array $theta)
66 66
     {
67 67
         $costs = [];
68
-        $gradient= [];
68
+        $gradient = [];
69 69
         $totalPenalty = 0;
70 70
 
71 71
         foreach ($this->samples as $index => $sample) {
Please login to merge, or discard this patch.
src/Phpml/Helper/Optimizer/ConjugateGradient.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\Helper\Optimizer;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/Helper/Optimizer/Optimizer.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\Helper\Optimizer;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/Exception/InvalidArgumentException.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\Exception;
6 6
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public static function invalidTarget($target)
73 73
     {
74
-        return new self('Target with value ' . $target . ' is not part of the accepted classes');
74
+        return new self('Target with value '.$target.' is not part of the accepted classes');
75 75
     }
76 76
 
77 77
     /**
Please login to merge, or discard this patch.
src/Phpml/Classification/MLPClassifier.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\Classification;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/FeatureExtraction/StopWords/French.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\FeatureExtraction\StopWords;
6 6
 
Please login to merge, or discard this patch.