Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray authored and github-actions[bot] committed Oct 27, 2023
1 parent 396230a commit bc69d2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/pagination/backwards.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

while ($page->hasPrevious()) {
foreach ($page as $order) {
echo ($order->id);
echo($order->id);
}

$page = $page->previous();
Expand All @@ -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 ($client->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());
Expand Down
4 changes: 2 additions & 2 deletions examples/pagination/basic_usage.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

while ($page->hasNext()) {
foreach ($page as $order) {
echo ($order->id);
echo($order->id);
}

$page = $page->next();
Expand All @@ -49,7 +49,7 @@

// using the iterator we can iterate over all orders directly
foreach ($client->orders->iterator() as $order) {
echo ($order->id);
echo($order->id);
}
} catch (\Mollie\Api\Exceptions\ApiException $e) {
echo "API call failed: " . htmlspecialchars($e->getMessage());
Expand Down

0 comments on commit bc69d2f

Please sign in to comment.