Passed
Push — master ( 1426d4...f170c2 )
by Ashoka
03:32 queued 10s
created

CodeStylePatcher::patch()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 7
ccs 5
cts 5
cp 1
crap 1
rs 10
1
<?php declare(strict_types=1);
2
/**
3
 * Copyright MediaCT. All rights reserved.
4
 * https://www.mediact.nl
5
 */
6
7
namespace Mediact\CodingStandard\PhpStorm\Patcher;
8
9
use Mediact\CodingStandard\PhpStorm\EnvironmentInterface;
10
11
class CodeStylePatcher implements ConfigPatcherInterface
12
{
13
    use CopyFilesTrait;
14
15
    /**
16
     * Patch the config.
17
     *
18
     * @param EnvironmentInterface $environment
19
     *
20
     * @return void
21
     */
22 1
    public function patch(
23
        EnvironmentInterface $environment
24
    ): void {
25 1
        $this->copyFile(
26 1
            $environment->getDefaultsFilesystem(),
27 1
            $environment->getIdeConfigFilesystem(),
28 1
            'codeStyleSettings.xml'
29
        );
30 1
    }
31
}
32