Passed
Pull Request — master (#24)
by Dmitriy
26:58 queued 11:52
created

Rebuild   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 5
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A writeFile() 0 3 1
1
<?php
2
3
namespace Yiisoft\Composer\Config\Config;
4
5
/**
6
 * Rebuild class represents __rebuild.php script.
7
 */
8
class Rebuild extends Config
9
{
10
    protected function writeFile(string $path, array $data): void
11
    {
12
        $this->contentWriter->write($path, file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . '__rebuild.php'));
13
    }
14
}
15