Conditions | 5 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function render() |
||
23 | { |
||
24 | $formatedSubset = []; |
||
25 | |||
26 | foreach ($this->criteriaList as $criteria) { |
||
27 | $formatedSubset = array_merge($formatedSubset, $criteria->render()); |
||
28 | } |
||
29 | |||
30 | $subset = lcfirst(class_basename(get_class($this))); |
||
31 | |||
32 | if ($subset === 'series' && (! $this->cascade || starts_with($this->cascade, 'series.'))) { |
||
33 | return [$subset => [$formatedSubset]]; |
||
34 | } |
||
35 | |||
36 | return [$subset => $formatedSubset]; |
||
37 | } |
||
38 | |||
46 |