Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
66 | public function execute() { |
||
67 | // Extracts functions and pairs (keys, values) from the arguments array. |
||
68 | @list($funcs, $pairs) = $this->args; |
||
|
|||
69 | |||
70 | $keys = []; |
||
71 | $values = []; |
||
72 | |||
73 | // Extracts keys and values. |
||
74 | foreach ($pairs as $pair) { |
||
75 | $keys[] = $pair[0]; |
||
76 | $values[] = $pair[1]; |
||
77 | } |
||
78 | |||
79 | $this->server->reduce($funcs, $keys, $values, FALSE); |
||
80 | } |
||
81 | |||
82 | } |
If you suppress an error, we recommend checking for the error condition explicitly: