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

SplFileInfo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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