Completed
Pull Request — master (#9)
by Guillem
03:46
created
src/Denormalizer/ResourceDenormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         /** @var ResponseDefinition $definition */
32 32
         $definition = $context['responseDefinition'];
33 33
 
34
-        if (! $definition->hasBodySchema()) {
34
+        if (!$definition->hasBodySchema()) {
35 35
             throw new \LogicException(
36 36
                 sprintf(
37 37
                     'Cannot transform the response into a resource. You need to provide a schema for response %d in %s %s',
Please login to merge, or discard this patch.
src/ApiService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         $request = $this->createRequestFromDefinition($requestDefinition, $params);
127 127
         $this->validateRequest($request, $requestDefinition);
128 128
 
129
-        $response =  $this->client->sendRequest($request);
129
+        $response = $this->client->sendRequest($request);
130 130
         $this->validateResponse($response, $requestDefinition);
131 131
 
132 132
         $data = $this->getDataFromResponse(
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function callAsync($operationId, array $params = [])
152 152
     {
153
-        if (! $this->client instanceof HttpAsyncClient) {
153
+        if (!$this->client instanceof HttpAsyncClient) {
154 154
             throw new \RuntimeException(
155 155
                 sprintf(
156 156
                     '"%s" does not support async request',
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $promise = $this->client->sendAsyncRequest($request);
165 165
 
166 166
         return $promise->then(
167
-            function (ResponseInterface $response) use ($request, $requestDefinition) {
167
+            function(ResponseInterface $response) use ($request, $requestDefinition) {
168 168
 
169 169
                 return $this->getDataFromResponse(
170 170
                     $response,
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
         foreach ($params as $name => $value) {
254 254
             $requestParameter = $requestParameters->getByName($name);
255 255
             if ($requestParameter === null) {
256
-                throw new \InvalidArgumentException($name. ' is not a defined request parameter');
256
+                throw new \InvalidArgumentException($name.' is not a defined request parameter');
257 257
             }
258 258
 
259 259
             switch ($requestParameter->getLocation()) {
Please login to merge, or discard this patch.