FileAssistant::getFileContents()   A
last analyzed

Complexity

Conditions 2
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 2
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ReliqArts\StyleImporter\Util;
6
7
class FileAssistant
8
{
9
    /**
10
     * @codeCoverageIgnore
11
     * @param string $path
12
     *
13
     * @return string
14
     */
15
    public function getFileContents(string $path): string
16
    {
17
        return file_get_contents($path) ?: '';
18
    }
19
}
20