Skip to content

Commit

Permalink
refactor: eliminate meaningless return values
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 18, 2023
1 parent 03290ab commit 9df7a7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/Filters/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function setResponse(ResponseInterface $response)
* @param string $uri URI path relative to baseURL
* @phpstan-param 'before'|'after' $position
*
* @return RequestInterface|ResponseInterface|string|null
* @return RequestInterface|ResponseInterface
*
* @throws FilterException
*/
Expand All @@ -194,7 +194,7 @@ public function run(string $uri, string $position = 'before')
}

/**
* @return RequestInterface|ResponseInterface|string
* @return RequestInterface|ResponseInterface
*/
private function runBefore(array $filterClasses)
{
Expand Down Expand Up @@ -228,7 +228,7 @@ private function runBefore(array $filterClasses)
continue;
}

return $result;
return $this->request;
}

return $this->request;
Expand Down

0 comments on commit 9df7a7e

Please sign in to comment.