Passed
Pull Request — master (#121)
by Marcin
02:39
created
src/Phpml/Math/Matrix.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     }
92 92
 
93 93
     /**
94
-     * @param $column
94
+     * @param integer $column
95 95
      *
96 96
      * @return array
97 97
      *
Please login to merge, or discard this patch.
src/Phpml/Clustering/KMeans/Cluster.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
     }
129 129
 
130 130
     /**
131
-     * @return mixed
131
+     * @return integer
132 132
      */
133 133
     public function count()
134 134
     {
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@
 block discarded – undo
138 138
     }
139 139
     
140 140
     /**
141
-    * @param array $newCoordinates
142
-    */
141
+     * @param array $newCoordinates
142
+     */
143 143
     public function setCoordinates(array $newCoordinates)
144 144
     {
145 145
         $this->coordinates = $newCoordinates;
Please login to merge, or discard this patch.
src/Phpml/DimensionReduction/KernelPCA.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,9 +136,9 @@
 block discarded – undo
136 136
         $N_K_N = $N->multiply($K_N);
137 137
 
138 138
         return $K->subtract($N_K)
139
-                 ->subtract($K_N)
140
-                 ->add($N_K_N)
141
-                 ->toArray();
139
+                    ->subtract($K_N)
140
+                    ->add($N_K_N)
141
+                    ->toArray();
142 142
     }
143 143
 
144 144
     /**
Please login to merge, or discard this patch.
src/Phpml/NeuralNetwork/Training/Backpropagation.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
     }
34 34
 
35 35
     /**
36
-     * @param array $layers
37
-     * @param mixed $targetClass
36
+     * @param \Phpml\NeuralNetwork\Layer[] $layers
37
+     * @param integer $targetClass
38 38
      */
39 39
     public function backpropagate(array $layers, $targetClass)
40 40
     {
Please login to merge, or discard this patch.
src/Phpml/Classification/Linear/Perceptron.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,10 +100,10 @@
 block discarded – undo
100 100
     }
101 101
 
102 102
     /**
103
-      * @param array $samples
104
-      * @param array $targets
105
-      * @param array $labels
106
-      */
103
+     * @param array $samples
104
+     * @param array $targets
105
+     * @param array $labels
106
+     */
107 107
     public function trainBinary(array $samples, array $targets, array $labels)
108 108
     {
109 109
         if ($this->normalizer) {
Please login to merge, or discard this patch.
src/Phpml/Math/LinearAlgebra/EigenvalueDecomposition.php 1 patch
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.