Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | 3 | public function parseValue(mixed $value): UploadedFileInterface |
|
35 | { |
||
36 | 3 | if (!$value instanceof UploadedFileInterface) { |
|
37 | 1 | throw new UnexpectedValueException('Could not get uploaded file, be sure to conform to GraphQL multipart request specification. Instead got: ' . Utils::printSafe($value)); |
|
38 | } |
||
39 | |||
40 | 2 | return $value; |
|
41 | } |
||
51 |