@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Phpml\DimensionReduction; |
| 6 | 6 | |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | // Calculate overall mean of the dataset for each column |
| 148 | 148 | $numElements = array_sum($counts); |
| 149 | - $map = function ($el) use ($numElements) { |
|
| 149 | + $map = function($el) use ($numElements) { |
|
| 150 | 150 | return $el / $numElements; |
| 151 | 151 | }; |
| 152 | 152 | $this->overallMean = array_map($map, $overallMean); |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Phpml\DimensionReduction; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Phpml\Math; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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; |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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); |
@@ -88,6 +88,7 @@ |
||
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * @throws MatrixException |
| 91 | + * @param integer $column |
|
| 91 | 92 | */ |
| 92 | 93 | public function getColumnValues($column) : array |
| 93 | 94 | { |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | /** |
| 5 | 5 | * @package JAMA |
| 6 | 6 | * |