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

Parse::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 8
ccs 5
cts 5
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
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