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

Parse::parsePageConfiguration()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 6
nc 2
nop 1
dl 0
loc 12
ccs 6
cts 6
cp 1
crap 2
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