Test Failed
Push — develop ( 32ca41...230235 )
by Brent
04:59
created

Parse::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 10
ccs 0
cts 6
cp 0
crap 2
rs 9.9332
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
    public function execute(): void
11
    {
12
        $parsedConfiguration = Yaml::parse(File::read($this->configurationFile));
13
14
        $pages = $this->parsePageConfiguration($parsedConfiguration);
15
16
        $this->renderPages($pages);
17
18
        $this->executeSubTasks();
19
    }
20
}
21