Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function __invoke(ContainerInterface $container): PanelCollection |
||
17 | { |
||
18 | $panels = []; |
||
19 | foreach ($this->panels as $id => $panel) { |
||
20 | if (is_string($panel)) { |
||
21 | $panel = $container->get($panel); |
||
22 | } |
||
23 | $panels[$id] = $panel; |
||
24 | } |
||
25 | |||
26 | return new PanelCollection($panels); |
||
27 | } |
||
29 |