| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function createUploadedFile( |
||
| 16 | StreamInterface $stream, ?int $size = null, int $error = UPLOAD_ERR_OK, |
||
| 17 | string $clientFilename = null, string $clientMediaType = null |
||
| 18 | ): UploadedFileInterface |
||
| 19 | { |
||
| 20 | return new UploadedFile( |
||
| 21 | $stream, $size ?? $stream->getSize(), $error, |
||
| 22 | $clientFilename, $clientMediaType |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | } |