Skip to content

Commit

Permalink
Merge pull request #8 from kawanamiyuu/refactor
Browse files Browse the repository at this point in the history
Refactor
  • Loading branch information
kawanamiyuu authored Jul 13, 2020
2 parents 4a773ed + b4136be commit 50f5c44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
10 changes: 1 addition & 9 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,14 @@
use Psr\Http\Server\RequestHandlerInterface;
use Throwable;

/**
* @SuppressWarnings("PMD.LongVariable")
*/
class Application implements ApplicationInterface
final class Application implements ApplicationInterface
{
private RequestHandlerInterface $requestHandler;

private ExceptionHandlerInterface $exceptionHandler;

private ResponseEmitterInterface $responseEmitter;

/**
* @param RequestHandlerInterface $requestHandler
* @param ExceptionHandlerInterface $exceptionHandler
* @param ResponseEmitterInterface $responseEmitter
*/
public function __construct(
RequestHandlerInterface $requestHandler,
ExceptionHandlerInterface $exceptionHandler,
Expand Down
3 changes: 0 additions & 3 deletions src/ApplicationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@

interface ApplicationInterface
{
/**
* @param ServerRequestInterface $request
*/
public function __invoke(ServerRequestInterface $request): void;
}

0 comments on commit 50f5c44

Please sign in to comment.