Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
23 | public function __invoke(Scope $scope, string $identifier = null, ...$params): array |
||
24 | { |
||
25 | $childScope = $scope->childScope($identifier); |
||
26 | |||
27 | $items = []; |
||
28 | |||
29 | foreach ($this->data as $data) { |
||
30 | $items[] = $childScope->transform( |
||
31 | $this->transformer, |
||
32 | $data, |
||
33 | $params |
||
34 | ); |
||
35 | } |
||
36 | |||
37 | return $items; |
||
38 | } |
||
39 | } |
||
40 |