Completed
Push — master ( 9d49f5...4100db )
by Blackred
02:30
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/Test/Service/ComradeDeserializerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
         ]);
132 132
 
133 133
         /** @var PaginatedResults $results */
134
-        $results =  $comrade->decodeMultiple(SimpleTestEntity::class);
134
+        $results = $comrade->decodeMultiple(SimpleTestEntity::class);
135 135
 
136 136
         $this->assertInstanceOf(
137 137
             PaginatedResults::class,
Please login to merge, or discard this patch.
src/Service/ComradeReader.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,8 +136,7 @@
 block discarded – undo
136 136
                     $parameters
137 137
                 )->getBody()->getContents();
138 138
 
139
-        }
140
-        catch (ClientException $e) {
139
+        } catch (ClientException $e) {
141 140
             if ($e->getCode() === 404) {
142 141
                 throw new ResourceNotFoundException($url);
143 142
             }
Please login to merge, or discard this patch.
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.