Passed
Branch master (e09f8d)
by Peter
26:53
created

AbstractStandards   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 2
c 1
b 1
f 0
dl 0
loc 11
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A runCheckYamlFileIsValid() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace YamlStandards\Model;
6
7
use YamlStandards\Model\Component\YamlService;
8
9
abstract class AbstractStandards
10
{
11
    /**
12
     * Simply check yaml file is valid, if not \Symfony\Component\Yaml\Yaml class throws \Symfony\Component\Yaml\Exception\ParseException
13
     *
14
     * @param string $pathToYamlFile
15
     * @throws \Symfony\Component\Yaml\Exception\ParseException
16
     */
17 7
    protected function runCheckYamlFileIsValid(string $pathToYamlFile): void
18
    {
19 7
        YamlService::getYamlData($pathToYamlFile);
20 7
    }
21
}
22