Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
1 | <?php |
||
16 | 2 | public function parseArguments(ExecutorInterface $executor) : array |
|
17 | { |
||
18 | 2 | $result = []; |
|
19 | |||
20 | 2 | foreach (parent::parseArguments($executor) as $argument) { |
|
21 | 2 | if (is_array($argument)) { |
|
22 | 2 | $result = array_merge($result, $argument); |
|
23 | } else { |
||
24 | 2 | $result[] = $argument; |
|
25 | } |
||
26 | } |
||
27 | |||
28 | 2 | return $result; |
|
29 | } |
||
30 | |||
40 |