Completed
Push — master ( 6416fd...663035 )
by Thibaud
06:47
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 ], [
57
+        $response = $this->query('POST', 'v2/orders/', [], ['data' => $parameters], [
58 58
             'Accept' => 'application/json',
59 59
             'Content-Type' => 'application/json'
60 60
         ]);
Please login to merge, or discard this patch.