mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Ignore error_log messages in code coverage
This commit is contained in:
@@ -138,7 +138,9 @@ class AuthorizationServer implements EmitterAwareInterface
|
|||||||
$grantType->setEmitter($this->getEmitter());
|
$grantType->setEmitter($this->getEmitter());
|
||||||
|
|
||||||
if ($this->encryptionKey === null) {
|
if ($this->encryptionKey === null) {
|
||||||
|
// @codeCoverageIgnoreStart
|
||||||
error_log(self::ENCRYPTION_KEY_ERROR);
|
error_log(self::ENCRYPTION_KEY_ERROR);
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
$grantType->setEncryptionKey($this->encryptionKey);
|
$grantType->setEncryptionKey($this->encryptionKey);
|
||||||
|
|
||||||
@@ -158,7 +160,9 @@ class AuthorizationServer implements EmitterAwareInterface
|
|||||||
public function validateAuthorizationRequest(ServerRequestInterface $request)
|
public function validateAuthorizationRequest(ServerRequestInterface $request)
|
||||||
{
|
{
|
||||||
if ($this->encryptionKey === null) {
|
if ($this->encryptionKey === null) {
|
||||||
|
// @codeCoverageIgnoreStart
|
||||||
error_log(self::ENCRYPTION_KEY_ERROR);
|
error_log(self::ENCRYPTION_KEY_ERROR);
|
||||||
|
// @codeCoverageIgnoreEnd
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->enabledGrantTypes as $grantType) {
|
foreach ($this->enabledGrantTypes as $grantType) {
|
||||||
|
Reference in New Issue
Block a user