Conditions | 4 |
Paths | 4 |
Total Lines | 24 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function getTaskArguments() |
||
28 | { |
||
29 | $arguments = $this->arguments; |
||
30 | |||
31 | unset($arguments['task']); |
||
32 | |||
33 | $argumentsAllowed = \array_combine( |
||
34 | static::ARGUMENTS, |
||
35 | static::ARGUMENTS |
||
36 | ); |
||
37 | |||
38 | if (empty($argumentsAllowed)) { |
||
39 | return $arguments; |
||
40 | } |
||
41 | |||
42 | foreach ($arguments as $key => $value) { |
||
43 | if (isset($argumentsAllowed[$key])) { |
||
44 | continue; |
||
45 | } |
||
46 | |||
47 | unset($arguments[$key]); |
||
48 | } |
||
49 | |||
50 | return $arguments; |
||
51 | } |
||
63 |