Test Failed
Pull Request — master (#3)
by MediaCT
06:30
created

CodeStylePatcher   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A patch() 0 7 1
1
<?php
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
    public function patch(
23
        EnvironmentInterface $environment
24
    ) {
25
        $this->copyFile(
26
            $environment->getDefaultsFilesystem(),
27
            $environment->getIdeConfigFilesystem(),
28
            'codeStyleSettings.xml'
29
        );
30
    }
31
}
32