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

AbstractChecker::runCheck()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 2
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace YamlStandards\Model;
6
7
use YamlStandards\Model\Config\StandardParametersData;
8
use YamlStandards\Result\Result;
9
10
abstract class AbstractChecker extends AbstractStandards implements CheckerInterface
11
{
12
    /**
13
     * @param string $pathToYamlFile
14
     * @param \YamlStandards\Model\Config\StandardParametersData $standardParametersData
15
     * @return \YamlStandards\Result\Result
16
     */
17 8
    public function runCheck(string $pathToYamlFile, StandardParametersData $standardParametersData): Result
18
    {
19 8
        $this->runCheckYamlFileIsValid($pathToYamlFile);
20
21 8
        return $this->check($pathToYamlFile, $standardParametersData);
22
    }
23
}
24