| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function createUploadedFile( |
||
| 25 | StreamInterface $stream, |
||
| 26 | int $size = null, |
||
| 27 | int $error = \UPLOAD_ERR_OK, |
||
| 28 | string $clientFilename = null, |
||
| 29 | string $clientMediaType = null |
||
| 30 | ): UploadedFileInterface { |
||
| 31 | if ($size === null) { |
||
| 32 | $size = $stream->getSize(); |
||
| 33 | } |
||
| 34 | |||
| 35 | return new UploadedFile($stream, $size, $error, $clientFilename, $clientMediaType); |
||
|
|
|||
| 36 | } |
||
| 38 |