Skip to content

Commit

Permalink
Refactoring return type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Feb 3, 2025
1 parent 92d6f2d commit e01fe95
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/Services/KeyGeneratorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,8 @@ public function verify(string $keyword): bool

/**
* The keywords that are currently in use as reserved keywords.
*
* @return \Illuminate\Support\Collection
*/
public function reservedKeyword()
public function reservedKeyword(): Collection
{
$data = [
config('urlhub.reserved_keyword'),
Expand All @@ -122,10 +120,8 @@ public function reservedKeyword()
/**
* The keywords that are currently in use as reserved keywords, but on the other
* hand also used as active keywords.
*
* @return \Illuminate\Support\Collection
*/
public function reservedActiveKeyword()
public function reservedActiveKeyword(): Collection
{
$reservedKeyword = $this->reservedKeyword();
$activeKeyword = Url::pluck('keyword')->toArray();
Expand Down

0 comments on commit e01fe95

Please sign in to comment.