Passed
Push — master ( 1995c6...6ecf81 )
by Radu
01:20
created

File   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
namespace WebServCo\Framework;
3
4
final class File extends AbstractFile
5
{
6
    public function __construct($fileName, $fileData, $contentType = 'application/octet-stream')
7
    {
8
        if (is_resource($fileData)) {
9
            $fileData = stream_get_contents($fileData);
10
        }
11
        parent::__construct($fileName, $fileData, $contentType);
12
    }
13
}
14