Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
44 | 1 | protected function recurseString(array $string): array |
|
45 | { |
||
46 | 1 | $isOptional = $this->isOptional; |
|
47 | 1 | foreach ($string as $k => $element) |
|
48 | { |
||
49 | 1 | if (is_array($element)) |
|
50 | { |
||
51 | 1 | $string[$k] = $this->runner->run($element); |
|
52 | } |
||
53 | } |
||
54 | 1 | $this->isOptional = $isOptional; |
|
55 | |||
56 | 1 | return $string; |
|
57 | } |
||
58 | } |