boyscout: style CI tweaks

This commit is contained in:
filecage 2019-03-11 23:26:35 +01:00
parent 66d4ce6de8
commit aa5bbe5f06
2 changed files with 2 additions and 3 deletions

View File

@ -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));

View File

@ -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();