@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $parameters = [ |
| 24 | 24 | 'page' => max($pageIndex, 0), |
| 25 | 25 | 'per_page' => max($pageSize, 1), |
| 26 | - 'includes' => [ 'elements' ], |
|
| 26 | + 'includes' => ['elements'], |
|
| 27 | 27 | 't' => time() |
| 28 | 28 | ]; |
| 29 | 29 | |
@@ -33,11 +33,11 @@ discard block |
||
| 33 | 33 | throw new RuntimeException('Response content is empty'); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - if (! $response->hasProperty('data')) { |
|
| 36 | + if (!$response->hasProperty('data')) { |
|
| 37 | 37 | throw new RuntimeException('Missing \'data\' property in response'); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - if (! $response->hasProperty('meta')) { |
|
| 40 | + if (!$response->hasProperty('meta')) { |
|
| 41 | 41 | throw new RuntimeException('Missing \'meta\' property in response'); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | 'records' => $recordsIds |
| 55 | 55 | ]; |
| 56 | 56 | |
| 57 | - $response = $this->query('POST', 'v2/orders/', [], [ 'data' => $parameters ], ['Accept' => 'application/json']); |
|
| 57 | + $response = $this->query('POST', 'v2/orders/', [], ['data' => $parameters], ['Accept' => 'application/json']); |
|
| 58 | 58 | |
| 59 | 59 | return new Order($response->getProperty('data')); |
| 60 | 60 | } |