Passed
Pull Request — master (#30)
by Jakub
07:01
created
src/CommandExtractor/JMSSerializerCommandExtractor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,26 +21,26 @@
 block discarded – undo
21 21
 
22 22
     public function __construct(SerializerInterface $jmsSerializer, ArrayTransformerInterface $jmsArrayTransformer)
23 23
     {
24
-        $this->jmsSerializer = $jmsSerializer;
25
-        $this->jmsArrayTransformer = $jmsArrayTransformer;
24
+        $this->jmsSerializer=$jmsSerializer;
25
+        $this->jmsArrayTransformer=$jmsArrayTransformer;
26 26
     }
27 27
 
28 28
     /**
29 29
      * {@inheritdoc}
30 30
      * @throws \LogicException
31 31
      */
32
-    public function extractFromRequest(Request $request, string $commandClass, array $additionalProps = [])
32
+    public function extractFromRequest(Request $request, string $commandClass, array $additionalProps=[])
33 33
     {
34 34
         if (empty($request->getContent())) {
35 35
             return $this->jmsArrayTransformer->fromArray($additionalProps, $commandClass);
36 36
         }
37 37
 
38
-        $decodedContent = $this->jmsSerializer->deserialize(
38
+        $decodedContent=$this->jmsSerializer->deserialize(
39 39
             $request->getContent(),
40 40
             'array',
41 41
             $request->getRequestFormat()
42 42
         );
43
-        $finalProps = array_merge($decodedContent, $additionalProps);
43
+        $finalProps=array_merge($decodedContent, $additionalProps);
44 44
 
45 45
         return $this->jmsArrayTransformer->fromArray($finalProps, $commandClass);
46 46
     }
Please login to merge, or discard this patch.
src/CommandExtractor/SerializerCommandExtractor.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
         DecoderInterface $decoder,
37 37
         DenormalizerInterface $denormalizer
38 38
     ) {
39
-        $this->serializer = $serializer;
40
-        $this->decoder = $decoder;
41
-        $this->denormalizer = $denormalizer;
39
+        $this->serializer=$serializer;
40
+        $this->decoder=$decoder;
41
+        $this->denormalizer=$denormalizer;
42 42
     }
43 43
 
44 44
     /**
@@ -46,17 +46,17 @@  discard block
 block discarded – undo
46 46
      * @throws \LogicException
47 47
      * @throws \Symfony\Component\Serializer\Exception\UnexpectedValueException
48 48
      */
49
-    public function extractFromRequest(Request $request, string $commandClass, array $additionalProps = [])
49
+    public function extractFromRequest(Request $request, string $commandClass, array $additionalProps=[])
50 50
     {
51
-        $requestContent = $request->getContent();
52
-        $requestFormat = $request->getRequestFormat();
51
+        $requestContent=$request->getContent();
52
+        $requestFormat=$request->getRequestFormat();
53 53
 
54 54
         if (empty($requestContent)) {
55 55
             return $this->denormalizer->denormalize($additionalProps, $commandClass, $requestFormat);
56 56
         }
57 57
 
58
-        $decodedContent = $this->decoder->decode($requestContent, $requestFormat);
59
-        $finalProps = array_merge($decodedContent, $additionalProps);
58
+        $decodedContent=$this->decoder->decode($requestContent, $requestFormat);
59
+        $finalProps=array_merge($decodedContent, $additionalProps);
60 60
 
61 61
         return $this->denormalizer->denormalize($finalProps, $commandClass, $requestFormat);
62 62
     }
Please login to merge, or discard this patch.