Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit ef2c497

Browse files
committed
reformat code
1 parent c82e6cb commit ef2c497

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/RecursivePaginationTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testAllLinks() {
2424
$paginator->addToQueue('osmosis/page1.html');
2525

2626
$allLinks = [];
27-
while ($page = $paginator->getNextPage()) {
27+
while (($page = $paginator->getNextPage())) {
2828
$adsList = $page->attribute("//h2/a/@href")->getItems();
2929
$allLinks = array_values(array_unique(array_merge($allLinks, $adsList)));
3030
}
@@ -44,7 +44,7 @@ public function testOneLink() {
4444
$paginator->addToQueue('osmosis/page1.html');
4545

4646
$allLinks = [];
47-
while ($page = $paginator->getNextPage()) {
47+
while (($page = $paginator->getNextPage())) {
4848
$adsList = $page->attribute("//h2/a/@href")->getItems();
4949
$allLinks = array_values(array_unique(array_merge($allLinks, $adsList)));
5050
}
@@ -63,7 +63,7 @@ public function testOneLinkWithEmptyPaginationXpath() {
6363
$paginator->addToQueue('osmosis/page1.html');
6464

6565
$allLinks = [];
66-
while ($page = $paginator->getNextPage()) {
66+
while (($page = $paginator->getNextPage())) {
6767
$adsList = $page->attribute("//h2/a/@href")->getItems();
6868
$allLinks = array_values(array_unique(array_merge($allLinks, $adsList)));
6969
}
@@ -83,7 +83,7 @@ public function testGetNextPageCustomPath() {
8383
$paginator->addToQueue('osmosis/page1.html');
8484

8585
$allLinks = [];
86-
while ($page = $paginator->getNextPage("//a[@class='pagenav']/@href")) {
86+
while (($page = $paginator->getNextPage("//a[@class='pagenav']/@href"))) {
8787
$adsList = $page->attribute("//h2/a/@href")->getItems();
8888
$allLinks = array_values(array_unique(array_merge($allLinks, $adsList)));
8989
}

0 commit comments

Comments
 (0)