Passed
Pull Request — master (#204)
by Marcin
02:38
created
src/Phpml/NeuralNetwork/Network/MultilayerPerceptron.php 2 patches
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\Network;
6 6
 
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -132,6 +132,9 @@
 block discarded – undo
132 132
         $this->addLayer(new Layer($nodes, Input::class));
133 133
     }
134 134
 
135
+    /**
136
+     * @param ActivationFunction $activationFunction
137
+     */
135 138
     private function addNeuronLayers(array $layers, ?ActivationFunction $activationFunction = null): void
136 139
     {
137 140
         foreach ($layers as $neurons) {
Please login to merge, or discard this patch.
src/Phpml/NeuralNetwork/Node/Input.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\Node;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/NeuralNetwork/Node/Neuron.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\Node;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/NeuralNetwork/ActivationFunction.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;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/NeuralNetwork/Network.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;
6 6
 
Please login to merge, or discard this patch.
src/Phpml/NeuralNetwork/ActivationFunction/HyperbolicTangent.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/NeuralNetwork/ActivationFunction/BinaryStep.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/NeuralNetwork/ActivationFunction/Sigmoid.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/Regression/Regression.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\Regression;
6 6
 
Please login to merge, or discard this patch.