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

ProcessFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 2
c 1
b 0
f 1
dl 0
loc 12
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
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