Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Pinxteren committed Sep 16, 2019
1 parent 6af8839 commit 102f410
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Service/StateBasedAuthenticationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function authenticationRequired()
public function authenticate()
{
if (!$this->stateHandler->isRequestTypeAuthentication()) {
$this->logger->critical('Current request does not need a authentication');
$this->logger->critical('Current request does not need an authentication');
throw RuntimeException::shouldNotAuthenticate();
}
$this->logger->notice('Application authenticates the user');
Expand All @@ -62,7 +62,7 @@ public function authenticate()
public function isAuthenticated()
{
if (!$this->stateHandler->isRequestTypeAuthentication()) {
$this->logger->critical('Current request does not need a authentication');
$this->logger->critical('Current request does not need an authentication');
throw RuntimeException::shouldNotAuthenticate();
}
return $this->stateHandler->isAuthenticated();
Expand Down
2 changes: 1 addition & 1 deletion tests/Service/StateBasedAuthenticationServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testIsAuthenticateThrowWhenInInvalidAuthenticationState()
$stateHandler->shouldReceive('isRequestTypeAuthentication')->andReturnFalse();
$router = \Mockery::mock(RouterInterface::class);
$logger = \Mockery::mock(LoggerInterface::class);
$logger->shouldReceive('critical')->with('Current request does not need a authentication');
$logger->shouldReceive('critical')->with('Current request does not need an authentication');
$registrationService = new StateBasedAuthenticationService(
$stateHandler,
$router,
Expand Down

0 comments on commit 102f410

Please sign in to comment.