@@ -83,7 +83,7 @@ |
||
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'); |
@@ -57,7 +57,7 @@ discard block |
||
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 |
||
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 | ], |
@@ -164,8 +164,7 @@ |
||
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 | } |
@@ -142,7 +142,7 @@ |
||
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, |