Passed
Pull Request — master (#326)
by Arkadiusz
07:07
created
src/Math/Matrix.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
     public function transpose(): self
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/Dataset/MnistDataset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
                 $imageBytes = fread($stream, $fields['rows'] * $fields['cols']);
62 62
 
63 63
                 // Convert to float between 0 and 1
64
-                $images[] = array_map(function ($b) {
64
+                $images[] = array_map(function($b) {
65 65
                     return $b / 255;
66 66
                 }, array_values(unpack('C*', (string) $imageBytes)));
67 67
             }
Please login to merge, or discard this patch.