Skip to content

Commit

Permalink
#184 CS Fixes (StyleCI)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalasr authored Jul 7, 2016
1 parent db57c67 commit b2003fd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Event/JWTFailureEventInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/**
* Interface for event classes that are dispatched when a JWT cannot be authenticated.
*
*
* @author Robin Chalas <[email protected]>
*/
interface JWTFailureEventInterface
Expand Down
2 changes: 1 addition & 1 deletion Event/JWTNotFoundEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\Security\Core\Exception\AuthenticationException;

/**
* JWTNotFoundEvent event is dispatched when a JWT cannot be found in a request
* JWTNotFoundEvent event is dispatched when a JWT cannot be found in a request
* covered by a firewall secured via lexik_jwt.
*
* @author Robin Chalas <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion Security/Firewall/JWTListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function handle(GetResponseEvent $event)
if ($response = $jwtNotFoundEvent->getResponse()) {
$event->setResponse($response);
}

return;
}

Expand Down
8 changes: 4 additions & 4 deletions Tests/Security/Authentication/Firewall/JWTListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Lexik\Bundle\JWTAuthenticationBundle\Tests\Security\Authentication\Firewall;

use Lexik\Bundle\JWTAuthenticationBundle\Events;
use Lexik\Bundle\JWTAuthenticationBundle\Response\JWTAuthenticationFailureResponse;
use Lexik\Bundle\JWTAuthenticationBundle\Security\Firewall\JWTListener;
use Lexik\Bundle\JWTAuthenticationBundle\Events;

/**
* JWTListenerTest.
Expand All @@ -27,7 +27,7 @@ public function testHandle()

// one token extractor with no result : should return void

$listener = new JWTListener($this->getTokenStorageMock(), $this->getAuthenticationManagerMock());
$listener = new JWTListener($this->getTokenStorageMock(), $this->getAuthenticationManagerMock());
$dispatcher = $this->getEventDispatcherMock();
$dispatcher
->expects($this->once())
Expand All @@ -36,7 +36,7 @@ public function testHandle()
$this->equalTo(Events::JWT_NOT_FOUND),
$this->isInstanceOf('Lexik\Bundle\JWTAuthenticationBundle\Event\JWTNotFoundEvent')
);

$listener->setDispatcher($dispatcher);
$listener->addTokenExtractor($this->getAuthorizationHeaderTokenExtractorMock(false));
$this->assertNull($listener->handle($this->getEvent()));
Expand All @@ -63,7 +63,7 @@ public function testHandle()
->method('authenticate')
->will($this->throwException($invalidTokenException));

$listener = new JWTListener($this->getTokenStorageMock(), $authenticationManager);
$listener = new JWTListener($this->getTokenStorageMock(), $authenticationManager);
$dispatcher = $this->getEventDispatcherMock();
$dispatcher
->expects($this->once())
Expand Down

0 comments on commit b2003fd

Please sign in to comment.