Test Failed
Pull Request — master (#3)
by MediaCT
03:44
created

CodeStylePatcher::patch()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

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
rs 9.4285
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