Completed
Push — master ( a439c5...b826d9 )
by Bill
05:53 queued 03:49
created

CommandService::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php declare(strict_types = 1);
2
3
namespace Churn\Services;
4
5
class CommandService
6
{
7
    /**
8
     * Run a command line command and return the result.
9
     * @param  string $command Command to execute.
10
     * @return array
11
     */
12
    public function execute($command): array
13
    {
14
        exec($command, $output);
15
        return $output;
16
    }
17
}
18