Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function filterItems(MutableContainerInterface $container): MutableContainerInterface |
||
27 | { |
||
28 | $filtered = clone $container; |
||
29 | $filtered->reset(); |
||
30 | |||
31 | array_map( |
||
32 | [$filtered, 'add'], |
||
33 | array_filter( |
||
34 | $container->getItems(), |
||
35 | [$this, 'filter'] |
||
36 | ) |
||
37 | ); |
||
38 | |||
39 | return $filtered; |
||
40 | } |
||
58 |