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

CommandService   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 5 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