| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 1 | public function exec($format, array $parameters = []) |
|
| 18 | { |
||
| 19 | 1 | $parameters = array_map("escapeshellarg", $parameters); |
|
| 20 | |||
| 21 | 1 | array_unshift($parameters, $format); |
|
| 22 | |||
| 23 | 1 | $command = call_user_func_array("sprintf", $parameters); |
|
| 24 | |||
| 25 | 1 | exec($command, $output); |
|
| 26 | |||
| 27 | 1 | return $output; |
|
|
|
|||
| 28 | } |
||
| 29 | } |
||
| 30 |