Skip to content

Commit

Permalink
fixed typo call method
Browse files Browse the repository at this point in the history
  • Loading branch information
ginfarma committed Jan 19, 2021
1 parent 0d000db commit abd6aad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
29 changes: 15 additions & 14 deletions src/ImgFinder/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,6 @@ public function setWords(string $words): RequestInterface
);
}

public function setRepository(?string $repository): RequestInterface
{
return self::set(
$this->words(),
$this->page(),
$this->perPage(),
$this->orientation(),
$this->widthSmall(),
$repository
);
}


public function setPage(int $page): RequestInterface
{
Expand Down Expand Up @@ -113,7 +101,7 @@ public function setOrientation(string $orientation): RequestInterface
$this->perPage(),
$orientation,
$this->widthSmall(),
$this->repository(),
$this->repository()
);
}

Expand All @@ -126,7 +114,20 @@ public function setWidthSmall(int $width): RequestInterface
$this->perPage(),
$this->orientation(),
$width,
$this->repository(),
$this->repository()
);
}


public function setRepository(?string $repository): RequestInterface
{
return self::set(
$this->words(),
$this->page(),
$this->perPage(),
$this->orientation(),
$this->widthSmall(),
$repository
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/ImgFinder/RequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public static function set(

public function setWords(string $words): self;

public function setRepository(string $repository): self;

public function setPage(int $page): self;

public function setPerPage(int $perPage): self;
Expand All @@ -36,6 +34,8 @@ public function setOrientation(string $orientation): self;

public function setWidthSmall(int $width): self;

public function setRepository(string $repository): self;

public function words(): string;

public function urlWords(): string;
Expand Down

0 comments on commit abd6aad

Please sign in to comment.