mirror of
https://github.com/furyfire/trueskill.git
synced 2025-07-10 22:12:07 +02:00
Pint applied for formatting
This commit is contained in:
@ -1,14 +1,16 @@
|
||||
<?php namespace DNW\Skills\Numerics;
|
||||
<?php
|
||||
|
||||
namespace DNW\Skills\Numerics;
|
||||
|
||||
class SquareMatrix extends Matrix
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$allValues = func_get_args();
|
||||
$rows = (int)sqrt(count($allValues));
|
||||
$rows = (int) sqrt(count($allValues));
|
||||
$cols = $rows;
|
||||
|
||||
$matrixData = array();
|
||||
$matrixData = [];
|
||||
$allValuesIndex = 0;
|
||||
|
||||
for ($currentRow = 0; $currentRow < $rows; $currentRow++) {
|
||||
@ -19,4 +21,4 @@ class SquareMatrix extends Matrix
|
||||
|
||||
parent::__construct($rows, $cols, $matrixData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user