Conditions | 4 |
Paths | 8 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
14 | 1 | public static function fromArray(array $data) |
|
15 | { |
||
16 | $tools = [ |
||
17 | 1 | isset($data['phpunit']) ? PhpUnitFactory::fromArray($data['phpunit']) : PhpUnitFactory::setUndefined(), |
|
18 | 1 | isset($data['phpunit']['strict-coverage']) ? PhpUnitStrictCoverageFactory::fromArray( |
|
19 | 1 | $data['phpunit']['strict-coverage'] |
|
20 | 1 | ) : PhpUnitStrictCoverageFactory::setUndefined(), |
|
21 | 1 | isset($data['phpunit']['guard-coverage']) ? PhpUnitGuardCoverageFactory::build( |
|
22 | 1 | $data['phpunit']['guard-coverage'] |
|
23 | 1 | ) : PhpUnitGuardCoverageFactory::setUndefined(), |
|
24 | ]; |
||
25 | |||
26 | 1 | return new Execute($tools); |
|
27 | } |
||
28 | |||
43 |