Passed
Pull Request — master (#3)
by Koldo
02:38
created

RunInstall::exec()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 3
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Antidot\Installer;
6
7
class RunInstall
8
{
9
    /**
10
     * @param string $command
11
     * @param array<mixed>|null $output
12
     * @param null|int $returnVar
13
     * @return string
14
     */
15
    public function exec(string $command, array &$output = null, int &$returnVar = null): string
16
    {
17
        return \exec($command, $output, $returnVar);
18
    }
19
}
20