Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
34 | 3 | public function __construct($name, MimeTypeInterface $mimeType, SizeInterface $size, $tmpName) |
|
35 | { |
||
36 | 3 | parent::__construct($name, $mimeType, $size, $tmpName); |
|
37 | 3 | $this->encoded = sprintf( |
|
38 | 3 | self::BASE64_FILE_STRING, |
|
39 | 3 | $this->getMimeType(), |
|
40 | 3 | base64_encode( |
|
41 | 3 | file_get_contents($this->getTmpName()) |
|
42 | 2 | ) |
|
43 | 2 | ); |
|
44 | 3 | } |
|
45 | |||
56 |