| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.0625 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 1 | public function renderCell(int $x, int $y, AbstractVisualPanel $panel): string |
|
| 28 | { |
||
| 29 | /** |
||
| 30 | * |
||
| 31 | if ($this->renderer instanceof SystemLayerRenderer) { |
||
| 32 | // throw new RuntimeException(print_r($this->data, true)); |
||
| 33 | } |
||
| 34 | */ |
||
| 35 | |||
| 36 | 1 | if (!array_key_exists($x, $this->data)) { |
|
| 37 | throw new RuntimeException('array index not available'); |
||
| 38 | } |
||
| 39 | |||
| 40 | 1 | return $this->renderer->render($this->data[$x][$y], $panel); |
|
| 41 | } |
||
| 43 |