@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $this->apiRequest([ |
127 | 127 | 'method' => 'post', |
128 | 128 | 'path' => $path, |
129 | - 'body' => (string)$this->request->getBody(), |
|
129 | + 'body' => (string) $this->request->getBody(), |
|
130 | 130 | ]); |
131 | 131 | } |
132 | 132 | |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $this->apiRequest([ |
142 | 142 | 'method' => 'patch', |
143 | 143 | 'path' => $path, |
144 | - 'body' => (string)$this->request->getBody(), |
|
144 | + 'body' => (string) $this->request->getBody(), |
|
145 | 145 | ]); |
146 | 146 | } |
147 | 147 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | $this->apiRequest([ |
157 | 157 | 'method' => 'delete', |
158 | 158 | 'path' => $path, |
159 | - 'body' => (string)$this->request->getBody(), |
|
159 | + 'body' => (string) $this->request->getBody(), |
|
160 | 160 | ]); |
161 | 161 | } |
162 | 162 | |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | } |
230 | 230 | $this->response = $this->response->withStatus($status); |
231 | 231 | $errorData = [ |
232 | - 'status' => (string)$status, |
|
232 | + 'status' => (string) $status, |
|
233 | 233 | 'title' => $error->getMessage(), |
234 | 234 | ]; |
235 | 235 | $this->set('error', $errorData); |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | $response = $this->maskMultiLinks($response, 'meta.resources', 'href'); |
262 | 262 | } |
263 | 263 | |
264 | - $data = (array)Hash::get($response, 'data'); |
|
264 | + $data = (array) Hash::get($response, 'data'); |
|
265 | 265 | if (empty($data)) { |
266 | 266 | return $response; |
267 | 267 | } |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | $response['data'] = $this->maskMultiLinks($data); |
277 | 277 | } |
278 | 278 | |
279 | - return (array)$response; |
|
279 | + return (array) $response; |
|
280 | 280 | } |
281 | 281 | |
282 | 282 | /** |