Rebuild::writeFile()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
1
<?php
2
/**
3
 * Composer plugin for config assembling
4
 *
5
 * @link      https://github.com/hiqdev/composer-config-plugin
6
 * @package   composer-config-plugin
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2016-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\composer\config\configs;
12
13
/**
14
 * Rebuild class represents __rebuild.php script.
15
 *
16
 * @author Andrii Vasyliev <[email protected]>
17
 *
18
 * @since php5.5
19
 */
20
class Rebuild extends Config
21
{
22
    /**
23
     * @param string $path
24
     * @param array  $data
25
     * @throws \hiqdev\composer\config\exceptions\FailedWriteException
26
     */
27
    protected function writeFile($path, array $data)
28
    {
29
        static::putFile($path, file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . '__rebuild.php'));
30
    }
31
}
32