Completed
Pull Request — 2.x (#402)
by
unknown
03:02 queued 01:10
created

SplFileInfo::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
declare(strict_types=1);
3
4
/*
5
 * @author Martin Fris <[email protected]>
6
 */
7
8
namespace Go\Instrument\FileSystem;
9
10
use SplFileInfo as CoreSplFileInfo;
11
12
/**
13
 *
14
 */
15
final class SplFileInfo extends CoreSplFileInfo
16
{
17
18
    /**
19
     * @param string $file_name
20
     */
21
    public function __construct($file_name)
22
    {
23
        $file_name = str_replace(DIRECTORY_SEPARATOR, '/', $file_name);
24
25
        parent::__construct($file_name);
26
    }
27
}
28