Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

Commit

Permalink
Fix issues of unused code detected by scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
kpicaza committed Nov 23, 2019
1 parent de15060 commit 82d8c93
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/PassThroughRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public function handle(ServerRequestInterface $request): ResponseInterface
$next = $this->next;
/** @var Generator $handlerGenerator */
$handlerGenerator = $next($request);
$next = null;

return new PromiseResponse($handlerGenerator->current());
}
Expand Down
20 changes: 0 additions & 20 deletions src/Runner/ReactRequestHandlerRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,6 @@ class ReactRequestHandlerRunner extends RequestHandlerRunner
*/
private $handler;

/**
* A factory capable of generating an error response in the scenario that
* the $serverRequestFactory raises an exception during generation of the
* request instance.
*
* The factory will receive the Throwable or Exception that caused the error,
* and must return a Psr\Http\Message\ResponseInterface instance.
*
* @var callable
*/
private $serverRequestErrorResponseGenerator;

/**
* A factory capable of generating a Psr\Http\Message\ServerRequestInterface instance.
* The factory will not receive any arguments.
*
* @var callable
*/
private $serverRequestFactory;

/**
* React Http Server
*
Expand Down

0 comments on commit 82d8c93

Please sign in to comment.