Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function renderCell($key, $cellData, FormatterOptions $options) |
||
42 | { |
||
43 | $flattenedRendererList = array_reduce( |
||
44 | $this->rendererList, |
||
45 | function ($carry, $item) { |
||
46 | return array_merge($carry, $item); |
||
47 | }, |
||
48 | [] |
||
49 | ); |
||
50 | |||
51 | foreach ($flattenedRendererList as $renderer) { |
||
52 | $cellData = $renderer->renderCell($key, $cellData, $options); |
||
53 | if (is_string($cellData)) { |
||
54 | return $cellData; |
||
55 | } |
||
56 | } |
||
57 | return $cellData; |
||
58 | } |
||
59 | } |
||
60 |