UnreadableFileException   A
last analyzed

Coupling/Cohesion

Components 0
Dependencies 1

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A forFileInfo() 0 9 1
1
<?php
2
3
namespace League\Flysystem;
4
5
use SplFileInfo;
6
7
class UnreadableFileException extends Exception
8
{
9 3
    public static function forFileInfo(SplFileInfo $fileInfo)
10
    {
11 3
        return new static(
12 3
            sprintf(
13 3
                'Unreadable file encountered: %s',
14 3
                $fileInfo->getRealPath()
15 3
            )
16 3
        );
17
    }
18
}
19