Passed
Push — develop ( 3028ee...99cd1a )
by Brent
06:58
created

Parse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 8 1
1
<?php
2
3
namespace Stitcher\Task;
4
5
use Stitcher\File;
6
use Symfony\Component\Yaml\Yaml;
7
8
class Parse extends AbstractParse
9
{
10 5
    public function execute(): void
11
    {
12 5
        $parsedConfiguration = Yaml::parse(File::read($this->configurationFile));
13
14 5
        $pages = $this->parsePageConfiguration($parsedConfiguration);
15
16 5
        $this->renderPages($pages);
17 5
    }
18
}
19