ProcessBuilder::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Suitmedia\LighthouseAudit;
4
5
use Symfony\Component\Process\Process;
6
7
class ProcessBuilder
8
{
9
    /**
10
     * Create a new symfony process object based on
11
     * the given command strings.
12
     *
13
     * @param array $command
14
     *
15
     * @return Process
16
     */
17
    public function create(array $command) :Process
18
    {
19
        $process = new Process($command);
20
        $process->setTimeout(90);
21
22
        return $process;
23
    }
24
}
25