Test Failed
Push — master ( e831df...0bea11 )
by Ashoka
13:52 queued 11:00
created

ProcessFactory::create()   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 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Copyright MediaCT. All rights reserved.
4
 * https://www.mediact.nl
5
 */
6
7
namespace Mediact\TestingSuite\Composer\Factory;
8
9
use Symfony\Component\Process\Process;
10
11
class ProcessFactory implements ProcessFactoryInterface
12
{
13
    /**
14
     * Create a new Process instance.
15
     *
16
     * @param string $commandLine
17
     *
18
     * @return Process
19
     */
20
    public function create(string $commandLine): Process
21
    {
22
        return new Process($commandLine);
0 ignored issues
show
Bug introduced by
$commandLine of type string is incompatible with the type array expected by parameter $command of Symfony\Component\Process\Process::__construct(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

22
        return new Process(/** @scrutinizer ignore-type */ $commandLine);
Loading history...
23
    }
24
}
25