Test Failed
Pull Request — dev (#56)
by Jordan
12:06
created
src/Samsara/Fermat/Types/Matrix.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
             foreach ($this->rows as $rowKey => $row) {
232 232
                 $resultArray[$rowKey] = new NumberCollection();
233
-                for ($i = 0;$i < $value->getColumnCount();$i++) {
233
+                for ($i = 0; $i < $value->getColumnCount(); $i++) {
234 234
                     $cellVal = Numbers::makeZero();
235 235
                     /** @var NumberInterface $num */
236 236
                     foreach ($row->toArray() as $index => $num) {
@@ -273,8 +273,8 @@  discard block
 block discarded – undo
273 273
         $newMatrixData = [];
274 274
 
275 275
         // TODO: Implement minors & cofactors method https://www.mathsisfun.com/algebra/matrix-inverse-minors-cofactors-adjugate.html
276
-        for ($i = 0;$i < $columnCount;$i++) {
277
-            for ($r = 0;$r < $columnCount;$r++) {
276
+        for ($i = 0; $i < $columnCount; $i++) {
277
+            for ($r = 0; $r < $columnCount; $r++) {
278 278
 
279 279
             }
280 280
         }
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
         $newRows = [];
303 303
 
304
-        for ($i = 0;$i < $this->getRowCount();$i++) {
304
+        for ($i = 0; $i < $this->getRowCount(); $i++) {
305 305
             if ($i === $excludeRow) {
306 306
                 continue;
307 307
             }
Please login to merge, or discard this patch.
src/Samsara/Fermat/Types/Traits/Matrix/ShapeTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
      */
94 94
     public function rotate(bool $clockwise = true): MatrixInterface
95 95
     {
96
-        $tempData =  $clockwise ? $this->rows :  $this->columns;
96
+        $tempData = $clockwise ? $this->rows : $this->columns;
97 97
         $mode = $clockwise ? self::MODE_COLUMNS_INPUT : self::MODE_ROWS_INPUT;
98 98
 
99 99
         $tempData = array_reverse($tempData);
Please login to merge, or discard this patch.
src/Samsara/Fermat/Provider/ConstantProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public static function makeE(int $digits): string
28 28
     {
29 29
 
30
-        $internalPrecision = $digits + 5;
30
+        $internalPrecision = $digits+5;
31 31
 
32 32
         $one = Numbers::makeOne($internalPrecision)->setMode(Selectable::CALC_MODE_PRECISION);
33 33
         $denominator = Numbers::make(Numbers::MUTABLE, '1', $internalPrecision)->setMode(Selectable::CALC_MODE_PRECISION);
Please login to merge, or discard this patch.