Skip to content

Commit

Permalink
hotfix [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Irfan committed Sep 17, 2020
1 parent c8254fc commit b931a4f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/Parser/Search/PersonSearchParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,14 @@ function (Crawler $c) {
);
}

if ($this->crawler->filterXPath('//div[@id="content"]/table/tr[1]/td[@class="borderClass"]/a')->count()) {
return $this->crawler
->filterXPath('//div[@id="content"]/table/tr')
->each(
function (Crawler $c) {
return (new PersonSearchListItemParser($c))->getModel();
}
);
}
return $this->crawler
->filterXPath('//div[@id="content"]/table/tr')
->each(
function (Crawler $c) {
return (new PersonSearchListItemParser($c))->getModel();
}
);

}

/**
Expand Down

0 comments on commit b931a4f

Please sign in to comment.