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

Rebuild::writeFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 2
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