From aa5bbe5f06a1455ac5f4c2a6d515fb3a8ab4b3a0 Mon Sep 17 00:00:00 2001 From: filecage Date: Mon, 11 Mar 2019 23:26:35 +0100 Subject: [PATCH] boyscout: style CI tweaks --- src/Grant/AbstractGrant.php | 2 +- tests/Grant/PasswordGrantTest.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Grant/AbstractGrant.php b/src/Grant/AbstractGrant.php index 45269ac7..90c75d51 100644 --- a/src/Grant/AbstractGrant.php +++ b/src/Grant/AbstractGrant.php @@ -478,7 +478,7 @@ abstract class AbstractGrant implements GrantTypeInterface { $refreshToken = $this->refreshTokenRepository->getNewRefreshToken(); if ($refreshToken === null) { - return null; + return; } $refreshToken->setExpiryDateTime((new DateTime())->add($this->refreshTokenTTL)); diff --git a/tests/Grant/PasswordGrantTest.php b/tests/Grant/PasswordGrantTest.php index e3f537ae..5f8b7e0c 100644 --- a/tests/Grant/PasswordGrantTest.php +++ b/tests/Grant/PasswordGrantTest.php @@ -16,7 +16,6 @@ use LeagueTests\Stubs\RefreshTokenEntity; use LeagueTests\Stubs\ScopeEntity; use LeagueTests\Stubs\StubResponseType; use LeagueTests\Stubs\UserEntity; -use OAuth2ServerExamples\Repositories\AccessTokenRepository; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Zend\Diactoros\ServerRequest; @@ -80,7 +79,7 @@ class PasswordGrantTest extends TestCase $this->assertInstanceOf(RefreshTokenEntityInterface::class, $responseType->getRefreshToken()); } - public function testRespondToRequestNullRefreshToken () + public function testRespondToRequestNullRefreshToken() { /** @var ClientRepositoryInterface|MockObject $clientRepositoryMock */ $client = new ClientEntity();