Completed
Push — master ( f177e6...6416fd )
by Thibaud
04:57 queued 02:14
created
src/PhraseanetSDK/Orders/OrderRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.