Completed
Push — master ( 0a0b74...dcdfcd )
by Woody
03:12
created

System::writeFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace RoundingWell\Schematic;
5
6
/**
7
 * @codeCoverageIgnore
8
 */
9
class System
10
{
11
    public function writeFile(string $file, string $contents): int
12
    {
13
        return (int) file_put_contents($file, $contents);
14
    }
15
}
16