| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 3 | protected static function getCells(Config $config) |
|
| 32 | { |
||
| 33 | 3 | $cells = []; |
|
| 34 | |||
| 35 | 3 | for ($row = 0; $row < $config->rows(); $row++) { |
|
| 36 | 3 | for ($column = 0; $column < $config->columns(); $column++) { |
|
| 37 | 3 | $coordinate = new Coordinate($row, $column, $config->columns()); |
|
| 38 | |||
| 39 | 3 | $cells[$coordinate->position()] = new Cell($config); |
|
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | 3 | return $cells; |
|
| 44 | } |
||
| 63 |