diff --git a/examples/pagination/backwards.php b/examples/pagination/backwards.php index d14823dc..35aa6363 100644 --- a/examples/pagination/backwards.php +++ b/examples/pagination/backwards.php @@ -41,7 +41,7 @@ while ($page->hasPrevious()) { foreach ($page as $order) { - echo ($order->id); + echo($order->id); } $page = $page->previous(); @@ -50,7 +50,7 @@ // iterating backwards using the iterator by passing iterateBackwards = true // in php 8.0+ you could also use the named parameter syntax iterator(iterateBackwards: true) foreach ($mollie->orders->iterator(null, null, [], true) as $order) { - echo ($order->id); + echo($order->id); } } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage()); diff --git a/examples/pagination/basic_usage.php b/examples/pagination/basic_usage.php index 658da245..3e927ca8 100644 --- a/examples/pagination/basic_usage.php +++ b/examples/pagination/basic_usage.php @@ -40,7 +40,7 @@ while ($page->hasNext()) { foreach ($page as $order) { - echo ($order->id); + echo($order->id); } $page = $page->next(); @@ -49,7 +49,7 @@ // using the iterator we can iterate over all orders directly foreach ($mollie->orders->iterator() as $order) { - echo ($order->id); + echo($order->id); } } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage());