Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public static function execCommand($command, $arguments = [], $options = []) |
||
16 | { |
||
17 | $arguments = trim(implode(' ', $arguments)); |
||
18 | $options = self::execOptions($options); |
||
19 | $command = trim(PRESS_CLI_WP_EXEC . " {$command}"); |
||
20 | $command = implode(' ', array_filter([$command, $arguments, $options])); |
||
21 | |||
22 | return system($command); |
||
23 | } |
||
24 | |||
45 |