@@ -23,7 +23,9 @@ |
||
23 | 23 | ]); |
24 | 24 | |
25 | 25 | $result = $response->json(); |
26 | - if (!is_array($result)) $result = [$result]; |
|
26 | + if (!is_array($result)) { |
|
27 | + $result = [$result]; |
|
28 | + } |
|
27 | 29 | |
28 | 30 | $finalOrders = []; |
29 | 31 | foreach ($result as $item) { |