Passed
Push — v2 ( 5c6a17...17236d )
by Brent
05:18
created

Parse::renderPages()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 15
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 3

Importance

Changes 0
Metric Value
cc 3
eloc 6
nc 3
nop 1
dl 0
loc 15
ccs 7
cts 7
cp 1
crap 3
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Stitcher\Command;
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