Skip to content

Commit

Permalink
add missing return type to a few methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ziming committed Mar 31, 2024
1 parent c0964e0 commit 6b2ee69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/LaravelScrapingBee.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function jsSnippet(string $jsCodeSnippet): self
/**
* https://www.scrapingbee.com/documentation/#javascript-scroll
*/
public function jsScroll()
public function jsScroll(): self
{
$this->params['js_scroll'] = true;

Expand All @@ -179,7 +179,7 @@ public function jsScroll()
/**
* https://www.scrapingbee.com/documentation/#javascript-scroll
*/
public function jsScrollWait(int $milliseconds)
public function jsScrollWait(int $milliseconds): self
{
$this->params['js_scroll_wait'] = $milliseconds;

Expand All @@ -189,7 +189,7 @@ public function jsScrollWait(int $milliseconds)
/**
* https://www.scrapingbee.com/documentation/#javascript-scroll
*/
public function jsScrollCount(int $count)
public function jsScrollCount(int $count): self
{
$this->params['js_scroll_count'] = $count;

Expand Down

0 comments on commit 6b2ee69

Please sign in to comment.