Passed
Pull Request — master (#146)
by Tomáš
02:39
created
src/Phpml/DimensionReduction/EigenTransformerBase.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\DimensionReduction;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/Math/LinearAlgebra/EigenvalueDecomposition.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -65,24 +65,24 @@
 block discarded – undo
65 65
     private $V = [];
66 66
 
67 67
     /**
68
-    *	Array for internal storage of nonsymmetric Hessenberg form.
69
-    *
70
-    *	@var array
71
-    */
68
+     *	Array for internal storage of nonsymmetric Hessenberg form.
69
+     *
70
+     *	@var array
71
+     */
72 72
     private $H = [];
73 73
 
74 74
     /**
75
-    *	Working storage for nonsymmetric algorithm.
76
-    *
77
-    *	@var array
78
-    */
75
+     *	Working storage for nonsymmetric algorithm.
76
+     *
77
+     *	@var array
78
+     */
79 79
     private $ort;
80 80
 
81 81
     /**
82
-    *	Used for complex scalar division.
83
-    *
84
-    *	@var float
85
-    */
82
+     *	Used for complex scalar division.
83
+     *
84
+     *	@var float
85
+     */
86 86
     private $cdivr;
87 87
     private $cdivi;
88 88
 
Please login to merge, or discard this 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
  *	Class to obtain eigenvalues and eigenvectors of a real matrix.
6 6
  *
@@ -842,7 +842,7 @@  discard block
 block discarded – undo
842 842
 
843 843
         // Always return the eigenvectors of length 1.0
844 844
         $vectors = new Matrix($vectors);
845
-        $vectors = array_map(function ($vect) {
845
+        $vectors = array_map(function($vect) {
846 846
             $sum = 0;
847 847
             for ($i = 0; $i < count($vect); ++$i) {
848 848
                 $sum += $vect[$i] ** 2;
Please login to merge, or discard this patch.
src/Phpml/Math/Statistic/Gaussian.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\Statistic;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/NeuralNetwork/ActivationFunction/ThresholdedReLU.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\NeuralNetwork\ActivationFunction;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/Math/Comparison.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;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/SupportVectorMachine/SupportVectorMachine.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\SupportVectorMachine;
6 6
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
         );
237 237
     }
238 238
 
239
-    private function ensureDirectorySeparator(string &$path)
239
+    private function ensureDirectorySeparator(string & $path)
240 240
     {
241 241
         if (substr($path, -1) !== DIRECTORY_SEPARATOR) {
242 242
             $path .= DIRECTORY_SEPARATOR;
Please login to merge, or discard this patch.
src/Phpml/FeatureExtraction/TokenCountVectorizer.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\FeatureExtraction;
6 6
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         }
86 86
     }
87 87
 
88
-    private function transformSample(string &$sample)
88
+    private function transformSample(string & $sample)
89 89
     {
90 90
         $counts = [];
91 91
         $tokens = $this->tokenizer->tokenize($sample);
Please login to merge, or discard this patch.
src/Phpml/Math/Matrix.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -88,6 +88,7 @@
 block discarded – undo
88 88
 
89 89
     /**
90 90
      * @throws MatrixException
91
+     * @param integer $column
91 92
      */
92 93
     public function getColumnValues($column) : array
93 94
     {
Please login to merge, or discard this 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;
6 6
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     public function transpose() : Matrix
127 127
     {
128 128
         if ($this->rows == 1) {
129
-            $matrix = array_map(function ($el) {
129
+            $matrix = array_map(function($el) {
130 130
                 return [$el];
131 131
             }, $this->matrix[0]);
132 132
         } else {
Please login to merge, or discard this patch.
src/Phpml/Math/LinearAlgebra/LUDecomposition.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
  * @package JAMA
6 6
  *
Please login to merge, or discard this patch.