@@ -54,7 +54,7 @@ |
||
54 | 54 | try { |
55 | 55 | $obj = $this->transformer->transform($request, $argument->getType(), $format); |
56 | 56 | } catch (\TypeError | NotEncodableValueException $e) { |
57 | - $problemMimeType = 'application/problem+' . $format; |
|
57 | + $problemMimeType = 'application/problem+'.$format; |
|
58 | 58 | |
59 | 59 | throw new HttpException( |
60 | 60 | 400, |
@@ -40,8 +40,7 @@ discard block |
||
40 | 40 | } elseif (is_a($className, RequestObjectInterface::class, true)) { |
41 | 41 | $dto = $this->serializer->denormalize( |
42 | 42 | $request->isMethod('GET') || $request->isMethod('HEAD') ? |
43 | - $request->query->all() : |
|
44 | - $request->request->all(), |
|
43 | + $request->query->all() : $request->request->all(), |
|
45 | 44 | $className, |
46 | 45 | $format, |
47 | 46 | $context |
@@ -56,7 +55,7 @@ discard block |
||
56 | 55 | } elseif (is_a($className, ConstructRequestObjectInterface::class, true)) { |
57 | 56 | $dto = new $className($request); |
58 | 57 | } else { |
59 | - throw new \RuntimeException('Class ' . $className . ' is not supported.'); |
|
58 | + throw new \RuntimeException('Class '.$className.' is not supported.'); |
|
60 | 59 | } |
61 | 60 | |
62 | 61 | return $dto; |