Completed
Push — master ( 96e4bc...a1811a )
by Alexey
03:33 queued 11s
created
src/ArgumentResolver/RequestDtoValueResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Transform/RequestDtoTransform.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.