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

CodeStylePatcher   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 18
ccs 5
cts 5
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A patch() 0 7 1
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