Completed
Push — master ( 4100db...11d3d6 )
by Blackred
06:57
created
src/Service/ComradeDeserializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         $responseObjects = isset($responseDecoded['results']) ? $responseDecoded['results'] : $responseDecoded;
84 84
         $responseObjects = array_map(
85 85
 
86
-            function ($item) use ($targetEntity)
86
+            function($item) use ($targetEntity)
87 87
             {
88 88
                 $item = $this->_convertNaming($item);
89 89
                 return $this->serializer->deserialize(json_encode($item), $targetEntity, 'json');
Please login to merge, or discard this patch.
src/Service/ComradeReader.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         CacheProvider $cache)
58 58
     {
59 59
         $this->url        = $apiUrl;
60
-        $this->secretToken     = $apiKey;
60
+        $this->secretToken = $apiKey;
61 61
         $this->serializer = $serializer;
62 62
         $this->cache      = $cache;
63 63
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     protected function getClient()
69 69
     {
70 70
         if (!$this->client instanceof ClientInterface) {
71
-            $this->client     = new Client([
71
+            $this->client = new Client([
72 72
                 'headers' => [
73 73
                     'Content-Type' => 'application/json'
74 74
                 ],
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,8 +164,7 @@
 block discarded – undo
164 164
                     $this->getPreparedRequestUrl($url),
165 165
                     $parameters
166 166
                 );
167
-        }
168
-        catch (RequestException $e) {
167
+        } catch (RequestException $e) {
169 168
             if ($e->getCode() === 404) {
170 169
                 throw new ResourceNotFoundException($url);
171 170
             }
Please login to merge, or discard this patch.
src/Test/Service/ComradeDeserializerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
         ]);
143 143
 
144 144
         /** @var PaginatedResults $results */
145
-        $results =  $comrade->decodeIntoMultipleObjects(SimpleTestEntity::class);
145
+        $results = $comrade->decodeIntoMultipleObjects(SimpleTestEntity::class);
146 146
 
147 147
         $this->assertInstanceOf(
148 148
             PaginatedResults::class,
Please login to merge, or discard this patch.