Passed
Pull Request — master (#74)
by Peter
08:25 queued 01:31
created

AbstractFixer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A runFix() 0 5 1
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 AbstractFixer extends AbstractStandards implements FixerInterface
11
{
12
    /**
13
     * @param string $pathToFile
14
     * @param string $pathToDumpFixedFile
15
     * @param \YamlStandards\Model\Config\StandardParametersData $standardParametersData
16
     * @return \YamlStandards\Result\Result
17
     */
18 1
    public function runFix(string $pathToFile, string $pathToDumpFixedFile, StandardParametersData $standardParametersData): Result
19
    {
20 1
        $this->runCheckYamlFileIsValid($pathToFile);
21
22 1
        return $this->fix($pathToFile, $pathToDumpFixedFile, $standardParametersData);
23
    }
24
}
25