@@ -230,7 +230,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -93,7 +93,7 @@ |
||
| 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); |
@@ -27,7 +27,7 @@ |
||
| 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); |