diff --git a/master/AbstractServer.php.html b/master/AbstractServer.php.html
index 6e9cccbe..99c42bea 100644
--- a/master/AbstractServer.php.html
+++ b/master/AbstractServer.php.html
@@ -41,124 +41,124 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 81.82% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 81.82% |
- 18 / 22 |
- CRAP |
-
-
- 86.05% covered (warning)
+ 100.00% |
+ 22 / 22 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 86.05% |
- 37 / 43 |
+ 100.00% |
+ 47 / 47 |
| | |
- AbstractServer |
-
-
- 0.00% covered (danger)
+ AbstractServer |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 81.82% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 81.82% |
- 18 / 22 |
- 25.56 |
-
-
- 86.05% covered (warning)
+ 100.00% |
+ 22 / 22 |
+ 24 |
+
+
+ 100.00% covered (success)
|
- 86.05% |
- 37 / 43 |
+ 100.00% |
+ 47 / 47 |
| | |
- __construct() |
-
-
- 0.00% covered (danger)
+ __construct() |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
- setEventEmitter($emitter = null) |
-
-
- 0.00% covered (danger)
+ setEventEmitter($emitter = null) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 2.26 |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 2 |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 5 / 5 |
| |
- addEventListener($eventName, callable $listener) |
-
-
- 0.00% covered (danger)
+ addEventListener($eventName, callable $listener) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 2 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -204,24 +204,24 @@
- getRequest() |
-
-
- 0.00% covered (danger)
+ getRequest() |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 2.15 |
-
-
- 66.67% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 2 |
+
+
+ 100.00% covered (success)
|
- 66.67% |
- 2 / 3 |
+ 100.00% |
+ 4 / 4 |
| |
@@ -494,7 +494,7 @@
100.00% |
- 1 / 1 |
+ 3 / 3 |
@@ -557,7 +557,7 @@
100.00% |
- 1 / 1 |
+ 2 / 2 |
@@ -667,8 +667,8 @@
| |
| public function __construct() |
| { |
- | $this->setEventEmitter(); |
- | } |
+ | $this->setEventEmitter(); |
+ | } |
| |
| |
| |
@@ -677,12 +677,12 @@
| |
| public function setEventEmitter($emitter = null) |
| { |
- | if ($emitter === null) { |
- | $this->eventEmitter = new Emitter(); |
- | } else { |
+ | if ($emitter === null) { |
+ | $this->eventEmitter = new Emitter(); |
+ | } else { |
| $this->eventEmitter = $emitter; |
- | } |
- | } |
+ | } |
+ | } |
| |
| |
| |
@@ -692,8 +692,8 @@
| |
| public function addEventListener($eventName, callable $listener) |
| { |
- | $this->eventEmitter->addListener($eventName, $listener); |
- | } |
+ | $this->eventEmitter->addListener($eventName, $listener); |
+ | } |
| |
| |
| |
@@ -702,8 +702,8 @@
| |
| public function getEventEmitter() |
| { |
- | return $this->eventEmitter; |
- | } |
+ | return $this->eventEmitter; |
+ | } |
| |
| |
| |
@@ -717,7 +717,7 @@
| $this->request = $request; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -726,12 +726,12 @@
| |
| public function getRequest() |
| { |
- | if ($this->request === null) { |
- | $this->request = Request::createFromGlobals(); |
- | } |
+ | if ($this->request === null) { |
+ | $this->request = Request::createFromGlobals(); |
+ | } |
| |
- | return $this->request; |
- | } |
+ | return $this->request; |
+ | } |
| |
| |
| |
@@ -742,11 +742,11 @@
| |
| public function setClientStorage(ClientInterface $storage) |
| { |
- | $storage->setServer($this); |
+ | $storage->setServer($this); |
| $this->clientStorage = $storage; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -757,11 +757,11 @@
| |
| public function setSessionStorage(SessionInterface $storage) |
| { |
- | $storage->setServer($this); |
+ | $storage->setServer($this); |
| $this->sessionStorage = $storage; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -772,11 +772,11 @@
| |
| public function setAccessTokenStorage(AccessTokenInterface $storage) |
| { |
- | $storage->setServer($this); |
+ | $storage->setServer($this); |
| $this->accessTokenStorage = $storage; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -787,11 +787,11 @@
| |
| public function setRefreshTokenStorage(RefreshTokenInterface $storage) |
| { |
- | $storage->setServer($this); |
+ | $storage->setServer($this); |
| $this->refreshTokenStorage = $storage; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -802,11 +802,11 @@
| |
| public function setAuthCodeStorage(AuthCodeInterface $storage) |
| { |
- | $storage->setServer($this); |
+ | $storage->setServer($this); |
| $this->authCodeStorage = $storage; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -817,11 +817,11 @@
| |
| public function setScopeStorage(ScopeInterface $storage) |
| { |
- | $storage->setServer($this); |
- | $this->scopeStorage = $storage; |
+ | $storage->setServer($this); |
+ | $this->scopeStorage = $storage; |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
@@ -830,8 +830,8 @@
| |
| public function getClientStorage() |
| { |
- | return $this->clientStorage; |
- | } |
+ | return $this->clientStorage; |
+ | } |
| |
| |
| |
@@ -840,8 +840,8 @@
| |
| public function getScopeStorage() |
| { |
- | return $this->scopeStorage; |
- | } |
+ | return $this->scopeStorage; |
+ | } |
| |
| |
| |
@@ -850,8 +850,8 @@
| |
| public function getSessionStorage() |
| { |
- | return $this->sessionStorage; |
- | } |
+ | return $this->sessionStorage; |
+ | } |
| |
| |
| |
@@ -860,8 +860,8 @@
| |
| public function getRefreshTokenStorage() |
| { |
- | return $this->refreshTokenStorage; |
- | } |
+ | return $this->refreshTokenStorage; |
+ | } |
| |
| |
| |
@@ -870,8 +870,8 @@
| |
| public function getAccessTokenStorage() |
| { |
- | return $this->accessTokenStorage; |
- | } |
+ | return $this->accessTokenStorage; |
+ | } |
| |
| |
| |
@@ -880,8 +880,8 @@
| |
| public function getAuthCodeStorage() |
| { |
- | return $this->authCodeStorage; |
- | } |
+ | return $this->authCodeStorage; |
+ | } |
| |
| |
| |
@@ -892,9 +892,9 @@
| |
| public function setTokenType(TokenTypeInterface $tokenType) |
| { |
- | $tokenType->setServer($this); |
+ | $tokenType->setServer($this); |
| $this->tokenType = $tokenType; |
- | } |
+ | } |
| |
| |
| |
@@ -903,8 +903,8 @@
| |
| public function getTokenType() |
| { |
- | return $this->tokenType; |
- | } |
+ | return $this->tokenType; |
+ | } |
| |
| |
| |
@@ -912,7 +912,7 @@
| public function getMacStorage() |
| { |
| return $this->macStorage; |
- | } |
+ | } |
| |
| |
| |
@@ -920,7 +920,7 @@
| public function setMacStorage(MacTokenInterface $macStorage) |
| { |
| $this->macStorage = $macStorage; |
- | } |
+ | } |
| } |
@@ -934,7 +934,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/AuthorizationServer.php.html b/master/AuthorizationServer.php.html
index 0e8d4719..20bf6d20 100644
--- a/master/AuthorizationServer.php.html
+++ b/master/AuthorizationServer.php.html
@@ -41,124 +41,124 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 80.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 80.00% |
- 12 / 15 |
- CRAP |
-
-
- 73.33% covered (warning)
+ 100.00% |
+ 16 / 16 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 73.33% |
- 22 / 30 |
+ 100.00% |
+ 39 / 39 |
| | |
- AuthorizationServer |
-
-
- 0.00% covered (danger)
+ AuthorizationServer |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 81.25% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 81.25% |
- 13 / 16 |
- 29.36 |
-
-
- 73.33% covered (warning)
+ 100.00% |
+ 16 / 16 |
+ 21 |
+
+
+ 100.00% covered (success)
|
- 73.33% |
- 22 / 30 |
+ 100.00% |
+ 39 / 39 |
| | |
- __construct() |
-
-
- 0.00% covered (danger)
+ __construct() |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.30 |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
+ 100.00% |
+ 3 / 3 |
| |
- addGrantType(GrantTypeInterface $grantType, $identifier = null) |
- |
- hasGrantType($identifier) |
-
-
- 0.00% covered (danger)
+ hasGrantType($identifier) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 2 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| |
@@ -179,7 +179,7 @@
100.00% |
- 1 / 1 |
+ 2 / 2 |
@@ -403,9 +403,14 @@
100.00% |
1 / 1 |
3 |
- |
- |
- |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 6 / 6 |
@@ -426,7 +431,7 @@
100.00% |
- 2 / 2 |
+ 3 / 3 |
@@ -513,12 +518,12 @@
| public function __construct() |
| { |
| |
- | $this->setTokenType(new Bearer()); |
+ | $this->setTokenType(new Bearer()); |
| |
- | parent::__construct(); |
+ | parent::__construct(); |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -530,21 +535,21 @@
| |
| public function addGrantType(GrantTypeInterface $grantType, $identifier = null) |
| { |
- | if (is_null($identifier)) { |
- | $identifier = $grantType->getIdentifier(); |
- | } |
+ | if (is_null($identifier)) { |
+ | $identifier = $grantType->getIdentifier(); |
+ | } |
| |
| |
- | $grantType->setAuthorizationServer($this); |
+ | $grantType->setAuthorizationServer($this); |
| |
- | $this->grantTypes[$identifier] = $grantType; |
+ | $this->grantTypes[$identifier] = $grantType; |
| |
- | if (!is_null($grantType->getResponseType())) { |
- | $this->responseTypes[] = $grantType->getResponseType(); |
- | } |
+ | if (!is_null($grantType->getResponseType())) { |
+ | $this->responseTypes[] = $grantType->getResponseType(); |
+ | } |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
@@ -555,8 +560,8 @@
| |
| public function hasGrantType($identifier) |
| { |
- | return (array_key_exists($identifier, $this->grantTypes)); |
- | } |
+ | return (array_key_exists($identifier, $this->grantTypes)); |
+ | } |
| |
| |
| |
@@ -564,9 +569,9 @@
| |
| |
| public function getResponseTypes() |
- | { |
- | return $this->responseTypes; |
- | } |
+ | { |
+ | return $this->responseTypes; |
+ | } |
| |
| |
| |
@@ -580,7 +585,7 @@
| $this->requireScopeParam = $require; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -589,8 +594,8 @@
| |
| public function scopeParamRequired() |
| { |
- | return $this->requireScopeParam; |
- | } |
+ | return $this->requireScopeParam; |
+ | } |
| |
| |
| |
@@ -604,7 +609,7 @@
| $this->defaultScope = $default; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -613,8 +618,8 @@
| |
| public function getDefaultScope() |
| { |
- | return $this->defaultScope; |
- | } |
+ | return $this->defaultScope; |
+ | } |
| |
| |
| |
@@ -624,7 +629,7 @@
| public function stateParamRequired() |
| { |
| return $this->requireStateParam; |
- | } |
+ | } |
| |
| |
| |
@@ -638,7 +643,7 @@
| $this->requireStateParam = $require; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -647,8 +652,8 @@
| |
| public function getScopeDelimiter() |
| { |
- | return $this->scopeDelimiter; |
- | } |
+ | return $this->scopeDelimiter; |
+ | } |
| |
| |
| |
@@ -662,7 +667,7 @@
| $this->scopeDelimiter = $scopeDelimiter; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -671,8 +676,8 @@
| |
| public function getAccessTokenTTL() |
| { |
- | return $this->accessTokenTTL; |
- | } |
+ | return $this->accessTokenTTL; |
+ | } |
| |
| |
| |
@@ -686,7 +691,7 @@
| $this->accessTokenTTL = $accessTokenTTL; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -697,19 +702,19 @@
| |
| public function issueAccessToken() |
| { |
- | $grantType = $this->getRequest()->request->get('grant_type'); |
- | if (is_null($grantType)) { |
- | throw new Exception\InvalidRequestException('grant_type'); |
- | } |
+ | $grantType = $this->getRequest()->request->get('grant_type'); |
+ | if (is_null($grantType)) { |
+ | throw new Exception\InvalidRequestException('grant_type'); |
+ | } |
| |
| |
- | if (!in_array($grantType, array_keys($this->grantTypes))) { |
- | throw new Exception\UnsupportedGrantTypeException($grantType); |
- | } |
+ | if (!in_array($grantType, array_keys($this->grantTypes))) { |
+ | throw new Exception\UnsupportedGrantTypeException($grantType); |
+ | } |
| |
| |
- | return $this->getGrantType($grantType)->completeFlow(); |
- | } |
+ | return $this->getGrantType($grantType)->completeFlow(); |
+ | } |
| |
| |
| |
@@ -722,12 +727,12 @@
| |
| public function getGrantType($grantType) |
| { |
- | if (isset($this->grantTypes[$grantType])) { |
- | return $this->grantTypes[$grantType]; |
- | } |
+ | if (isset($this->grantTypes[$grantType])) { |
+ | return $this->grantTypes[$grantType]; |
+ | } |
| |
- | throw new Exception\InvalidGrantException($grantType); |
- | } |
+ | throw new Exception\InvalidGrantException($grantType); |
+ | } |
| } |
@@ -741,7 +746,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Entity/AbstractTokenEntity.php.html b/master/Entity/AbstractTokenEntity.php.html
index 717c89ee..49320d57 100644
--- a/master/Entity/AbstractTokenEntity.php.html
+++ b/master/Entity/AbstractTokenEntity.php.html
@@ -51,23 +51,23 @@
0.00% |
0 / 1 |
-
-
- 88.89% covered (warning)
-
-
- |
- 88.89% |
- 8 / 9 |
- CRAP |
-
- 91.30% covered (success)
+
+ 90.00% covered (success)
|
- 91.30% |
- 21 / 23 |
+ 90.00% |
+ 9 / 10 |
+ CRAP |
+
+
+ 96.30% covered (success)
+
+
+ |
+ 96.30% |
+ 26 / 27 |
@@ -88,15 +88,15 @@
91.67% |
11 / 12 |
- 18.21 |
+ 18 |
-
- 91.30% covered (success)
+
+ 96.30% covered (success)
|
- 91.30% |
- 21 / 23 |
+ 96.30% |
+ 26 / 27 |
@@ -117,7 +117,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -138,7 +138,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -194,9 +194,14 @@
100.00% |
1 / 1 |
1 |
- |
- |
- |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 1 / 1 |
@@ -242,28 +247,7 @@
- associateScope(ScopeEntity $scope) |
-
-
- 0.00% covered (danger)
-
-
- |
- 0.00% |
- 0 / 1 |
- 2.50 |
-
-
- 50.00% covered (warning)
-
-
- |
- 50.00% |
- 2 / 4 |
-
-
-
- formatScopes($unformatted = []) |
+ associateScope(ScopeEntity $scope) |
100.00% covered (success)
@@ -272,7 +256,7 @@
|
100.00% |
1 / 1 |
- 4 |
+ 2 |
100.00% covered (success)
@@ -283,6 +267,27 @@
4 / 4 |
|
+
+ formatScopes($unformatted = []) |
+
+
+ 0.00% covered (danger)
+
+
+ |
+ 0.00% |
+ 0 / 1 |
+ 4.02 |
+
+
+ 88.89% covered (warning)
+
+
+ |
+ 88.89% |
+ 8 / 9 |
+
+
__toString() |
@@ -406,10 +411,10 @@
| |
| public function __construct(AbstractServer $server) |
| { |
- | $this->server = $server; |
+ | $this->server = $server; |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
@@ -420,10 +425,10 @@
| |
| public function setSession(SessionEntity $session) |
| { |
- | $this->session = $session; |
+ | $this->session = $session; |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
@@ -434,10 +439,10 @@
| |
| public function setExpireTime($expireTime) |
| { |
- | $this->expireTime = $expireTime; |
+ | $this->expireTime = $expireTime; |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
@@ -446,8 +451,8 @@
| |
| public function getExpireTime() |
| { |
- | return $this->expireTime; |
- | } |
+ | return $this->expireTime; |
+ | } |
| |
| |
| |
@@ -456,8 +461,8 @@
| |
| public function isExpired() |
| { |
- | return ((time() - $this->expireTime) > 0); |
- | } |
+ | return ((time() - $this->expireTime) > 0); |
+ | } |
| |
| |
| |
@@ -468,10 +473,10 @@
| |
| public function setId($id = null) |
| { |
- | $this->id = ($id !== null) ? $id : SecureKey::generate(); |
+ | $this->id = ($id !== null) ? $id : SecureKey::generate(); |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
@@ -480,8 +485,8 @@
| |
| public function getId() |
| { |
- | return $this->id; |
- | } |
+ | return $this->id; |
+ | } |
| |
| |
| |
@@ -492,12 +497,12 @@
| |
| public function associateScope(ScopeEntity $scope) |
| { |
- | if (!isset($this->scopes[$scope->getId()])) { |
- | $this->scopes[$scope->getId()] = $scope; |
- | } |
+ | if (!isset($this->scopes[$scope->getId()])) { |
+ | $this->scopes[$scope->getId()] = $scope; |
+ | } |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -508,19 +513,19 @@
| |
| protected function formatScopes($unformatted = []) |
| { |
- | if (is_null($unformatted)) { |
- | return []; |
- | } |
+ | if (is_null($unformatted)) { |
+ | return []; |
+ | } |
| |
- | $scopes = []; |
- | foreach ($unformatted as $scope) { |
- | if ($scope instanceof ScopeEntity) { |
- | $scopes[$scope->getId()] = $scope; |
- | } |
- | } |
+ | $scopes = []; |
+ | foreach ($unformatted as $scope) { |
+ | if ($scope instanceof ScopeEntity) { |
+ | $scopes[$scope->getId()] = $scope; |
+ | } |
+ | } |
| |
- | return $scopes; |
- | } |
+ | return $scopes; |
+ | } |
| |
| |
| |
@@ -529,12 +534,12 @@
| |
| public function __toString() |
| { |
- | if ($this->id === null) { |
+ | if ($this->id === null) { |
| return ''; |
- | } |
+ | } |
| |
| return $this->id; |
- | } |
+ | } |
| |
| |
| |
@@ -562,7 +567,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Entity/AccessTokenEntity.php.html b/master/Entity/AccessTokenEntity.php.html
index 883df96a..f01f6021 100644
--- a/master/Entity/AccessTokenEntity.php.html
+++ b/master/Entity/AccessTokenEntity.php.html
@@ -51,23 +51,23 @@
|
0.00% |
0 / 1 |
-
-
- 0.00% covered (danger)
-
-
- |
- 0.00% |
- 0 / 3 |
- CRAP |
-
- 71.43% covered (warning)
+
+ 80.00% covered (warning)
|
- 71.43% |
- 15 / 21 |
+ 80.00% |
+ 4 / 5 |
+ CRAP |
+
+
+ 84.00% covered (warning)
+
+
+ |
+ 84.00% |
+ 21 / 25 |
@@ -80,36 +80,6 @@
0.00% |
0 / 1 |
-
-
- 40.00% covered (danger)
-
-
- |
- 40.00% |
- 2 / 5 |
- 10.89 |
-
-
- 71.43% covered (warning)
-
-
- |
- 71.43% |
- 15 / 21 |
-
-
-
- getSession() |
-
-
- 0.00% covered (danger)
-
-
- |
- 0.00% |
- 0 / 1 |
- 2.03 |
80.00% covered (warning)
@@ -118,10 +88,19 @@
|
80.00% |
4 / 5 |
+ 9.33 |
+
+
+ 84.00% covered (warning)
+
+
+ |
+ 84.00% |
+ 21 / 25 |
- hasScope($scope) |
+ getSession() |
100.00% covered (success)
@@ -131,13 +110,18 @@
100.00% |
1 / 1 |
2 |
- |
- |
- |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 4 / 4 |
|
- getScopes() |
+ hasScope($scope) |
0.00% covered (danger)
@@ -146,19 +130,7 @@
|
0.00% |
0 / 1 |
- 2.15 |
-
-
- 66.67% covered (warning)
-
-
- |
- 66.67% |
- 4 / 6 |
-
-
-
- save() |
+ 6 |
0.00% covered (danger)
@@ -166,16 +138,49 @@
|
0.00% |
- 0 / 1 |
- 2.11 |
-
-
- 70.00% covered (warning)
+ 0 / 4 |
+ |
+
+
+ getScopes() |
+
+
+ 100.00% covered (success)
|
- 70.00% |
- 7 / 10 |
+ 100.00% |
+ 1 / 1 |
+ 2 |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 6 / 6 |
+
+
+
+ save() |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 1 / 1 |
+ 2 |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 9 / 9 |
@@ -189,9 +194,14 @@
100.00% |
1 / 1 |
1 |
- |
- |
- |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 2 / 2 |
@@ -224,14 +234,14 @@
| |
| public function getSession() |
| { |
- | if ($this->session instanceof SessionEntity) { |
- | return $this->session; |
- | } |
+ | if ($this->session instanceof SessionEntity) { |
+ | return $this->session; |
+ | } |
| |
- | $this->session = $this->server->getSessionStorage()->getByAccessToken($this); |
+ | $this->session = $this->server->getSessionStorage()->getByAccessToken($this); |
| |
| return $this->session; |
- | } |
+ | } |
| |
| |
| |
@@ -242,12 +252,12 @@
| |
| public function hasScope($scope) |
| { |
- | if ($this->scopes === null) { |
- | $this->getScopes(); |
- | } |
+ | if ($this->scopes === null) { |
+ | $this->getScopes(); |
+ | } |
| |
- | return isset($this->scopes[$scope]); |
- | } |
+ | return isset($this->scopes[$scope]); |
+ | } |
| |
| |
| |
@@ -256,41 +266,41 @@
| |
| public function getScopes() |
| { |
- | if ($this->scopes === null) { |
- | $this->scopes = $this->formatScopes( |
- | $this->server->getAccessTokenStorage()->getScopes($this) |
- | ); |
- | } |
+ | if ($this->scopes === null) { |
+ | $this->scopes = $this->formatScopes( |
+ | $this->server->getAccessTokenStorage()->getScopes($this) |
+ | ); |
+ | } |
| |
- | return $this->scopes; |
- | } |
+ | return $this->scopes; |
+ | } |
| |
| |
| |
| |
| public function save() |
| { |
- | $this->server->getAccessTokenStorage()->create( |
- | $this->getId(), |
- | $this->getExpireTime(), |
- | $this->getSession()->getId() |
- | ); |
+ | $this->server->getAccessTokenStorage()->create( |
+ | $this->getId(), |
+ | $this->getExpireTime(), |
+ | $this->getSession()->getId() |
+ | ); |
| |
| |
- | foreach ($this->getScopes() as $scope) { |
- | $this->server->getAccessTokenStorage()->associateScope($this, $scope); |
- | } |
+ | foreach ($this->getScopes() as $scope) { |
+ | $this->server->getAccessTokenStorage()->associateScope($this, $scope); |
+ | } |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
| |
| public function expire() |
| { |
- | $this->server->getAccessTokenStorage()->delete($this); |
- | } |
+ | $this->server->getAccessTokenStorage()->delete($this); |
+ | } |
| } |
@@ -304,7 +314,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Entity/AuthCodeEntity.php.html b/master/Entity/AuthCodeEntity.php.html
index 680ce618..531cfbe9 100644
--- a/master/Entity/AuthCodeEntity.php.html
+++ b/master/Entity/AuthCodeEntity.php.html
@@ -42,61 +42,61 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 83.33% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 83.33% |
- 5 / 6 |
- CRAP |
-
-
- 86.96% covered (warning)
+ 100.00% |
+ 7 / 7 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 86.96% |
- 20 / 23 |
+ 100.00% |
+ 31 / 31 |
| | |
- AuthCodeEntity |
-
-
- 0.00% covered (danger)
+ AuthCodeEntity |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 85.71% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 85.71% |
- 6 / 7 |
- 11.27 |
-
-
- 86.96% covered (warning)
+ 100.00% |
+ 7 / 7 |
+ 11 |
+
+
+ 100.00% covered (success)
|
- 86.96% |
- 20 / 23 |
+ 100.00% |
+ 31 / 31 |
| | |
@@ -142,24 +142,24 @@
- generateRedirectUri($state = null, $queryDelimeter = '?') |
- |
@@ -201,7 +201,7 @@
100.00% |
- 4 / 4 |
+ 6 / 6 |
@@ -222,7 +222,7 @@
100.00% |
- 7 / 7 |
+ 10 / 10 |
@@ -236,9 +236,14 @@
100.00% |
1 / 1 |
1 |
- |
- |
- |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 2 / 2 |
@@ -260,7 +265,7 @@
| namespace League\OAuth2\Server\Entity; |
| |
| |
- | |
+ | |
| |
| class AuthCodeEntity extends AbstractTokenEntity |
| { |
@@ -283,7 +288,7 @@
| $this->redirectUri = $redirectUri; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -292,8 +297,8 @@
| |
| public function getRedirectUri() |
| { |
- | return $this->redirectUri; |
- | } |
+ | return $this->redirectUri; |
+ | } |
| |
| |
| |
@@ -305,14 +310,14 @@
| |
| public function generateRedirectUri($state = null, $queryDelimeter = '?') |
| { |
- | $uri = $this->getRedirectUri(); |
- | $uri .= (strstr($this->getRedirectUri(), $queryDelimeter) === false) ? $queryDelimeter : '&'; |
+ | $uri = $this->getRedirectUri(); |
+ | $uri .= (strstr($this->getRedirectUri(), $queryDelimeter) === false) ? $queryDelimeter : '&'; |
| |
- | return $uri.http_build_query([ |
+ | return $uri.http_build_query([ |
| 'code' => $this->getId(), |
- | 'state' => $state, |
- | ]); |
- | } |
+ | 'state' => $state, |
+ | ]); |
+ | } |
| |
| |
| |
@@ -323,12 +328,12 @@
| { |
| if ($this->session instanceof SessionEntity) { |
| return $this->session; |
- | } |
+ | } |
| |
- | $this->session = $this->server->getSessionStorage()->getByAuthCode($this); |
+ | $this->session = $this->server->getSessionStorage()->getByAuthCode($this); |
| |
| return $this->session; |
- | } |
+ | } |
| |
| |
| |
@@ -339,12 +344,12 @@
| { |
| if ($this->scopes === null) { |
| $this->scopes = $this->formatScopes( |
- | $this->server->getAuthCodeStorage()->getScopes($this) |
- | ); |
- | } |
+ | $this->server->getAuthCodeStorage()->getScopes($this) |
+ | ); |
+ | } |
| |
| return $this->scopes; |
- | } |
+ | } |
| |
| |
| |
@@ -354,25 +359,25 @@
| $this->server->getAuthCodeStorage()->create( |
| $this->getId(), |
| $this->getExpireTime(), |
- | $this->getSession()->getId(), |
+ | $this->getSession()->getId(), |
| $this->getRedirectUri() |
- | ); |
+ | ); |
| |
| |
| foreach ($this->getScopes() as $scope) { |
- | $this->server->getAuthCodeStorage()->associateScope($this, $scope); |
- | } |
+ | $this->server->getAuthCodeStorage()->associateScope($this, $scope); |
+ | } |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
| |
| public function expire() |
| { |
- | $this->server->getAuthCodeStorage()->delete($this); |
- | } |
+ | $this->server->getAuthCodeStorage()->delete($this); |
+ | } |
| } |
@@ -386,7 +391,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Entity/ClientEntity.php.html b/master/Entity/ClientEntity.php.html
index 344a75e4..f3eaf20e 100644
--- a/master/Entity/ClientEntity.php.html
+++ b/master/Entity/ClientEntity.php.html
@@ -67,7 +67,7 @@
100.00% |
- 7 / 7 |
+ 6 / 6 |
@@ -96,7 +96,7 @@
100.00% |
- 7 / 7 |
+ 6 / 6 |
@@ -117,7 +117,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -275,10 +275,10 @@
| |
| public function __construct(AbstractServer $server) |
| { |
- | $this->server = $server; |
+ | $this->server = $server; |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
@@ -287,8 +287,8 @@
| |
| public function getId() |
| { |
- | return $this->id; |
- | } |
+ | return $this->id; |
+ | } |
| |
| |
| |
@@ -298,7 +298,7 @@
| public function getSecret() |
| { |
| return $this->secret; |
- | } |
+ | } |
| |
| |
| |
@@ -308,7 +308,7 @@
| public function getName() |
| { |
| return $this->name; |
- | } |
+ | } |
| |
| |
| |
@@ -318,7 +318,7 @@
| public function getRedirectUri() |
| { |
| return $this->redirectUri; |
- | } |
+ | } |
| } |
@@ -332,7 +332,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Entity/EntityTrait.php.html b/master/Entity/EntityTrait.php.html
index 961794cf..0c98fda6 100644
--- a/master/Entity/EntityTrait.php.html
+++ b/master/Entity/EntityTrait.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 6 / 6 |
| | |
- EntityTrait |
-
-
- 0.00% covered (danger)
+ EntityTrait |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 3.58 |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 3 |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 6 / 6 |
| | |
- hydrate(array $properties) |
-
-
- 0.00% covered (danger)
+ hydrate(array $properties) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 3.58 |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 3 |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 6 / 6 |
| |
@@ -149,14 +149,14 @@
| |
| public function hydrate(array $properties) |
| { |
- | foreach ($properties as $prop => $val) { |
- | if (property_exists($this, $prop)) { |
- | $this->{$prop} = $val; |
- | } |
- | } |
+ | foreach ($properties as $prop => $val) { |
+ | if (property_exists($this, $prop)) { |
+ | $this->{$prop} = $val; |
+ | } |
+ | } |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| } |
@@ -170,7 +170,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Entity/RefreshTokenEntity.php.html b/master/Entity/RefreshTokenEntity.php.html
index cb25a5cf..e0e60c92 100644
--- a/master/Entity/RefreshTokenEntity.php.html
+++ b/master/Entity/RefreshTokenEntity.php.html
@@ -58,7 +58,7 @@
100.00% |
- 4 / 4 |
+ 5 / 5 |
CRAP |
|
100.00% |
- 11 / 11 |
+ 16 / 16 |
@@ -96,7 +96,7 @@
100.00% |
- 11 / 11 |
+ 16 / 16 |
@@ -138,7 +138,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -159,7 +159,7 @@
100.00% |
- 2 / 2 |
+ 4 / 4 |
@@ -180,7 +180,7 @@
100.00% |
- 4 / 4 |
+ 6 / 6 |
@@ -194,9 +194,14 @@
100.00% |
1 / 1 |
1 |
- |
- |
- |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 2 / 2 |
@@ -248,7 +253,7 @@
| $this->accessTokenId = $accessTokenId; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -262,7 +267,7 @@
| $this->accessTokenEntity = $accessTokenEntity; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -271,12 +276,12 @@
| |
| public function getAccessToken() |
| { |
- | if (! $this->accessTokenEntity instanceof AccessTokenEntity) { |
- | $this->accessTokenEntity = $this->server->getAccessTokenStorage()->get($this->accessTokenId); |
- | } |
+ | if (! $this->accessTokenEntity instanceof AccessTokenEntity) { |
+ | $this->accessTokenEntity = $this->server->getAccessTokenStorage()->get($this->accessTokenId); |
+ | } |
| |
- | return $this->accessTokenEntity; |
- | } |
+ | return $this->accessTokenEntity; |
+ | } |
| |
| |
| |
@@ -286,8 +291,8 @@
| $this->server->getRefreshTokenStorage()->create( |
| $this->getId(), |
| $this->getExpireTime(), |
- | $this->getAccessToken()->getId() |
- | ); |
+ | $this->getAccessToken()->getId() |
+ | ); |
| } |
| |
| |
@@ -295,8 +300,8 @@
| |
| public function expire() |
| { |
- | $this->server->getRefreshTokenStorage()->delete($this); |
- | } |
+ | $this->server->getRefreshTokenStorage()->delete($this); |
+ | } |
| } |
@@ -310,7 +315,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Entity/ScopeEntity.php.html b/master/Entity/ScopeEntity.php.html
index 15e964a5..f45999b7 100644
--- a/master/Entity/ScopeEntity.php.html
+++ b/master/Entity/ScopeEntity.php.html
@@ -58,7 +58,7 @@
100.00% |
- 3 / 3 |
+ 4 / 4 |
CRAP |
|
100.00% |
- 6 / 6 |
+ 7 / 7 |
@@ -96,7 +96,7 @@
100.00% |
- 6 / 6 |
+ 7 / 7 |
@@ -117,7 +117,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -152,9 +152,14 @@
100.00% |
1 / 1 |
1 |
- |
- |
- |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 1 / 1 |
@@ -175,7 +180,7 @@
100.00% |
- 2 / 2 |
+ 3 / 3 |
@@ -235,10 +240,10 @@
| |
| public function __construct(AbstractServer $server) |
| { |
- | $this->server = $server; |
+ | $this->server = $server; |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
@@ -247,8 +252,8 @@
| |
| public function getId() |
| { |
- | return $this->id; |
- | } |
+ | return $this->id; |
+ | } |
| |
| |
| |
@@ -257,8 +262,8 @@
| |
| public function getDescription() |
| { |
- | return $this->description; |
- | } |
+ | return $this->description; |
+ | } |
| |
| |
| |
@@ -270,8 +275,8 @@
| return [ |
| 'id' => $this->getId(), |
| 'description' => $this->getDescription() |
- | ]; |
- | } |
+ | ]; |
+ | } |
| } |
@@ -285,7 +290,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Entity/SessionEntity.php.html b/master/Entity/SessionEntity.php.html
index 452f63db..286e50de 100644
--- a/master/Entity/SessionEntity.php.html
+++ b/master/Entity/SessionEntity.php.html
@@ -67,7 +67,7 @@
100.00% |
- 41 / 41 |
+ 53 / 53 |
@@ -96,7 +96,7 @@
100.00% |
- 41 / 41 |
+ 53 / 53 |
@@ -117,7 +117,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -180,7 +180,7 @@
100.00% |
- 2 / 2 |
+ 4 / 4 |
@@ -201,7 +201,7 @@
100.00% |
- 2 / 2 |
+ 4 / 4 |
@@ -222,7 +222,7 @@
100.00% |
- 3 / 3 |
+ 4 / 4 |
@@ -243,7 +243,7 @@
100.00% |
- 4 / 4 |
+ 9 / 9 |
@@ -264,7 +264,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -285,7 +285,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -306,7 +306,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -411,7 +411,7 @@
100.00% |
- 5 / 5 |
+ 11 / 11 |
@@ -512,10 +512,10 @@
| |
| public function __construct(AbstractServer $server) |
| { |
- | $this->server = $server; |
+ | $this->server = $server; |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
@@ -526,10 +526,10 @@
| |
| public function setId($id) |
| { |
- | $this->id = $id; |
+ | $this->id = $id; |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
@@ -538,8 +538,8 @@
| |
| public function getId() |
| { |
- | return $this->id; |
- | } |
+ | return $this->id; |
+ | } |
| |
| |
| |
@@ -550,12 +550,12 @@
| |
| public function associateScope(ScopeEntity $scope) |
| { |
- | if (!isset($this->scopes[$scope->getId()])) { |
- | $this->scopes[$scope->getId()] = $scope; |
- | } |
+ | if (!isset($this->scopes[$scope->getId()])) { |
+ | $this->scopes[$scope->getId()] = $scope; |
+ | } |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -567,11 +567,11 @@
| public function hasScope($scope) |
| { |
| if ($this->scopes === null) { |
- | $this->getScopes(); |
- | } |
+ | $this->getScopes(); |
+ | } |
| |
| return isset($this->scopes[$scope]); |
- | } |
+ | } |
| |
| |
| |
@@ -580,12 +580,12 @@
| |
| public function getScopes() |
| { |
- | if ($this->scopes === null) { |
- | $this->scopes = $this->formatScopes($this->server->getSessionStorage()->getScopes($this)); |
- | } |
+ | if ($this->scopes === null) { |
+ | $this->scopes = $this->formatScopes($this->server->getSessionStorage()->getScopes($this)); |
+ | } |
| |
- | return $this->scopes; |
- | } |
+ | return $this->scopes; |
+ | } |
| |
| |
| |
@@ -597,16 +597,16 @@
| private function formatScopes($unformatted = []) |
| { |
| $scopes = []; |
- | if (is_array($unformatted)) { |
- | foreach ($unformatted as $scope) { |
- | if ($scope instanceof ScopeEntity) { |
- | $scopes[$scope->getId()] = $scope; |
- | } |
- | } |
- | } |
+ | if (is_array($unformatted)) { |
+ | foreach ($unformatted as $scope) { |
+ | if ($scope instanceof ScopeEntity) { |
+ | $scopes[$scope->getId()] = $scope; |
+ | } |
+ | } |
+ | } |
| |
| return $scopes; |
- | } |
+ | } |
| |
| |
| |
@@ -620,7 +620,7 @@
| $this->accessToken = $accessToken; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -634,7 +634,7 @@
| $this->refreshToken = $refreshToken; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -648,7 +648,7 @@
| $this->client = $client; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -657,14 +657,14 @@
| |
| public function getClient() |
| { |
- | if ($this->client instanceof ClientEntity) { |
- | return $this->client; |
- | } |
+ | if ($this->client instanceof ClientEntity) { |
+ | return $this->client; |
+ | } |
| |
- | $this->client = $this->server->getClientStorage()->getBySession($this); |
+ | $this->client = $this->server->getClientStorage()->getBySession($this); |
| |
| return $this->client; |
- | } |
+ | } |
| |
| |
| |
@@ -679,10 +679,10 @@
| $this->ownerType = $type; |
| $this->ownerId = $id; |
| |
- | $this->server->getEventEmitter()->emit(new SessionOwnerEvent($this)); |
+ | $this->server->getEventEmitter()->emit(new SessionOwnerEvent($this)); |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -692,7 +692,7 @@
| public function getOwnerId() |
| { |
| return $this->ownerId; |
- | } |
+ | } |
| |
| |
| |
@@ -702,7 +702,7 @@
| public function getOwnerType() |
| { |
| return $this->ownerType; |
- | } |
+ | } |
| |
| |
| |
@@ -715,17 +715,17 @@
| $id = $this->server->getSessionStorage()->create( |
| $this->getOwnerType(), |
| $this->getOwnerId(), |
- | $this->getClient()->getId(), |
- | $this->getClient()->getRedirectUri() |
- | ); |
+ | $this->getClient()->getId(), |
+ | $this->getClient()->getRedirectUri() |
+ | ); |
| |
- | $this->setId($id); |
+ | $this->setId($id); |
| |
| |
| foreach ($this->getScopes() as $scope) { |
- | $this->server->getSessionStorage()->associateScope($this, $scope); |
- | } |
- | } |
+ | $this->server->getSessionStorage()->associateScope($this, $scope); |
+ | } |
+ | } |
| } |
@@ -739,7 +739,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Entity/dashboard.html b/master/Entity/dashboard.html
index 514f7366..824972e8 100644
--- a/master/Entity/dashboard.html
+++ b/master/Entity/dashboard.html
@@ -59,9 +59,7 @@
- EntityTrait | 60% |
- AccessTokenEntity | 71% |
- AuthCodeEntity | 86% |
+ AccessTokenEntity | 84% |
@@ -78,9 +76,7 @@
- AuthCodeEntity | 11 |
- AccessTokenEntity | 10 |
- EntityTrait | 3 |
+ AccessTokenEntity | 9 |
@@ -118,12 +114,8 @@
- generateRedirectUri | 40% |
- associateScope | 50% |
- hydrate | 60% |
- getScopes | 66% |
- save | 70% |
- getSession | 80% |
+ hasScope | 0% |
+ formatScopes | 88% |
@@ -140,12 +132,8 @@
- hydrate | 3 |
- generateRedirectUri | 2 |
- associateScope | 2 |
- getScopes | 2 |
- save | 2 |
- getSession | 2 |
+ hasScope | 6 |
+ formatScopes | 4 |
@@ -155,7 +143,7 @@
@@ -176,7 +164,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,1,1,1,1,4], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,1,6], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -194,7 +182,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,1,1,2,1,1,0,48], "Method Coverage"))
+ .datum(getCoverageDistributionData([1,0,0,0,0,0,0,0,0,1,0,52], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -245,7 +233,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[91.304347826087,18,"AbstractTokenEntity<\/a>"],[71.428571428571,9,"AccessTokenEntity<\/a>"],[86.95652173913,11,"AuthCodeEntity<\/a>"],[100,5,"ClientEntity<\/a>"],[100,6,"RefreshTokenEntity<\/a>"],[100,4,"ScopeEntity<\/a>"],[100,23,"SessionEntity<\/a>"],[60,3,"EntityTrait<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[96.296296296296,18,"AbstractTokenEntity<\/a>"],[84,9,"AccessTokenEntity<\/a>"],[100,11,"AuthCodeEntity<\/a>"],[100,5,"ClientEntity<\/a>"],[100,6,"RefreshTokenEntity<\/a>"],[100,4,"ScopeEntity<\/a>"],[100,23,"SessionEntity<\/a>"],[100,3,"EntityTrait<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -270,7 +258,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[100,1,"AbstractTokenEntity::__construct<\/a>"],[100,1,"AbstractTokenEntity::setSession<\/a>"],[100,1,"AbstractTokenEntity::setExpireTime<\/a>"],[100,1,"AbstractTokenEntity::getExpireTime<\/a>"],[100,1,"AbstractTokenEntity::isExpired<\/a>"],[100,2,"AbstractTokenEntity::setId<\/a>"],[100,1,"AbstractTokenEntity::getId<\/a>"],[50,2,"AbstractTokenEntity::associateScope<\/a>"],[100,4,"AbstractTokenEntity::formatScopes<\/a>"],[100,2,"AbstractTokenEntity::__toString<\/a>"],[100,1,"AbstractTokenEntity::expire<\/a>"],[100,1,"AbstractTokenEntity::save<\/a>"],[80,2,"AccessTokenEntity::getSession<\/a>"],[100,2,"AccessTokenEntity::hasScope<\/a>"],[66.666666666667,2,"AccessTokenEntity::getScopes<\/a>"],[70,2,"AccessTokenEntity::save<\/a>"],[100,1,"AccessTokenEntity::expire<\/a>"],[100,1,"AuthCodeEntity::setRedirectUri<\/a>"],[100,1,"AuthCodeEntity::getRedirectUri<\/a>"],[40,2,"AuthCodeEntity::generateRedirectUri<\/a>"],[100,2,"AuthCodeEntity::getSession<\/a>"],[100,2,"AuthCodeEntity::getScopes<\/a>"],[100,2,"AuthCodeEntity::save<\/a>"],[100,1,"AuthCodeEntity::expire<\/a>"],[100,1,"ClientEntity::__construct<\/a>"],[100,1,"ClientEntity::getId<\/a>"],[100,1,"ClientEntity::getSecret<\/a>"],[100,1,"ClientEntity::getName<\/a>"],[100,1,"ClientEntity::getRedirectUri<\/a>"],[100,1,"RefreshTokenEntity::setAccessTokenId<\/a>"],[100,1,"RefreshTokenEntity::setAccessToken<\/a>"],[100,2,"RefreshTokenEntity::getAccessToken<\/a>"],[100,1,"RefreshTokenEntity::save<\/a>"],[100,1,"RefreshTokenEntity::expire<\/a>"],[100,1,"ScopeEntity::__construct<\/a>"],[100,1,"ScopeEntity::getId<\/a>"],[100,1,"ScopeEntity::getDescription<\/a>"],[100,1,"ScopeEntity::jsonSerialize<\/a>"],[100,1,"SessionEntity::__construct<\/a>"],[100,1,"SessionEntity::setId<\/a>"],[100,1,"SessionEntity::getId<\/a>"],[100,2,"SessionEntity::associateScope<\/a>"],[100,2,"SessionEntity::hasScope<\/a>"],[100,2,"SessionEntity::getScopes<\/a>"],[100,4,"SessionEntity::formatScopes<\/a>"],[100,1,"SessionEntity::associateAccessToken<\/a>"],[100,1,"SessionEntity::associateRefreshToken<\/a>"],[100,1,"SessionEntity::associateClient<\/a>"],[100,2,"SessionEntity::getClient<\/a>"],[100,1,"SessionEntity::setOwner<\/a>"],[100,1,"SessionEntity::getOwnerId<\/a>"],[100,1,"SessionEntity::getOwnerType<\/a>"],[100,2,"SessionEntity::save<\/a>"],[60,3,"EntityTrait::hydrate<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,1,"AbstractTokenEntity::__construct<\/a>"],[100,1,"AbstractTokenEntity::setSession<\/a>"],[100,1,"AbstractTokenEntity::setExpireTime<\/a>"],[100,1,"AbstractTokenEntity::getExpireTime<\/a>"],[100,1,"AbstractTokenEntity::isExpired<\/a>"],[100,2,"AbstractTokenEntity::setId<\/a>"],[100,1,"AbstractTokenEntity::getId<\/a>"],[100,2,"AbstractTokenEntity::associateScope<\/a>"],[88.888888888889,4,"AbstractTokenEntity::formatScopes<\/a>"],[100,2,"AbstractTokenEntity::__toString<\/a>"],[100,1,"AbstractTokenEntity::expire<\/a>"],[100,1,"AbstractTokenEntity::save<\/a>"],[100,2,"AccessTokenEntity::getSession<\/a>"],[0,2,"AccessTokenEntity::hasScope<\/a>"],[100,2,"AccessTokenEntity::getScopes<\/a>"],[100,2,"AccessTokenEntity::save<\/a>"],[100,1,"AccessTokenEntity::expire<\/a>"],[100,1,"AuthCodeEntity::setRedirectUri<\/a>"],[100,1,"AuthCodeEntity::getRedirectUri<\/a>"],[100,2,"AuthCodeEntity::generateRedirectUri<\/a>"],[100,2,"AuthCodeEntity::getSession<\/a>"],[100,2,"AuthCodeEntity::getScopes<\/a>"],[100,2,"AuthCodeEntity::save<\/a>"],[100,1,"AuthCodeEntity::expire<\/a>"],[100,1,"ClientEntity::__construct<\/a>"],[100,1,"ClientEntity::getId<\/a>"],[100,1,"ClientEntity::getSecret<\/a>"],[100,1,"ClientEntity::getName<\/a>"],[100,1,"ClientEntity::getRedirectUri<\/a>"],[100,1,"RefreshTokenEntity::setAccessTokenId<\/a>"],[100,1,"RefreshTokenEntity::setAccessToken<\/a>"],[100,2,"RefreshTokenEntity::getAccessToken<\/a>"],[100,1,"RefreshTokenEntity::save<\/a>"],[100,1,"RefreshTokenEntity::expire<\/a>"],[100,1,"ScopeEntity::__construct<\/a>"],[100,1,"ScopeEntity::getId<\/a>"],[100,1,"ScopeEntity::getDescription<\/a>"],[100,1,"ScopeEntity::jsonSerialize<\/a>"],[100,1,"SessionEntity::__construct<\/a>"],[100,1,"SessionEntity::setId<\/a>"],[100,1,"SessionEntity::getId<\/a>"],[100,2,"SessionEntity::associateScope<\/a>"],[100,2,"SessionEntity::hasScope<\/a>"],[100,2,"SessionEntity::getScopes<\/a>"],[100,4,"SessionEntity::formatScopes<\/a>"],[100,1,"SessionEntity::associateAccessToken<\/a>"],[100,1,"SessionEntity::associateRefreshToken<\/a>"],[100,1,"SessionEntity::associateClient<\/a>"],[100,2,"SessionEntity::getClient<\/a>"],[100,1,"SessionEntity::setOwner<\/a>"],[100,1,"SessionEntity::getOwnerId<\/a>"],[100,1,"SessionEntity::getOwnerType<\/a>"],[100,2,"SessionEntity::save<\/a>"],[100,3,"EntityTrait::hydrate<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/Entity/index.html b/master/Entity/index.html
index 449ff4ca..01b37c43 100644
--- a/master/Entity/index.html
+++ b/master/Entity/index.html
@@ -44,49 +44,49 @@
Total |
-
- 90.51% covered (success)
+
+ 97.08% covered (success)
|
- 90.51% |
- 124 / 137 |
+ 97.08% |
+ 166 / 171 |
+
+
+ 96.15% covered (success)
+
+
+ |
+ 96.15% |
+ 50 / 52 |
-
- 86.96% covered (warning)
+
+ 75.00% covered (warning)
|
- 86.96% |
- 40 / 46 |
-
-
- 50.00% covered (warning)
-
-
- |
- 50.00% |
- 4 / 8 |
+ 75.00% |
+ 6 / 8 |
AbstractTokenEntity.php |
-
- 91.30% covered (success)
+
+ 96.30% covered (success)
|
- 91.30% |
- 21 / 23 |
-
-
- 88.89% covered (warning)
+ 96.30% |
+ 26 / 27 |
+
+
+ 90.00% covered (success)
|
- 88.89% |
- 8 / 9 |
+ 90.00% |
+ 9 / 10 |
0.00% covered (danger)
@@ -100,21 +100,21 @@
AccessTokenEntity.php |
-
- 71.43% covered (warning)
+
+ 84.00% covered (warning)
|
- 71.43% |
- 15 / 21 |
-
-
- 0.00% covered (danger)
+ 84.00% |
+ 21 / 25 |
+
+
+ 80.00% covered (warning)
|
- 0.00% |
- 0 / 3 |
+ 80.00% |
+ 4 / 5 |
0.00% covered (danger)
@@ -126,31 +126,31 @@
| |
- AuthCodeEntity.php |
-
-
- 86.96% covered (warning)
+ AuthCodeEntity.php |
+
+
+ 100.00% covered (success)
|
- 86.96% |
- 20 / 23 |
-
-
- 83.33% covered (warning)
+ 100.00% |
+ 31 / 31 |
+
+
+ 100.00% covered (success)
|
- 83.33% |
- 5 / 6 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 7 / 7 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
@@ -162,7 +162,7 @@
100.00% |
- 7 / 7 |
+ 6 / 6 |
100.00% covered (success)
@@ -182,31 +182,31 @@
|
- EntityTrait.php |
-
-
- 60.00% covered (warning)
+ EntityTrait.php |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 6 / 6 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
@@ -218,7 +218,7 @@
100.00% |
- 11 / 11 |
+ 16 / 16 |
100.00% covered (success)
@@ -226,7 +226,7 @@
|
100.00% |
- 4 / 4 |
+ 5 / 5 |
100.00% covered (success)
@@ -246,7 +246,7 @@
|
100.00% |
- 6 / 6 |
+ 7 / 7 |
100.00% covered (success)
@@ -254,7 +254,7 @@
|
100.00% |
- 3 / 3 |
+ 4 / 4 |
100.00% covered (success)
@@ -274,7 +274,7 @@
|
100.00% |
- 41 / 41 |
+ 53 / 53 |
diff --git a/master/Event/ClientAuthenticationFailedEvent.php.html b/master/Event/ClientAuthenticationFailedEvent.php.html
index 693c6f9c..78025784 100644
--- a/master/Event/ClientAuthenticationFailedEvent.php.html
+++ b/master/Event/ClientAuthenticationFailedEvent.php.html
@@ -51,15 +51,6 @@
|
0.00% |
0 / 1 |
-
-
- 50.00% covered (warning)
-
-
- |
- 50.00% |
- 1 / 2 |
- CRAP |
66.67% covered (warning)
@@ -68,6 +59,15 @@
|
66.67% |
2 / 3 |
+ CRAP |
+
+
+ 75.00% covered (warning)
+
+
+ |
+ 75.00% |
+ 3 / 4 |
@@ -88,36 +88,36 @@
66.67% |
2 / 3 |
- 3.33 |
+ 3.14 |
-
- 66.67% covered (warning)
+
+ 75.00% covered (warning)
|
- 66.67% |
- 2 / 3 |
+ 75.00% |
+ 3 / 4 |
- __construct(Request $request) |
-
-
- 0.00% covered (danger)
+ __construct(Request $request) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -142,19 +142,24 @@
- getRequest() |
-
-
- 100.00% covered (success)
+ getRequest() |
+
+
+ 0.00% covered (danger)
|
- 100.00% |
- 1 / 1 |
- 1 |
- |
- |
- |
+ 0.00% |
+ 0 / 1 |
+ 2 |
+
+
+ 0.00% covered (danger)
+
+
+ |
+ 0.00% |
+ 0 / 1 |
|
@@ -195,7 +200,7 @@
| public function __construct(Request $request) |
| { |
| $this->request = $request; |
- | } |
+ | } |
| |
| |
| |
@@ -205,7 +210,7 @@
| public function getName() |
| { |
| return 'error.auth.client'; |
- | } |
+ | } |
| |
| |
| |
@@ -214,8 +219,8 @@
| |
| public function getRequest() |
| { |
- | return $this->request; |
- | } |
+ | return $this->request; |
+ | } |
| } |
@@ -229,7 +234,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Event/SessionOwnerEvent.php.html b/master/Event/SessionOwnerEvent.php.html
index 26e90968..bcb2c9d7 100644
--- a/master/Event/SessionOwnerEvent.php.html
+++ b/master/Event/SessionOwnerEvent.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 66.67% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 66.67% |
- 2 / 3 |
- CRAP |
-
-
- 75.00% covered (warning)
+ 100.00% |
+ 3 / 3 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 75.00% |
- 3 / 4 |
+ 100.00% |
+ 4 / 4 |
| | |
- SessionOwnerEvent |
-
-
- 0.00% covered (danger)
+ SessionOwnerEvent |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 66.67% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 66.67% |
- 2 / 3 |
- 3.14 |
-
-
- 75.00% covered (warning)
+ 100.00% |
+ 3 / 3 |
+ 3 |
+
+
+ 100.00% covered (success)
|
- 75.00% |
- 3 / 4 |
+ 100.00% |
+ 4 / 4 |
| | |
- __construct(SessionEntity $session) |
-
-
- 0.00% covered (danger)
+ __construct(SessionEntity $session) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -200,7 +200,7 @@
| public function __construct(SessionEntity $session) |
| { |
| $this->session = $session; |
- | } |
+ | } |
| |
| |
| |
@@ -210,7 +210,7 @@
| public function getName() |
| { |
| return 'session.owner'; |
- | } |
+ | } |
| |
| |
| |
@@ -220,7 +220,7 @@
| public function getSession() |
| { |
| return $this->session; |
- | } |
+ | } |
| } |
@@ -234,7 +234,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Event/UserAuthenticationFailedEvent.php.html b/master/Event/UserAuthenticationFailedEvent.php.html
index 758c4781..7ddd92de 100644
--- a/master/Event/UserAuthenticationFailedEvent.php.html
+++ b/master/Event/UserAuthenticationFailedEvent.php.html
@@ -51,15 +51,6 @@
|
0.00% |
0 / 1 |
-
-
- 50.00% covered (warning)
-
-
- |
- 50.00% |
- 1 / 2 |
- CRAP |
66.67% covered (warning)
@@ -68,6 +59,15 @@
|
66.67% |
2 / 3 |
+ CRAP |
+
+
+ 75.00% covered (warning)
+
+
+ |
+ 75.00% |
+ 3 / 4 |
|
@@ -88,36 +88,36 @@
66.67% |
2 / 3 |
- 3.33 |
+ 3.14 |
-
- 66.67% covered (warning)
+
+ 75.00% covered (warning)
|
- 66.67% |
- 2 / 3 |
+ 75.00% |
+ 3 / 4 |
- __construct(Request $request) |
-
-
- 0.00% covered (danger)
+ __construct(Request $request) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -142,19 +142,24 @@
- getRequest() |
-
-
- 100.00% covered (success)
+ getRequest() |
+
+
+ 0.00% covered (danger)
|
- 100.00% |
- 1 / 1 |
- 1 |
- |
- |
- |
+ 0.00% |
+ 0 / 1 |
+ 2 |
+
+
+ 0.00% covered (danger)
+
+
+ |
+ 0.00% |
+ 0 / 1 |
|
@@ -195,7 +200,7 @@
| public function __construct(Request $request) |
| { |
| $this->request = $request; |
- | } |
+ | } |
| |
| |
| |
@@ -205,7 +210,7 @@
| public function getName() |
| { |
| return 'error.auth.user'; |
- | } |
+ | } |
| |
| |
| |
@@ -214,8 +219,8 @@
| |
| public function getRequest() |
| { |
- | return $this->request; |
- | } |
+ | return $this->request; |
+ | } |
| } |
@@ -229,7 +234,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Event/dashboard.html b/master/Event/dashboard.html
index e883590d..1114ea04 100644
--- a/master/Event/dashboard.html
+++ b/master/Event/dashboard.html
@@ -59,9 +59,8 @@
- ClientAuthenticationFailedEvent | 66% |
- UserAuthenticationFailedEvent | 66% |
- SessionOwnerEvent | 75% |
+ UserAuthenticationFailedEvent | 75% |
+ ClientAuthenticationFailedEvent | 75% |
@@ -115,9 +114,8 @@
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
+ getRequest | 0% |
+ getRequest | 0% |
@@ -143,7 +141,7 @@
@@ -164,7 +162,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,2,1,0,0,0], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,0,0,1], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -182,7 +180,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,3,0,0,0,0,6], "Method Coverage"))
+ .datum(getCoverageDistributionData([2,0,0,0,0,0,0,0,0,0,0,7], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -233,7 +231,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[66.666666666667,3,"ClientAuthenticationFailedEvent<\/a>"],[75,3,"SessionOwnerEvent<\/a>"],[66.666666666667,3,"UserAuthenticationFailedEvent<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[75,3,"ClientAuthenticationFailedEvent<\/a>"],[100,3,"SessionOwnerEvent<\/a>"],[75,3,"UserAuthenticationFailedEvent<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -258,7 +256,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[50,1,"ClientAuthenticationFailedEvent::__construct<\/a>"],[100,1,"ClientAuthenticationFailedEvent::getName<\/a>"],[100,1,"ClientAuthenticationFailedEvent::getRequest<\/a>"],[50,1,"SessionOwnerEvent::__construct<\/a>"],[100,1,"SessionOwnerEvent::getName<\/a>"],[100,1,"SessionOwnerEvent::getSession<\/a>"],[50,1,"UserAuthenticationFailedEvent::__construct<\/a>"],[100,1,"UserAuthenticationFailedEvent::getName<\/a>"],[100,1,"UserAuthenticationFailedEvent::getRequest<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,1,"ClientAuthenticationFailedEvent::__construct<\/a>"],[100,1,"ClientAuthenticationFailedEvent::getName<\/a>"],[0,1,"ClientAuthenticationFailedEvent::getRequest<\/a>"],[100,1,"SessionOwnerEvent::__construct<\/a>"],[100,1,"SessionOwnerEvent::getName<\/a>"],[100,1,"SessionOwnerEvent::getSession<\/a>"],[100,1,"UserAuthenticationFailedEvent::__construct<\/a>"],[100,1,"UserAuthenticationFailedEvent::getName<\/a>"],[0,1,"UserAuthenticationFailedEvent::getRequest<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/Event/index.html b/master/Event/index.html
index 6081d180..09e0d4e3 100644
--- a/master/Event/index.html
+++ b/master/Event/index.html
@@ -44,61 +44,33 @@
Total |
-
- 70.00% covered (warning)
+
+ 83.33% covered (warning)
|
- 70.00% |
- 7 / 10 |
+ 83.33% |
+ 10 / 12 |
-
- 57.14% covered (warning)
+
+ 77.78% covered (warning)
|
- 57.14% |
- 4 / 7 |
+ 77.78% |
+ 7 / 9 |
-
- 0.00% covered (danger)
+
+ 33.33% covered (danger)
|
- 0.00% |
- 0 / 3 |
+ 33.33% |
+ 1 / 3 |
ClientAuthenticationFailedEvent.php |
-
-
- 66.67% covered (warning)
-
-
- |
- 66.67% |
- 2 / 3 |
-
-
- 50.00% covered (warning)
-
-
- |
- 50.00% |
- 1 / 2 |
-
-
- 0.00% covered (danger)
-
-
- |
- 0.00% |
- 0 / 1 |
-
-
-
- SessionOwnerEvent.php |
75.00% covered (warning)
@@ -125,8 +97,44 @@
0 / 1 |
|
+
+ SessionOwnerEvent.php |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 4 / 4 |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 3 / 3 |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 1 / 1 |
+
+
UserAuthenticationFailedEvent.php |
+
+
+ 75.00% covered (warning)
+
+
+ |
+ 75.00% |
+ 3 / 4 |
66.67% covered (warning)
@@ -135,14 +143,6 @@
|
66.67% |
2 / 3 |
-
-
- 50.00% covered (warning)
-
-
- |
- 50.00% |
- 1 / 2 |
diff --git a/master/Exception/AccessDeniedException.php.html b/master/Exception/AccessDeniedException.php.html
index 6411b43e..8f414fa7 100644
--- a/master/Exception/AccessDeniedException.php.html
+++ b/master/Exception/AccessDeniedException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| | |
- AccessDeniedException |
-
-
- 0.00% covered (danger)
+ AccessDeniedException |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| | |
- __construct() |
-
-
- 0.00% covered (danger)
+ __construct() |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -158,7 +158,7 @@
| |
| public function __construct() |
| { |
- | parent::__construct('The resource owner or authorization server denied the request.'); |
+ | parent::__construct('The resource owner or authorization server denied the request.'); |
| } |
| } |
@@ -173,7 +173,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/InvalidClientException.php.html b/master/Exception/InvalidClientException.php.html
index e6d2392d..36469759 100644
--- a/master/Exception/InvalidClientException.php.html
+++ b/master/Exception/InvalidClientException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| | |
- InvalidClientException |
-
-
- 0.00% covered (danger)
+ InvalidClientException |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| | |
- __construct() |
-
-
- 0.00% covered (danger)
+ __construct() |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -158,7 +158,7 @@
| |
| public function __construct() |
| { |
- | parent::__construct('Client authentication failed.'); |
+ | parent::__construct('Client authentication failed.'); |
| } |
| } |
@@ -173,7 +173,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/InvalidCredentialsException.php.html b/master/Exception/InvalidCredentialsException.php.html
index bb8e575e..81102286 100644
--- a/master/Exception/InvalidCredentialsException.php.html
+++ b/master/Exception/InvalidCredentialsException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| | |
- InvalidCredentialsException |
-
-
- 0.00% covered (danger)
+ InvalidCredentialsException |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| | |
- __construct() |
-
-
- 0.00% covered (danger)
+ __construct() |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -158,7 +158,7 @@
| |
| public function __construct() |
| { |
- | parent::__construct('The user credentials were incorrect.'); |
+ | parent::__construct('The user credentials were incorrect.'); |
| } |
| } |
@@ -173,7 +173,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/InvalidGrantException.php.html b/master/Exception/InvalidGrantException.php.html
index 91d3fa71..a206246a 100644
--- a/master/Exception/InvalidGrantException.php.html
+++ b/master/Exception/InvalidGrantException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 2 / 4 |
+ 100.00% |
+ 6 / 6 |
| | |
- InvalidGrantException |
-
-
- 0.00% covered (danger)
+ InvalidGrantException |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 2 / 4 |
+ 100.00% |
+ 6 / 6 |
| | |
- __construct($parameter) |
-
-
- 0.00% covered (danger)
+ __construct($parameter) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 2 / 4 |
+ 100.00% |
+ 6 / 6 |
| |
@@ -159,12 +159,12 @@
| |
| public function __construct($parameter) |
| { |
- | parent::__construct( |
- | sprintf( |
+ | parent::__construct( |
+ | sprintf( |
| 'The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. Check the "%s" parameter.', |
| $parameter |
- | ) |
- | ); |
+ | ) |
+ | ); |
| } |
| } |
@@ -179,7 +179,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/InvalidRefreshException.php.html b/master/Exception/InvalidRefreshException.php.html
index b6f15249..d5023376 100644
--- a/master/Exception/InvalidRefreshException.php.html
+++ b/master/Exception/InvalidRefreshException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| | |
- InvalidRefreshException |
-
-
- 0.00% covered (danger)
+ InvalidRefreshException |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| | |
- __construct() |
-
-
- 0.00% covered (danger)
+ __construct() |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -158,7 +158,7 @@
| |
| public function __construct() |
| { |
- | parent::__construct('The refresh token is invalid.'); |
+ | parent::__construct('The refresh token is invalid.'); |
| } |
| } |
@@ -173,7 +173,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/InvalidRequestException.php.html b/master/Exception/InvalidRequestException.php.html
index 1cecda4a..7f1e3f1d 100644
--- a/master/Exception/InvalidRequestException.php.html
+++ b/master/Exception/InvalidRequestException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 7 / 7 |
| | |
- InvalidRequestException |
-
-
- 0.00% covered (danger)
+ InvalidRequestException |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.06 |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 7 / 7 |
| | |
- __construct($parameter, $redirectUri = null) |
-
-
- 0.00% covered (danger)
+ __construct($parameter, $redirectUri = null) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.06 |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 7 / 7 |
| |
@@ -159,15 +159,15 @@
| |
| public function __construct($parameter, $redirectUri = null) |
| { |
- | parent::__construct( |
- | sprintf( |
+ | parent::__construct( |
+ | sprintf( |
| 'The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the "%s" parameter.', |
| $parameter |
- | ) |
- | ); |
+ | ) |
+ | ); |
| |
| $this->redirectUri = $redirectUri; |
- | } |
+ | } |
| } |
@@ -181,7 +181,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/InvalidScopeException.php.html b/master/Exception/InvalidScopeException.php.html
index 63526d88..c44b5413 100644
--- a/master/Exception/InvalidScopeException.php.html
+++ b/master/Exception/InvalidScopeException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 7 / 7 |
| | |
- InvalidScopeException |
-
-
- 0.00% covered (danger)
+ InvalidScopeException |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.06 |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 7 / 7 |
| | |
- __construct($parameter, $redirectUri = null) |
-
-
- 0.00% covered (danger)
+ __construct($parameter, $redirectUri = null) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.06 |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 7 / 7 |
| |
@@ -159,15 +159,15 @@
| |
| public function __construct($parameter, $redirectUri = null) |
| { |
- | parent::__construct( |
- | sprintf( |
+ | parent::__construct( |
+ | sprintf( |
| 'The requested scope is invalid, unknown, or malformed. Check the "%s" scope.', |
| $parameter |
- | ) |
- | ); |
+ | ) |
+ | ); |
| |
| $this->redirectUri = $redirectUri; |
- | } |
+ | } |
| } |
@@ -181,7 +181,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/OAuthException.php.html b/master/Exception/OAuthException.php.html
index 9c9638ab..80d04120 100644
--- a/master/Exception/OAuthException.php.html
+++ b/master/Exception/OAuthException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
-
-
- |
- 0.00% |
- 0 / 1 |
-
-
- 66.67% covered (warning)
-
-
- |
- 66.67% |
- 2 / 3 |
- CRAP |
+ Total |
-
- 93.33% covered (success)
+
+ 100.00% covered (success)
|
- 93.33% |
- 14 / 15 |
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 4 / 4 |
+ CRAP |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 25 / 25 |
- OAuthException |
-
-
- 0.00% covered (danger)
-
-
- |
- 0.00% |
- 0 / 1 |
-
-
- 75.00% covered (warning)
-
-
- |
- 75.00% |
- 3 / 4 |
- 15.07 |
+ OAuthException |
-
- 93.33% covered (success)
+
+ 100.00% covered (success)
|
- 93.33% |
- 14 / 15 |
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 4 / 4 |
+ 15 |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 25 / 25 |
- __construct($msg = 'An error occured') |
-
-
- 0.00% covered (danger)
+ __construct($msg = 'An error occured') |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -131,9 +131,14 @@
100.00% |
1 / 1 |
2 |
- |
- |
- |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 1 / 1 |
@@ -154,7 +159,7 @@
100.00% |
- 4 / 4 |
+ 5 / 5 |
@@ -175,7 +180,7 @@
100.00% |
- 9 / 9 |
+ 17 / 17 |
@@ -228,8 +233,8 @@
| |
| public function __construct($msg = 'An error occured') |
| { |
- | parent::__construct($msg); |
- | } |
+ | parent::__construct($msg); |
+ | } |
| |
| |
| |
@@ -238,8 +243,8 @@
| |
| public function shouldRedirect() |
| { |
- | return is_null($this->redirectUri) ? false : true; |
- | } |
+ | return is_null($this->redirectUri) ? false : true; |
+ | } |
| |
| |
| |
@@ -248,14 +253,14 @@
| |
| public function getRedirectUri() |
| { |
- | return RedirectUri::make( |
+ | return RedirectUri::make( |
| $this->redirectUri, |
| [ |
| 'error' => $this->errorType, |
| 'message' => $this->getMessage(), |
- | ] |
- | ); |
- | } |
+ | ] |
+ | ); |
+ | } |
| |
| |
| |
@@ -264,22 +269,22 @@
| |
| public function getHttpHeaders() |
| { |
- | $headers = []; |
- | switch ($this->httpStatusCode) { |
- | case 401: |
+ | $headers = []; |
+ | switch ($this->httpStatusCode) { |
+ | case 401: |
| $headers[] = 'HTTP/1.1 401 Unauthorized'; |
| break; |
- | case 500: |
+ | case 500: |
| $headers[] = 'HTTP/1.1 500 Internal Server Error'; |
| break; |
- | case 501: |
+ | case 501: |
| $headers[] = 'HTTP/1.1 501 Not Implemented'; |
| break; |
| case 400: |
- | default: |
+ | default: |
| $headers[] = 'HTTP/1.1 400 Bad Request'; |
| break; |
- | } |
+ | } |
| |
| |
| |
@@ -310,8 +315,8 @@
| } |
| } |
| |
- | return $headers; |
- | } |
+ | return $headers; |
+ | } |
| } |
@@ -325,7 +330,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/ServerErrorException.php.html b/master/Exception/ServerErrorException.php.html
index b897a575..d8359b7e 100644
--- a/master/Exception/ServerErrorException.php.html
+++ b/master/Exception/ServerErrorException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
+ 100.00% |
+ 3 / 3 |
| | |
- ServerErrorException |
-
-
- 0.00% covered (danger)
+ ServerErrorException |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 3.19 |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 2 |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
+ 100.00% |
+ 3 / 3 |
| | |
- __construct($parameter = null) |
-
-
- 0.00% covered (danger)
+ __construct($parameter = null) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 3.19 |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 2 |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
+ 100.00% |
+ 3 / 3 |
| |
@@ -158,8 +158,8 @@
| |
| public function __construct($parameter = null) |
| { |
- | $parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.' : $parameter; |
- | parent::__construct($parameter); |
+ | $parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.' : $parameter; |
+ | parent::__construct($parameter); |
| } |
| } |
@@ -174,7 +174,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/UnauthorizedClientException.php.html b/master/Exception/UnauthorizedClientException.php.html
index f2605f90..2890e24e 100644
--- a/master/Exception/UnauthorizedClientException.php.html
+++ b/master/Exception/UnauthorizedClientException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| | |
- UnauthorizedClientException |
-
-
- 0.00% covered (danger)
+ UnauthorizedClientException |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| | |
- __construct() |
-
-
- 0.00% covered (danger)
+ __construct() |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -158,7 +158,7 @@
| |
| public function __construct() |
| { |
- | parent::__construct('The client is not authorized to request an access token using this method.'); |
+ | parent::__construct('The client is not authorized to request an access token using this method.'); |
| } |
| } |
@@ -173,7 +173,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/UnsupportedGrantTypeException.php.html b/master/Exception/UnsupportedGrantTypeException.php.html
index adf05afe..0ac24248 100644
--- a/master/Exception/UnsupportedGrantTypeException.php.html
+++ b/master/Exception/UnsupportedGrantTypeException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 2 / 4 |
+ 100.00% |
+ 6 / 6 |
| | |
- UnsupportedGrantTypeException |
-
-
- 0.00% covered (danger)
+ UnsupportedGrantTypeException |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 2 / 4 |
+ 100.00% |
+ 6 / 6 |
| | |
- __construct($parameter) |
-
-
- 0.00% covered (danger)
+ __construct($parameter) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 2 / 4 |
+ 100.00% |
+ 6 / 6 |
| |
@@ -159,12 +159,12 @@
| |
| public function __construct($parameter) |
| { |
- | parent::__construct( |
- | sprintf( |
+ | parent::__construct( |
+ | sprintf( |
| 'The authorization grant type "%s" is not supported by the authorization server.', |
| $parameter |
- | ) |
- | ); |
+ | ) |
+ | ); |
| } |
| } |
@@ -179,7 +179,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/UnsupportedResponseTypeException.php.html b/master/Exception/UnsupportedResponseTypeException.php.html
index 6ee3c44b..da2730d8 100644
--- a/master/Exception/UnsupportedResponseTypeException.php.html
+++ b/master/Exception/UnsupportedResponseTypeException.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 66.67% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 66.67% |
- 2 / 3 |
+ 100.00% |
+ 3 / 3 |
| | |
- UnsupportedResponseTypeException |
-
-
- 0.00% covered (danger)
+ UnsupportedResponseTypeException |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.04 |
-
-
- 66.67% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 66.67% |
- 2 / 3 |
+ 100.00% |
+ 3 / 3 |
| | |
- __construct($parameter, $redirectUri = null) |
-
-
- 0.00% covered (danger)
+ __construct($parameter, $redirectUri = null) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.04 |
-
-
- 66.67% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 66.67% |
- 2 / 3 |
+ 100.00% |
+ 3 / 3 |
| |
@@ -158,7 +158,7 @@
| |
| public function __construct($parameter, $redirectUri = null) |
| { |
- | parent::__construct('The authorization server does not support obtaining an access token using this method.'); |
+ | parent::__construct('The authorization server does not support obtaining an access token using this method.'); |
| $this->redirectUri = $redirectUri; |
| } |
| } |
@@ -174,7 +174,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Exception/dashboard.html b/master/Exception/dashboard.html
index 6ad2a66f..e05038d6 100644
--- a/master/Exception/dashboard.html
+++ b/master/Exception/dashboard.html
@@ -59,17 +59,6 @@
- ServerErrorException | 33% |
- AccessDeniedException | 50% |
- InvalidClientException | 50% |
- InvalidCredentialsException | 50% |
- InvalidGrantException | 50% |
- InvalidRefreshException | 50% |
- UnauthorizedClientException | 50% |
- UnsupportedGrantTypeException | 50% |
- InvalidRequestException | 60% |
- InvalidScopeException | 60% |
- UnsupportedResponseTypeException | 66% |
@@ -86,7 +75,6 @@
|
- ServerErrorException | 3 |
@@ -124,18 +112,6 @@
- __construct | 33% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 60% |
- __construct | 60% |
- __construct | 66% |
@@ -152,7 +128,6 @@
- __construct | 3 |
@@ -162,7 +137,7 @@
@@ -183,7 +158,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,1,0,7,3,0,0,1,0], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,12], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -201,7 +176,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,1,0,8,3,0,0,0,3], "Method Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,15], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -252,7 +227,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[50,1,"AccessDeniedException<\/a>"],[50,1,"InvalidClientException<\/a>"],[50,1,"InvalidCredentialsException<\/a>"],[50,1,"InvalidGrantException<\/a>"],[50,1,"InvalidRefreshException<\/a>"],[60,1,"InvalidRequestException<\/a>"],[60,1,"InvalidScopeException<\/a>"],[93.333333333333,15,"OAuthException<\/a>"],[33.333333333333,2,"ServerErrorException<\/a>"],[50,1,"UnauthorizedClientException<\/a>"],[50,1,"UnsupportedGrantTypeException<\/a>"],[66.666666666667,1,"UnsupportedResponseTypeException<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[100,1,"AccessDeniedException<\/a>"],[100,1,"InvalidClientException<\/a>"],[100,1,"InvalidCredentialsException<\/a>"],[100,1,"InvalidGrantException<\/a>"],[100,1,"InvalidRefreshException<\/a>"],[100,1,"InvalidRequestException<\/a>"],[100,1,"InvalidScopeException<\/a>"],[100,15,"OAuthException<\/a>"],[100,2,"ServerErrorException<\/a>"],[100,1,"UnauthorizedClientException<\/a>"],[100,1,"UnsupportedGrantTypeException<\/a>"],[100,1,"UnsupportedResponseTypeException<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -277,7 +252,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[50,1,"AccessDeniedException::__construct<\/a>"],[50,1,"InvalidClientException::__construct<\/a>"],[50,1,"InvalidCredentialsException::__construct<\/a>"],[50,1,"InvalidGrantException::__construct<\/a>"],[50,1,"InvalidRefreshException::__construct<\/a>"],[60,1,"InvalidRequestException::__construct<\/a>"],[60,1,"InvalidScopeException::__construct<\/a>"],[50,1,"OAuthException::__construct<\/a>"],[100,2,"OAuthException::shouldRedirect<\/a>"],[100,1,"OAuthException::getRedirectUri<\/a>"],[100,11,"OAuthException::getHttpHeaders<\/a>"],[33.333333333333,2,"ServerErrorException::__construct<\/a>"],[50,1,"UnauthorizedClientException::__construct<\/a>"],[50,1,"UnsupportedGrantTypeException::__construct<\/a>"],[66.666666666667,1,"UnsupportedResponseTypeException::__construct<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,1,"AccessDeniedException::__construct<\/a>"],[100,1,"InvalidClientException::__construct<\/a>"],[100,1,"InvalidCredentialsException::__construct<\/a>"],[100,1,"InvalidGrantException::__construct<\/a>"],[100,1,"InvalidRefreshException::__construct<\/a>"],[100,1,"InvalidRequestException::__construct<\/a>"],[100,1,"InvalidScopeException::__construct<\/a>"],[100,1,"OAuthException::__construct<\/a>"],[100,2,"OAuthException::shouldRedirect<\/a>"],[100,1,"OAuthException::getRedirectUri<\/a>"],[100,11,"OAuthException::getHttpHeaders<\/a>"],[100,2,"ServerErrorException::__construct<\/a>"],[100,1,"UnauthorizedClientException::__construct<\/a>"],[100,1,"UnsupportedGrantTypeException::__construct<\/a>"],[100,1,"UnsupportedResponseTypeException::__construct<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/Exception/index.html b/master/Exception/index.html
index f3f2d785..0a1d5c9e 100644
--- a/master/Exception/index.html
+++ b/master/Exception/index.html
@@ -42,367 +42,367 @@
- Total |
-
-
- 65.31% covered (warning)
+ Total |
+
+
+ 100.00% covered (success)
|
- 65.31% |
- 32 / 49 |
-
-
- 14.29% covered (danger)
+ 100.00% |
+ 67 / 67 |
+
+
+ 100.00% covered (success)
|
- 14.29% |
- 2 / 14 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 15 / 15 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 12 |
+ 100.00% |
+ 12 / 12 |
| | |
- AccessDeniedException.php |
-
-
- 50.00% covered (warning)
+ AccessDeniedException.php |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 2 / 2 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- InvalidClientException.php |
-
-
- 50.00% covered (warning)
+ InvalidClientException.php |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 2 / 2 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- InvalidCredentialsException.php |
-
-
- 50.00% covered (warning)
+ InvalidCredentialsException.php |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 2 / 2 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- InvalidGrantException.php |
-
-
- 50.00% covered (warning)
+ InvalidGrantException.php |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 2 / 4 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 6 / 6 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- InvalidRefreshException.php |
-
-
- 50.00% covered (warning)
+ InvalidRefreshException.php |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 2 / 2 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- InvalidRequestException.php |
-
-
- 60.00% covered (warning)
+ InvalidRequestException.php |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 7 / 7 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- InvalidScopeException.php |
-
-
- 60.00% covered (warning)
+ InvalidScopeException.php |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 7 / 7 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
OAuthException.php |
-
- 93.33% covered (success)
+
+ 100.00% covered (success)
|
- 93.33% |
- 14 / 15 |
-
-
- 66.67% covered (warning)
+ 100.00% |
+ 25 / 25 |
+
+
+ 100.00% covered (success)
|
- 66.67% |
- 2 / 3 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 4 / 4 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| |
- ServerErrorException.php |
-
-
- 33.33% covered (danger)
+ ServerErrorException.php |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 3 / 3 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- UnauthorizedClientException.php |
-
-
- 50.00% covered (warning)
+ UnauthorizedClientException.php |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 1 / 2 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 2 / 2 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- UnsupportedGrantTypeException.php |
-
-
- 50.00% covered (warning)
+ UnsupportedGrantTypeException.php |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 2 / 4 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 6 / 6 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- UnsupportedResponseTypeException.php |
-
-
- 66.67% covered (warning)
+ UnsupportedResponseTypeException.php |
+
+
+ 100.00% covered (success)
|
- 66.67% |
- 2 / 3 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 3 / 3 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
@@ -417,7 +417,7 @@
High: 90% to 100%
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Grant/AbstractGrant.php.html b/master/Grant/AbstractGrant.php.html
index 7e8a0a64..05ce1033 100644
--- a/master/Grant/AbstractGrant.php.html
+++ b/master/Grant/AbstractGrant.php.html
@@ -67,7 +67,7 @@
100.00% |
- 27 / 27 |
+ 48 / 48 |
@@ -96,7 +96,7 @@
100.00% |
- 27 / 27 |
+ 48 / 48 |
@@ -180,7 +180,7 @@
100.00% |
- 2 / 2 |
+ 3 / 3 |
@@ -222,7 +222,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -243,7 +243,7 @@
100.00% |
- 12 / 12 |
+ 30 / 30 |
@@ -264,7 +264,7 @@
100.00% |
- 4 / 4 |
+ 7 / 7 |
@@ -335,8 +335,8 @@
| |
| public function getIdentifier() |
| { |
- | return $this->identifier; |
- | } |
+ | return $this->identifier; |
+ | } |
| |
| |
| |
@@ -346,15 +346,15 @@
| $this->identifier = $identifier; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
| |
| public function getResponseType() |
| { |
- | return $this->responseType; |
- | } |
+ | return $this->responseType; |
+ | } |
| |
| |
| |
@@ -363,12 +363,12 @@
| |
| public function getAccessTokenTTL() |
| { |
- | if ($this->accessTokenTTL) { |
+ | if ($this->accessTokenTTL) { |
| return $this->accessTokenTTL; |
- | } |
+ | } |
| |
- | return $this->server->getAccessTokenTTL(); |
- | } |
+ | return $this->server->getAccessTokenTTL(); |
+ | } |
| |
| |
| |
@@ -382,17 +382,17 @@
| $this->accessTokenTTL = $accessTokenTTL; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
| |
| public function setAuthorizationServer(AuthorizationServer $server) |
| { |
- | $this->server = $server; |
+ | $this->server = $server; |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
@@ -408,47 +408,47 @@
| |
| public function validateScopes($scopeParam = '', ClientEntity $client, $redirectUri = null) |
| { |
- | $scopesList = explode($this->server->getScopeDelimiter(), $scopeParam); |
+ | $scopesList = explode($this->server->getScopeDelimiter(), $scopeParam); |
| |
- | for ($i = 0; $i < count($scopesList); $i++) { |
- | $scopesList[$i] = trim($scopesList[$i]); |
- | if ($scopesList[$i] === '') { |
- | unset($scopesList[$i]); |
- | } |
- | } |
+ | for ($i = 0; $i < count($scopesList); $i++) { |
+ | $scopesList[$i] = trim($scopesList[$i]); |
+ | if ($scopesList[$i] === '') { |
+ | unset($scopesList[$i]); |
+ | } |
+ | } |
| |
| if ( |
- | $this->server->scopeParamRequired() === true |
- | && $this->server->getDefaultScope() === null |
- | && count($scopesList) === 0 |
- | ) { |
- | throw new Exception\InvalidRequestException('scope'); |
- | } elseif (count($scopesList) === 0 && $this->server->getDefaultScope() !== null) { |
- | if (is_array($this->server->getDefaultScope())) { |
- | $scopesList = $this->server->getDefaultScope(); |
- | } else { |
- | $scopesList = [0 => $this->server->getDefaultScope()]; |
- | } |
- | } |
+ | $this->server->scopeParamRequired() === true |
+ | && $this->server->getDefaultScope() === null |
+ | && count($scopesList) === 0 |
+ | ) { |
+ | throw new Exception\InvalidRequestException('scope'); |
+ | } elseif (count($scopesList) === 0 && $this->server->getDefaultScope() !== null) { |
+ | if (is_array($this->server->getDefaultScope())) { |
+ | $scopesList = $this->server->getDefaultScope(); |
+ | } else { |
+ | $scopesList = [0 => $this->server->getDefaultScope()]; |
+ | } |
+ | } |
| |
- | $scopes = []; |
+ | $scopes = []; |
| |
- | foreach ($scopesList as $scopeItem) { |
- | $scope = $this->server->getScopeStorage()->get( |
- | $scopeItem, |
- | $this->getIdentifier(), |
- | $client->getId() |
- | ); |
+ | foreach ($scopesList as $scopeItem) { |
+ | $scope = $this->server->getScopeStorage()->get( |
+ | $scopeItem, |
+ | $this->getIdentifier(), |
+ | $client->getId() |
+ | ); |
| |
- | if (($scope instanceof ScopeEntity) === false) { |
- | throw new Exception\InvalidScopeException($scopeItem, $redirectUri); |
- | } |
+ | if (($scope instanceof ScopeEntity) === false) { |
+ | throw new Exception\InvalidScopeException($scopeItem, $redirectUri); |
+ | } |
| |
- | $scopes[$scope->getId()] = $scope; |
- | } |
+ | $scopes[$scope->getId()] = $scope; |
+ | } |
| |
- | return $scopes; |
- | } |
+ | return $scopes; |
+ | } |
| |
| |
| |
@@ -459,15 +459,15 @@
| |
| protected function formatScopes($unformated = []) |
| { |
- | $scopes = []; |
- | foreach ($unformated as $scope) { |
- | if ($scope instanceof ScopeEntity) { |
- | $scopes[$scope->getId()] = $scope; |
- | } |
- | } |
+ | $scopes = []; |
+ | foreach ($unformated as $scope) { |
+ | if ($scope instanceof ScopeEntity) { |
+ | $scopes[$scope->getId()] = $scope; |
+ | } |
+ | } |
| |
- | return $scopes; |
- | } |
+ | return $scopes; |
+ | } |
| } |
@@ -481,7 +481,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Grant/AuthCodeGrant.php.html b/master/Grant/AuthCodeGrant.php.html
index b21d4a9f..73f0fd8d 100644
--- a/master/Grant/AuthCodeGrant.php.html
+++ b/master/Grant/AuthCodeGrant.php.html
@@ -67,7 +67,7 @@
100.00% |
- 15 / 15 |
+ 104 / 104 |
@@ -96,7 +96,7 @@
100.00% |
- 15 / 15 |
+ 104 / 104 |
@@ -138,7 +138,7 @@
100.00% |
- 6 / 6 |
+ 30 / 30 |
@@ -159,7 +159,7 @@
100.00% |
- 1 / 1 |
+ 14 / 14 |
@@ -180,7 +180,7 @@
100.00% |
- 6 / 6 |
+ 58 / 58 |
@@ -272,56 +272,56 @@
| public function checkAuthorizeParams() |
| { |
| |
- | $clientId = $this->server->getRequest()->query->get('client_id', null); |
- | if (is_null($clientId)) { |
- | throw new Exception\InvalidRequestException('client_id'); |
- | } |
+ | $clientId = $this->server->getRequest()->query->get('client_id', null); |
+ | if (is_null($clientId)) { |
+ | throw new Exception\InvalidRequestException('client_id'); |
+ | } |
| |
- | $redirectUri = $this->server->getRequest()->query->get('redirect_uri', null); |
- | if (is_null($redirectUri)) { |
- | throw new Exception\InvalidRequestException('redirect_uri'); |
- | } |
+ | $redirectUri = $this->server->getRequest()->query->get('redirect_uri', null); |
+ | if (is_null($redirectUri)) { |
+ | throw new Exception\InvalidRequestException('redirect_uri'); |
+ | } |
| |
| |
| $client = $this->server->getClientStorage()->get( |
- | $clientId, |
+ | $clientId, |
| null, |
- | $redirectUri, |
+ | $redirectUri, |
| $this->getIdentifier() |
- | ); |
+ | ); |
| |
| if (($client instanceof ClientEntity) === false) { |
- | $this->server->getEventEmitter()->emit(new Event\ClientAuthenticationFailedEvent($this->server->getRequest())); |
- | throw new Exception\InvalidClientException(); |
- | } |
+ | $this->server->getEventEmitter()->emit(new Event\ClientAuthenticationFailedEvent($this->server->getRequest())); |
+ | throw new Exception\InvalidClientException(); |
+ | } |
| |
- | $state = $this->server->getRequest()->query->get('state', null); |
- | if ($this->server->stateParamRequired() === true && is_null($state)) { |
- | throw new Exception\InvalidRequestException('state', $redirectUri); |
- | } |
+ | $state = $this->server->getRequest()->query->get('state', null); |
+ | if ($this->server->stateParamRequired() === true && is_null($state)) { |
+ | throw new Exception\InvalidRequestException('state', $redirectUri); |
+ | } |
| |
- | $responseType = $this->server->getRequest()->query->get('response_type', null); |
- | if (is_null($responseType)) { |
- | throw new Exception\InvalidRequestException('response_type', $redirectUri); |
- | } |
+ | $responseType = $this->server->getRequest()->query->get('response_type', null); |
+ | if (is_null($responseType)) { |
+ | throw new Exception\InvalidRequestException('response_type', $redirectUri); |
+ | } |
| |
| |
- | if (!in_array($responseType, $this->server->getResponseTypes())) { |
- | throw new Exception\UnsupportedResponseTypeException($responseType, $redirectUri); |
- | } |
+ | if (!in_array($responseType, $this->server->getResponseTypes())) { |
+ | throw new Exception\UnsupportedResponseTypeException($responseType, $redirectUri); |
+ | } |
| |
| |
- | $scopeParam = $this->server->getRequest()->query->get('scope', ''); |
- | $scopes = $this->validateScopes($scopeParam, $client, $redirectUri); |
+ | $scopeParam = $this->server->getRequest()->query->get('scope', ''); |
+ | $scopes = $this->validateScopes($scopeParam, $client, $redirectUri); |
| |
| return [ |
- | 'client' => $client, |
- | 'redirect_uri' => $redirectUri, |
- | 'state' => $state, |
- | 'response_type' => $responseType, |
+ | 'client' => $client, |
+ | 'redirect_uri' => $redirectUri, |
+ | 'state' => $state, |
+ | 'response_type' => $responseType, |
| 'scopes' => $scopes |
| ]; |
- | } |
+ | } |
| |
| |
| |
@@ -335,26 +335,26 @@
| public function newAuthorizeRequest($type, $typeId, $authParams = []) |
| { |
| |
- | $session = new SessionEntity($this->server); |
- | $session->setOwner($type, $typeId); |
- | $session->associateClient($authParams['client']); |
- | $session->save(); |
+ | $session = new SessionEntity($this->server); |
+ | $session->setOwner($type, $typeId); |
+ | $session->associateClient($authParams['client']); |
+ | $session->save(); |
| |
| |
- | $authCode = new AuthCodeEntity($this->server); |
- | $authCode->setId(SecureKey::generate()); |
- | $authCode->setRedirectUri($authParams['redirect_uri']); |
- | $authCode->setExpireTime(time() + $this->authTokenTTL); |
+ | $authCode = new AuthCodeEntity($this->server); |
+ | $authCode->setId(SecureKey::generate()); |
+ | $authCode->setRedirectUri($authParams['redirect_uri']); |
+ | $authCode->setExpireTime(time() + $this->authTokenTTL); |
| |
| foreach ($authParams['scopes'] as $scope) { |
- | $authCode->associateScope($scope); |
- | } |
+ | $authCode->associateScope($scope); |
+ | } |
| |
- | $authCode->setSession($session); |
- | $authCode->save(); |
+ | $authCode->setSession($session); |
+ | $authCode->save(); |
| |
- | return $authCode->generateRedirectUri($authParams['state']); |
- | } |
+ | return $authCode->generateRedirectUri($authParams['state']); |
+ | } |
| |
| |
| |
@@ -366,100 +366,100 @@
| public function completeFlow() |
| { |
| |
- | $clientId = $this->server->getRequest()->request->get('client_id', $this->server->getRequest()->getUser()); |
- | if (is_null($clientId)) { |
- | throw new Exception\InvalidRequestException('client_id'); |
- | } |
+ | $clientId = $this->server->getRequest()->request->get('client_id', $this->server->getRequest()->getUser()); |
+ | if (is_null($clientId)) { |
+ | throw new Exception\InvalidRequestException('client_id'); |
+ | } |
| |
- | $clientSecret = $this->server->getRequest()->request->get('client_secret', |
- | $this->server->getRequest()->getPassword()); |
- | if (is_null($clientSecret)) { |
- | throw new Exception\InvalidRequestException('client_secret'); |
- | } |
+ | $clientSecret = $this->server->getRequest()->request->get('client_secret', |
+ | $this->server->getRequest()->getPassword()); |
+ | if (is_null($clientSecret)) { |
+ | throw new Exception\InvalidRequestException('client_secret'); |
+ | } |
| |
- | $redirectUri = $this->server->getRequest()->request->get('redirect_uri', null); |
- | if (is_null($redirectUri)) { |
- | throw new Exception\InvalidRequestException('redirect_uri'); |
- | } |
+ | $redirectUri = $this->server->getRequest()->request->get('redirect_uri', null); |
+ | if (is_null($redirectUri)) { |
+ | throw new Exception\InvalidRequestException('redirect_uri'); |
+ | } |
| |
| |
| $client = $this->server->getClientStorage()->get( |
- | $clientId, |
- | $clientSecret, |
- | $redirectUri, |
+ | $clientId, |
+ | $clientSecret, |
+ | $redirectUri, |
| $this->getIdentifier() |
- | ); |
+ | ); |
| |
| if (($client instanceof ClientEntity) === false) { |
- | $this->server->getEventEmitter()->emit(new Event\ClientAuthenticationFailedEvent($this->server->getRequest())); |
- | throw new Exception\InvalidClientException(); |
- | } |
+ | $this->server->getEventEmitter()->emit(new Event\ClientAuthenticationFailedEvent($this->server->getRequest())); |
+ | throw new Exception\InvalidClientException(); |
+ | } |
| |
| |
- | $authCode = $this->server->getRequest()->request->get('code', null); |
- | if (is_null($authCode)) { |
- | throw new Exception\InvalidRequestException('code'); |
- | } |
+ | $authCode = $this->server->getRequest()->request->get('code', null); |
+ | if (is_null($authCode)) { |
+ | throw new Exception\InvalidRequestException('code'); |
+ | } |
| |
- | $code = $this->server->getAuthCodeStorage()->get($authCode); |
+ | $code = $this->server->getAuthCodeStorage()->get($authCode); |
| if (($code instanceof AuthCodeEntity) === false) { |
- | throw new Exception\InvalidRequestException('code'); |
- | } |
+ | throw new Exception\InvalidRequestException('code'); |
+ | } |
| |
| |
- | if ($code->isExpired() === true) { |
- | throw new Exception\InvalidRequestException('code'); |
- | } |
+ | if ($code->isExpired() === true) { |
+ | throw new Exception\InvalidRequestException('code'); |
+ | } |
| |
| |
- | if ($code->getRedirectUri() !== $redirectUri) { |
- | throw new Exception\InvalidRequestException('redirect_uri'); |
- | } |
+ | if ($code->getRedirectUri() !== $redirectUri) { |
+ | throw new Exception\InvalidRequestException('redirect_uri'); |
+ | } |
| |
- | $session = $code->getSession(); |
- | $session->associateClient($client); |
+ | $session = $code->getSession(); |
+ | $session->associateClient($client); |
| |
- | $authCodeScopes = $code->getScopes(); |
+ | $authCodeScopes = $code->getScopes(); |
| |
| |
- | $accessToken = new AccessTokenEntity($this->server); |
- | $accessToken->setId(SecureKey::generate()); |
- | $accessToken->setExpireTime($this->getAccessTokenTTL() + time()); |
+ | $accessToken = new AccessTokenEntity($this->server); |
+ | $accessToken->setId(SecureKey::generate()); |
+ | $accessToken->setExpireTime($this->getAccessTokenTTL() + time()); |
| |
- | foreach ($authCodeScopes as $authCodeScope) { |
- | $session->associateScope($authCodeScope); |
- | } |
+ | foreach ($authCodeScopes as $authCodeScope) { |
+ | $session->associateScope($authCodeScope); |
+ | } |
| |
| foreach ($session->getScopes() as $scope) { |
- | $accessToken->associateScope($scope); |
- | } |
+ | $accessToken->associateScope($scope); |
+ | } |
| |
- | $this->server->getTokenType()->setSession($session); |
- | $this->server->getTokenType()->setParam('access_token', $accessToken->getId()); |
- | $this->server->getTokenType()->setParam('expires_in', $this->getAccessTokenTTL()); |
+ | $this->server->getTokenType()->setSession($session); |
+ | $this->server->getTokenType()->setParam('access_token', $accessToken->getId()); |
+ | $this->server->getTokenType()->setParam('expires_in', $this->getAccessTokenTTL()); |
| |
| |
- | if ($this->server->hasGrantType('refresh_token')) { |
- | $refreshToken = new RefreshTokenEntity($this->server); |
- | $refreshToken->setId(SecureKey::generate()); |
- | $refreshToken->setExpireTime($this->server->getGrantType('refresh_token')->getRefreshTokenTTL() + time()); |
- | $this->server->getTokenType()->setParam('refresh_token', $refreshToken->getId()); |
- | } |
+ | if ($this->server->hasGrantType('refresh_token')) { |
+ | $refreshToken = new RefreshTokenEntity($this->server); |
+ | $refreshToken->setId(SecureKey::generate()); |
+ | $refreshToken->setExpireTime($this->server->getGrantType('refresh_token')->getRefreshTokenTTL() + time()); |
+ | $this->server->getTokenType()->setParam('refresh_token', $refreshToken->getId()); |
+ | } |
| |
| |
- | $code->expire(); |
+ | $code->expire(); |
| |
| |
- | $accessToken->setSession($session); |
- | $accessToken->save(); |
+ | $accessToken->setSession($session); |
+ | $accessToken->save(); |
| |
- | if (isset($refreshToken) && $this->server->hasGrantType('refresh_token')) { |
- | $refreshToken->setAccessToken($accessToken); |
- | $refreshToken->save(); |
- | } |
+ | if (isset($refreshToken) && $this->server->hasGrantType('refresh_token')) { |
+ | $refreshToken->setAccessToken($accessToken); |
+ | $refreshToken->save(); |
+ | } |
| |
- | return $this->server->getTokenType()->generateResponse(); |
- | } |
+ | return $this->server->getTokenType()->generateResponse(); |
+ | } |
| } |
@@ -473,7 +473,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Grant/ClientCredentialsGrant.php.html b/master/Grant/ClientCredentialsGrant.php.html
index 44d2a4fa..3650e9d7 100644
--- a/master/Grant/ClientCredentialsGrant.php.html
+++ b/master/Grant/ClientCredentialsGrant.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 72.73% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 72.73% |
- 8 / 11 |
+ 100.00% |
+ 37 / 37 |
| | |
- ClientCredentialsGrant |
-
-
- 0.00% covered (danger)
+ ClientCredentialsGrant |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 6.73 |
-
-
- 72.73% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 6 |
+
+
+ 100.00% covered (success)
|
- 72.73% |
- 8 / 11 |
+ 100.00% |
+ 37 / 37 |
| | |
- completeFlow() |
-
-
- 0.00% covered (danger)
+ completeFlow() |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 6.73 |
-
-
- 72.73% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 6 |
+
+
+ 100.00% covered (success)
|
- 72.73% |
- 8 / 11 |
+ 100.00% |
+ 37 / 37 |
| |
@@ -188,64 +188,64 @@
| public function completeFlow() |
| { |
| |
- | $clientId = $this->server->getRequest()->request->get('client_id', $this->server->getRequest()->getUser()); |
- | if (is_null($clientId)) { |
- | throw new Exception\InvalidRequestException('client_id'); |
- | } |
+ | $clientId = $this->server->getRequest()->request->get('client_id', $this->server->getRequest()->getUser()); |
+ | if (is_null($clientId)) { |
+ | throw new Exception\InvalidRequestException('client_id'); |
+ | } |
| |
- | $clientSecret = $this->server->getRequest()->request->get('client_secret', |
- | $this->server->getRequest()->getPassword()); |
- | if (is_null($clientSecret)) { |
- | throw new Exception\InvalidRequestException('client_secret'); |
- | } |
+ | $clientSecret = $this->server->getRequest()->request->get('client_secret', |
+ | $this->server->getRequest()->getPassword()); |
+ | if (is_null($clientSecret)) { |
+ | throw new Exception\InvalidRequestException('client_secret'); |
+ | } |
| |
| |
| $client = $this->server->getClientStorage()->get( |
- | $clientId, |
- | $clientSecret, |
+ | $clientId, |
+ | $clientSecret, |
| null, |
| $this->getIdentifier() |
- | ); |
+ | ); |
| |
| if (($client instanceof ClientEntity) === false) { |
- | $this->server->getEventEmitter()->emit(new Event\ClientAuthenticationFailedEvent($this->server->getRequest())); |
- | throw new Exception\InvalidClientException(); |
- | } |
+ | $this->server->getEventEmitter()->emit(new Event\ClientAuthenticationFailedEvent($this->server->getRequest())); |
+ | throw new Exception\InvalidClientException(); |
+ | } |
| |
| |
- | $scopeParam = $this->server->getRequest()->request->get('scope', ''); |
- | $scopes = $this->validateScopes($scopeParam, $client); |
+ | $scopeParam = $this->server->getRequest()->request->get('scope', ''); |
+ | $scopes = $this->validateScopes($scopeParam, $client); |
| |
| |
- | $session = new SessionEntity($this->server); |
- | $session->setOwner('client', $client->getId()); |
- | $session->associateClient($client); |
+ | $session = new SessionEntity($this->server); |
+ | $session->setOwner('client', $client->getId()); |
+ | $session->associateClient($client); |
| |
| |
- | $accessToken = new AccessTokenEntity($this->server); |
- | $accessToken->setId(SecureKey::generate()); |
- | $accessToken->setExpireTime($this->getAccessTokenTTL() + time()); |
+ | $accessToken = new AccessTokenEntity($this->server); |
+ | $accessToken->setId(SecureKey::generate()); |
+ | $accessToken->setExpireTime($this->getAccessTokenTTL() + time()); |
| |
| |
- | foreach ($scopes as $scope) { |
- | $session->associateScope($scope); |
- | } |
+ | foreach ($scopes as $scope) { |
+ | $session->associateScope($scope); |
+ | } |
| |
| foreach ($session->getScopes() as $scope) { |
- | $accessToken->associateScope($scope); |
- | } |
+ | $accessToken->associateScope($scope); |
+ | } |
| |
| |
- | $session->save(); |
- | $accessToken->setSession($session); |
- | $accessToken->save(); |
+ | $session->save(); |
+ | $accessToken->setSession($session); |
+ | $accessToken->save(); |
| |
- | $this->server->getTokenType()->setSession($session); |
- | $this->server->getTokenType()->setParam('access_token', $accessToken->getId()); |
- | $this->server->getTokenType()->setParam('expires_in', $this->getAccessTokenTTL()); |
+ | $this->server->getTokenType()->setSession($session); |
+ | $this->server->getTokenType()->setParam('access_token', $accessToken->getId()); |
+ | $this->server->getTokenType()->setParam('expires_in', $this->getAccessTokenTTL()); |
| |
- | return $this->server->getTokenType()->generateResponse(); |
- | } |
+ | return $this->server->getTokenType()->generateResponse(); |
+ | } |
| } |
@@ -259,7 +259,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Grant/GrantTypeInterface.php.html b/master/Grant/GrantTypeInterface.php.html
index bec6b34d..59652a69 100644
--- a/master/Grant/GrantTypeInterface.php.html
+++ b/master/Grant/GrantTypeInterface.php.html
@@ -131,7 +131,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Grant/PasswordGrant.php.html b/master/Grant/PasswordGrant.php.html
index 3e527759..07ffa2f1 100644
--- a/master/Grant/PasswordGrant.php.html
+++ b/master/Grant/PasswordGrant.php.html
@@ -42,61 +42,61 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 66.67% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 66.67% |
- 2 / 3 |
- CRAP |
-
-
- 76.92% covered (warning)
+ 100.00% |
+ 3 / 3 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 76.92% |
- 10 / 13 |
+ 100.00% |
+ 62 / 62 |
| | |
- PasswordGrant |
-
-
- 0.00% covered (danger)
+ PasswordGrant |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 66.67% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 66.67% |
- 2 / 3 |
- 17.77 |
-
-
- 76.92% covered (warning)
+ 100.00% |
+ 3 / 3 |
+ 15 |
+
+
+ 100.00% covered (success)
|
- 76.92% |
- 10 / 13 |
+ 100.00% |
+ 62 / 62 |
| | |
@@ -117,7 +117,7 @@
100.00% |
- 1 / 1 |
+ 2 / 2 |
@@ -138,28 +138,28 @@
100.00% |
- 1 / 1 |
+ 3 / 3 |
- completeFlow() |
-
-
- 0.00% covered (danger)
+ completeFlow() |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 13.45 |
-
-
- 72.73% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 11 |
+
+
+ 100.00% covered (success)
|
- 72.73% |
- 8 / 11 |
+ 100.00% |
+ 57 / 57 |
| |
@@ -231,7 +231,7 @@
| public function setVerifyCredentialsCallback(callable $callback) |
| { |
| $this->callback = $callback; |
- | } |
+ | } |
| |
| |
| |
@@ -242,12 +242,12 @@
| |
| protected function getVerifyCredentialsCallback() |
| { |
- | if (is_null($this->callback) || !is_callable($this->callback)) { |
- | throw new Exception\ServerErrorException('Null or non-callable callback set on Password grant'); |
- | } |
+ | if (is_null($this->callback) || !is_callable($this->callback)) { |
+ | throw new Exception\ServerErrorException('Null or non-callable callback set on Password grant'); |
+ | } |
| |
| return $this->callback; |
- | } |
+ | } |
| |
| |
| |
@@ -259,95 +259,95 @@
| public function completeFlow() |
| { |
| |
- | $clientId = $this->server->getRequest()->request->get('client_id', $this->server->getRequest()->getUser()); |
- | if (is_null($clientId)) { |
- | throw new Exception\InvalidRequestException('client_id'); |
- | } |
+ | $clientId = $this->server->getRequest()->request->get('client_id', $this->server->getRequest()->getUser()); |
+ | if (is_null($clientId)) { |
+ | throw new Exception\InvalidRequestException('client_id'); |
+ | } |
| |
- | $clientSecret = $this->server->getRequest()->request->get('client_secret', |
- | $this->server->getRequest()->getPassword()); |
- | if (is_null($clientSecret)) { |
- | throw new Exception\InvalidRequestException('client_secret'); |
- | } |
+ | $clientSecret = $this->server->getRequest()->request->get('client_secret', |
+ | $this->server->getRequest()->getPassword()); |
+ | if (is_null($clientSecret)) { |
+ | throw new Exception\InvalidRequestException('client_secret'); |
+ | } |
| |
| |
| $client = $this->server->getClientStorage()->get( |
- | $clientId, |
- | $clientSecret, |
+ | $clientId, |
+ | $clientSecret, |
| null, |
| $this->getIdentifier() |
- | ); |
+ | ); |
| |
| if (($client instanceof ClientEntity) === false) { |
- | $this->server->getEventEmitter()->emit(new Event\ClientAuthenticationFailedEvent($this->server->getRequest())); |
- | throw new Exception\InvalidClientException(); |
- | } |
+ | $this->server->getEventEmitter()->emit(new Event\ClientAuthenticationFailedEvent($this->server->getRequest())); |
+ | throw new Exception\InvalidClientException(); |
+ | } |
| |
- | $username = $this->server->getRequest()->request->get('username', null); |
- | if (is_null($username)) { |
- | throw new Exception\InvalidRequestException('username'); |
- | } |
+ | $username = $this->server->getRequest()->request->get('username', null); |
+ | if (is_null($username)) { |
+ | throw new Exception\InvalidRequestException('username'); |
+ | } |
| |
- | $password = $this->server->getRequest()->request->get('password', null); |
- | if (is_null($password)) { |
- | throw new Exception\InvalidRequestException('password'); |
- | } |
+ | $password = $this->server->getRequest()->request->get('password', null); |
+ | if (is_null($password)) { |
+ | throw new Exception\InvalidRequestException('password'); |
+ | } |
| |
| |
- | $userId = call_user_func($this->getVerifyCredentialsCallback(), $username, $password); |
+ | $userId = call_user_func($this->getVerifyCredentialsCallback(), $username, $password); |
| |
| if ($userId === false) { |
- | $this->server->getEventEmitter()->emit(new Event\UserAuthenticationFailedEvent($this->server->getRequest())); |
- | throw new Exception\InvalidCredentialsException(); |
- | } |
+ | $this->server->getEventEmitter()->emit(new Event\UserAuthenticationFailedEvent($this->server->getRequest())); |
+ | throw new Exception\InvalidCredentialsException(); |
+ | } |
| |
| |
- | $scopeParam = $this->server->getRequest()->request->get('scope', ''); |
- | $scopes = $this->validateScopes($scopeParam, $client); |
+ | $scopeParam = $this->server->getRequest()->request->get('scope', ''); |
+ | $scopes = $this->validateScopes($scopeParam, $client); |
| |
| |
- | $session = new SessionEntity($this->server); |
- | $session->setOwner('user', $userId); |
- | $session->associateClient($client); |
+ | $session = new SessionEntity($this->server); |
+ | $session->setOwner('user', $userId); |
+ | $session->associateClient($client); |
| |
| |
- | $accessToken = new AccessTokenEntity($this->server); |
- | $accessToken->setId(SecureKey::generate()); |
- | $accessToken->setExpireTime($this->getAccessTokenTTL() + time()); |
+ | $accessToken = new AccessTokenEntity($this->server); |
+ | $accessToken->setId(SecureKey::generate()); |
+ | $accessToken->setExpireTime($this->getAccessTokenTTL() + time()); |
| |
| |
- | foreach ($scopes as $scope) { |
- | $session->associateScope($scope); |
- | } |
+ | foreach ($scopes as $scope) { |
+ | $session->associateScope($scope); |
+ | } |
| |
| foreach ($session->getScopes() as $scope) { |
- | $accessToken->associateScope($scope); |
- | } |
+ | $accessToken->associateScope($scope); |
+ | } |
| |
- | $this->server->getTokenType()->setSession($session); |
- | $this->server->getTokenType()->setParam('access_token', $accessToken->getId()); |
- | $this->server->getTokenType()->setParam('expires_in', $this->getAccessTokenTTL()); |
+ | $this->server->getTokenType()->setSession($session); |
+ | $this->server->getTokenType()->setParam('access_token', $accessToken->getId()); |
+ | $this->server->getTokenType()->setParam('expires_in', $this->getAccessTokenTTL()); |
| |
| |
- | if ($this->server->hasGrantType('refresh_token')) { |
- | $refreshToken = new RefreshTokenEntity($this->server); |
- | $refreshToken->setId(SecureKey::generate()); |
- | $refreshToken->setExpireTime($this->server->getGrantType('refresh_token')->getRefreshTokenTTL() + time()); |
- | $this->server->getTokenType()->setParam('refresh_token', $refreshToken->getId()); |
- | } |
+ | if ($this->server->hasGrantType('refresh_token')) { |
+ | $refreshToken = new RefreshTokenEntity($this->server); |
+ | $refreshToken->setId(SecureKey::generate()); |
+ | $refreshToken->setExpireTime($this->server->getGrantType('refresh_token')->getRefreshTokenTTL() + time()); |
+ | $this->server->getTokenType()->setParam('refresh_token', $refreshToken->getId()); |
+ | } |
| |
| |
- | $session->save(); |
- | $accessToken->setSession($session); |
- | $accessToken->save(); |
+ | $session->save(); |
+ | $accessToken->setSession($session); |
+ | $accessToken->save(); |
| |
- | if ($this->server->hasGrantType('refresh_token')) { |
- | $refreshToken->setAccessToken($accessToken); |
- | $refreshToken->save(); |
- | } |
+ | if ($this->server->hasGrantType('refresh_token')) { |
+ | $refreshToken->setAccessToken($accessToken); |
+ | $refreshToken->save(); |
+ | } |
| |
- | return $this->server->getTokenType()->generateResponse(); |
- | } |
+ | return $this->server->getTokenType()->generateResponse(); |
+ | } |
| } |
@@ -361,7 +361,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Grant/RefreshTokenGrant.php.html b/master/Grant/RefreshTokenGrant.php.html
index 5ab61d5d..25fdb257 100644
--- a/master/Grant/RefreshTokenGrant.php.html
+++ b/master/Grant/RefreshTokenGrant.php.html
@@ -67,7 +67,7 @@
100.00% |
- 19 / 19 |
+ 66 / 66 |
@@ -96,7 +96,7 @@
100.00% |
- 19 / 19 |
+ 66 / 66 |
@@ -201,7 +201,7 @@
100.00% |
- 13 / 13 |
+ 60 / 60 |
@@ -273,7 +273,7 @@
| public function getRefreshTokenTTL() |
| { |
| return $this->refreshTokenTTL; |
- | } |
+ | } |
| |
| |
| |
@@ -291,116 +291,116 @@
| |
| public function shouldRotateRefreshTokens() |
| { |
- | return $this->refreshTokenRotate; |
- | } |
+ | return $this->refreshTokenRotate; |
+ | } |
| |
| |
| |
| |
| public function completeFlow() |
| { |
- | $clientId = $this->server->getRequest()->request->get('client_id', $this->server->getRequest()->getUser()); |
- | if (is_null($clientId)) { |
- | throw new Exception\InvalidRequestException('client_id'); |
- | } |
+ | $clientId = $this->server->getRequest()->request->get('client_id', $this->server->getRequest()->getUser()); |
+ | if (is_null($clientId)) { |
+ | throw new Exception\InvalidRequestException('client_id'); |
+ | } |
| |
- | $clientSecret = $this->server->getRequest()->request->get('client_secret', |
- | $this->server->getRequest()->getPassword()); |
- | if (is_null($clientSecret)) { |
- | throw new Exception\InvalidRequestException('client_secret'); |
- | } |
+ | $clientSecret = $this->server->getRequest()->request->get('client_secret', |
+ | $this->server->getRequest()->getPassword()); |
+ | if (is_null($clientSecret)) { |
+ | throw new Exception\InvalidRequestException('client_secret'); |
+ | } |
| |
| |
- | $client = $this->server->getClientStorage()->get( |
- | $clientId, |
- | $clientSecret, |
- | null, |
- | $this->getIdentifier() |
- | ); |
+ | $client = $this->server->getClientStorage()->get( |
+ | $clientId, |
+ | $clientSecret, |
+ | null, |
+ | $this->getIdentifier() |
+ | ); |
| |
- | if (($client instanceof ClientEntity) === false) { |
- | $this->server->getEventEmitter()->emit(new Event\ClientAuthenticationFailedEvent($this->server->getRequest())); |
- | throw new Exception\InvalidClientException(); |
- | } |
+ | if (($client instanceof ClientEntity) === false) { |
+ | $this->server->getEventEmitter()->emit(new Event\ClientAuthenticationFailedEvent($this->server->getRequest())); |
+ | throw new Exception\InvalidClientException(); |
+ | } |
| |
- | $oldRefreshTokenParam = $this->server->getRequest()->request->get('refresh_token', null); |
- | if ($oldRefreshTokenParam === null) { |
- | throw new Exception\InvalidRequestException('refresh_token'); |
- | } |
+ | $oldRefreshTokenParam = $this->server->getRequest()->request->get('refresh_token', null); |
+ | if ($oldRefreshTokenParam === null) { |
+ | throw new Exception\InvalidRequestException('refresh_token'); |
+ | } |
| |
| |
- | $oldRefreshToken = $this->server->getRefreshTokenStorage()->get($oldRefreshTokenParam); |
+ | $oldRefreshToken = $this->server->getRefreshTokenStorage()->get($oldRefreshTokenParam); |
| |
- | if (($oldRefreshToken instanceof RefreshTokenEntity) === false) { |
- | throw new Exception\InvalidRefreshException(); |
- | } |
+ | if (($oldRefreshToken instanceof RefreshTokenEntity) === false) { |
+ | throw new Exception\InvalidRefreshException(); |
+ | } |
| |
| |
- | if ($oldRefreshToken->isExpired() === true) { |
- | throw new Exception\InvalidRefreshException(); |
- | } |
+ | if ($oldRefreshToken->isExpired() === true) { |
+ | throw new Exception\InvalidRefreshException(); |
+ | } |
| |
- | $oldAccessToken = $oldRefreshToken->getAccessToken(); |
+ | $oldAccessToken = $oldRefreshToken->getAccessToken(); |
| |
| |
- | $session = $oldAccessToken->getSession(); |
- | $scopes = $this->formatScopes($session->getScopes()); |
+ | $session = $oldAccessToken->getSession(); |
+ | $scopes = $this->formatScopes($session->getScopes()); |
| |
| |
- | $requestedScopesString = $this->server->getRequest()->request->get('scope', ''); |
- | $requestedScopes = $this->validateScopes($requestedScopesString, $client); |
+ | $requestedScopesString = $this->server->getRequest()->request->get('scope', ''); |
+ | $requestedScopes = $this->validateScopes($requestedScopesString, $client); |
| |
| |
- | if (count($requestedScopes) === 0) { |
- | $newScopes = $scopes; |
- | } else { |
+ | if (count($requestedScopes) === 0) { |
+ | $newScopes = $scopes; |
+ | } else { |
| |
| |
- | foreach ($requestedScopes as $requestedScope) { |
- | if (!isset($scopes[$requestedScope->getId()])) { |
- | throw new Exception\InvalidScopeException($requestedScope->getId()); |
- | } |
- | } |
+ | foreach ($requestedScopes as $requestedScope) { |
+ | if (!isset($scopes[$requestedScope->getId()])) { |
+ | throw new Exception\InvalidScopeException($requestedScope->getId()); |
+ | } |
+ | } |
| |
| $newScopes = $requestedScopes; |
- | } |
+ | } |
| |
| |
- | $newAccessToken = new AccessTokenEntity($this->server); |
- | $newAccessToken->setId(SecureKey::generate()); |
- | $newAccessToken->setExpireTime($this->getAccessTokenTTL() + time()); |
- | $newAccessToken->setSession($session); |
+ | $newAccessToken = new AccessTokenEntity($this->server); |
+ | $newAccessToken->setId(SecureKey::generate()); |
+ | $newAccessToken->setExpireTime($this->getAccessTokenTTL() + time()); |
+ | $newAccessToken->setSession($session); |
| |
- | foreach ($newScopes as $newScope) { |
- | $newAccessToken->associateScope($newScope); |
- | } |
+ | foreach ($newScopes as $newScope) { |
+ | $newAccessToken->associateScope($newScope); |
+ | } |
| |
| |
- | $oldAccessToken->expire(); |
- | $newAccessToken->save(); |
+ | $oldAccessToken->expire(); |
+ | $newAccessToken->save(); |
| |
- | $this->server->getTokenType()->setSession($session); |
- | $this->server->getTokenType()->setParam('access_token', $newAccessToken->getId()); |
- | $this->server->getTokenType()->setParam('expires_in', $this->getAccessTokenTTL()); |
+ | $this->server->getTokenType()->setSession($session); |
+ | $this->server->getTokenType()->setParam('access_token', $newAccessToken->getId()); |
+ | $this->server->getTokenType()->setParam('expires_in', $this->getAccessTokenTTL()); |
| |
- | if ($this->shouldRotateRefreshTokens()) { |
+ | if ($this->shouldRotateRefreshTokens()) { |
| |
- | $oldRefreshToken->expire(); |
+ | $oldRefreshToken->expire(); |
| |
| |
- | $newRefreshToken = new RefreshTokenEntity($this->server); |
- | $newRefreshToken->setId(SecureKey::generate()); |
- | $newRefreshToken->setExpireTime($this->getRefreshTokenTTL() + time()); |
- | $newRefreshToken->setAccessToken($newAccessToken); |
- | $newRefreshToken->save(); |
+ | $newRefreshToken = new RefreshTokenEntity($this->server); |
+ | $newRefreshToken->setId(SecureKey::generate()); |
+ | $newRefreshToken->setExpireTime($this->getRefreshTokenTTL() + time()); |
+ | $newRefreshToken->setAccessToken($newAccessToken); |
+ | $newRefreshToken->save(); |
| |
- | $this->server->getTokenType()->setParam('refresh_token', $newRefreshToken->getId()); |
- | } else { |
- | $this->server->getTokenType()->setParam('refresh_token', $oldRefreshToken->getId()); |
- | } |
+ | $this->server->getTokenType()->setParam('refresh_token', $newRefreshToken->getId()); |
+ | } else { |
+ | $this->server->getTokenType()->setParam('refresh_token', $oldRefreshToken->getId()); |
+ | } |
| |
- | return $this->server->getTokenType()->generateResponse(); |
- | } |
+ | return $this->server->getTokenType()->generateResponse(); |
+ | } |
| } |
@@ -414,7 +414,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Grant/dashboard.html b/master/Grant/dashboard.html
index c2600afb..e90edb30 100644
--- a/master/Grant/dashboard.html
+++ b/master/Grant/dashboard.html
@@ -59,8 +59,6 @@
- ClientCredentialsGrant | 72% |
- PasswordGrant | 76% |
@@ -77,8 +75,6 @@
- PasswordGrant | 17 |
- ClientCredentialsGrant | 6 |
@@ -116,8 +112,6 @@
- completeFlow | 72% |
- completeFlow | 72% |
@@ -134,8 +128,6 @@
- completeFlow | 13 |
- completeFlow | 6 |
@@ -145,7 +137,7 @@
@@ -166,7 +158,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,0,0,3], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,5], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -184,7 +176,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,0,0,19], "Method Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,21], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -235,7 +227,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[100,21,"AbstractGrant<\/a>"],[100,25,"AuthCodeGrant<\/a>"],[72.727272727273,6,"ClientCredentialsGrant<\/a>"],[76.923076923077,15,"PasswordGrant<\/a>"],[100,16,"RefreshTokenGrant<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[100,21,"AbstractGrant<\/a>"],[100,25,"AuthCodeGrant<\/a>"],[100,6,"ClientCredentialsGrant<\/a>"],[100,15,"PasswordGrant<\/a>"],[100,16,"RefreshTokenGrant<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -260,7 +252,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[100,1,"AbstractGrant::getIdentifier<\/a>"],[100,1,"AbstractGrant::setIdentifier<\/a>"],[100,1,"AbstractGrant::getResponseType<\/a>"],[100,2,"AbstractGrant::getAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAuthorizationServer<\/a>"],[100,11,"AbstractGrant::validateScopes<\/a>"],[100,3,"AbstractGrant::formatScopes<\/a>"],[100,1,"AuthCodeGrant::setAuthTokenTTL<\/a>"],[100,8,"AuthCodeGrant::checkAuthorizeParams<\/a>"],[100,2,"AuthCodeGrant::newAuthorizeRequest<\/a>"],[100,14,"AuthCodeGrant::completeFlow<\/a>"],[72.727272727273,6,"ClientCredentialsGrant::completeFlow<\/a>"],[100,1,"PasswordGrant::setVerifyCredentialsCallback<\/a>"],[100,3,"PasswordGrant::getVerifyCredentialsCallback<\/a>"],[72.727272727273,11,"PasswordGrant::completeFlow<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::getRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenRotation<\/a>"],[100,1,"RefreshTokenGrant::shouldRotateRefreshTokens<\/a>"],[100,12,"RefreshTokenGrant::completeFlow<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,1,"AbstractGrant::getIdentifier<\/a>"],[100,1,"AbstractGrant::setIdentifier<\/a>"],[100,1,"AbstractGrant::getResponseType<\/a>"],[100,2,"AbstractGrant::getAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAuthorizationServer<\/a>"],[100,11,"AbstractGrant::validateScopes<\/a>"],[100,3,"AbstractGrant::formatScopes<\/a>"],[100,1,"AuthCodeGrant::setAuthTokenTTL<\/a>"],[100,8,"AuthCodeGrant::checkAuthorizeParams<\/a>"],[100,2,"AuthCodeGrant::newAuthorizeRequest<\/a>"],[100,14,"AuthCodeGrant::completeFlow<\/a>"],[100,6,"ClientCredentialsGrant::completeFlow<\/a>"],[100,1,"PasswordGrant::setVerifyCredentialsCallback<\/a>"],[100,3,"PasswordGrant::getVerifyCredentialsCallback<\/a>"],[100,11,"PasswordGrant::completeFlow<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::getRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenRotation<\/a>"],[100,1,"RefreshTokenGrant::shouldRotateRefreshTokens<\/a>"],[100,12,"RefreshTokenGrant::completeFlow<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/Grant/index.html b/master/Grant/index.html
index 25dfd3ec..8626d66b 100644
--- a/master/Grant/index.html
+++ b/master/Grant/index.html
@@ -44,29 +44,29 @@
Total |
-
- 92.94% covered (success)
+
+ 100.00% covered (success)
|
- 92.94% |
- 79 / 85 |
+ 100.00% |
+ 317 / 317 |
-
- 90.48% covered (success)
+
+ 100.00% covered (success)
|
- 90.48% |
- 19 / 21 |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 21 / 21 |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 5 / 5 |
|
@@ -78,7 +78,7 @@
100.00% |
- 27 / 27 |
+ 48 / 48 |
100.00% covered (success)
@@ -106,7 +106,7 @@
|
100.00% |
- 15 / 15 |
+ 104 / 104 |
100.00% covered (success)
@@ -126,31 +126,31 @@
|
- ClientCredentialsGrant.php |
-
-
- 72.73% covered (warning)
+ ClientCredentialsGrant.php |
+
+
+ 100.00% covered (success)
|
- 72.73% |
- 8 / 11 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 37 / 37 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
@@ -167,31 +167,31 @@
- PasswordGrant.php |
-
-
- 76.92% covered (warning)
+ PasswordGrant.php |
+
+
+ 100.00% covered (success)
|
- 76.92% |
- 10 / 13 |
-
-
- 66.67% covered (warning)
+ 100.00% |
+ 62 / 62 |
+
+
+ 100.00% covered (success)
|
- 66.67% |
- 2 / 3 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 3 / 3 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
@@ -203,7 +203,7 @@
100.00% |
- 19 / 19 |
+ 66 / 66 |
diff --git a/master/ResourceServer.php.html b/master/ResourceServer.php.html
index cc993889..337b36e0 100644
--- a/master/ResourceServer.php.html
+++ b/master/ResourceServer.php.html
@@ -41,87 +41,87 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 80.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 80.00% |
- 4 / 5 |
- CRAP |
-
-
- 70.00% covered (warning)
+ 100.00% |
+ 5 / 5 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 70.00% |
- 14 / 20 |
+ 100.00% |
+ 29 / 29 |
| | |
- ResourceServer |
-
-
- 0.00% covered (danger)
+ ResourceServer |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 80.00% covered (warning)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 80.00% |
- 4 / 5 |
- 15.89 |
-
-
- 70.00% covered (warning)
+ 100.00% |
+ 5 / 5 |
+ 12 |
+
+
+ 100.00% covered (success)
|
- 70.00% |
- 14 / 20 |
+ 100.00% |
+ 29 / 29 |
| | |
- __construct(
+ | __construct(
SessionInterface $sessionStorage,
AccessTokenInterface $accessTokenStorage,
ClientInterface $clientStorage,
ScopeInterface $scopeStorage
) |
-
-
- 0.00% covered (danger)
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.42 |
-
-
- 25.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 25.00% |
- 2 / 8 |
+ 100.00% |
+ 7 / 7 |
| |
@@ -184,7 +184,7 @@
100.00% |
- 4 / 4 |
+ 9 / 9 |
@@ -205,7 +205,7 @@
100.00% |
- 5 / 5 |
+ 10 / 10 |
@@ -270,18 +270,18 @@
| ClientInterface $clientStorage, |
| ScopeInterface $scopeStorage |
| ) { |
- | $this->setSessionStorage($sessionStorage); |
- | $this->setAccessTokenStorage($accessTokenStorage); |
- | $this->setClientStorage($clientStorage); |
- | $this->setScopeStorage($scopeStorage); |
+ | $this->setSessionStorage($sessionStorage); |
+ | $this->setAccessTokenStorage($accessTokenStorage); |
+ | $this->setClientStorage($clientStorage); |
+ | $this->setScopeStorage($scopeStorage); |
| |
| |
- | $this->setTokenType(new Bearer()); |
+ | $this->setTokenType(new Bearer()); |
| |
- | parent::__construct(); |
+ | parent::__construct(); |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -295,7 +295,7 @@
| $this->tokenKey = $key; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -305,7 +305,7 @@
| public function getAccessToken() |
| { |
| return $this->accessToken; |
- | } |
+ | } |
| |
| |
| |
@@ -321,25 +321,25 @@
| public function isValidRequest($headerOnly = true, $accessToken = null) |
| { |
| $accessTokenString = ($accessToken !== null) |
- | ? $accessToken |
- | : $this->determineAccessToken($headerOnly); |
+ | ? $accessToken |
+ | : $this->determineAccessToken($headerOnly); |
| |
| |
- | $this->accessToken = $this->getAccessTokenStorage()->get($accessTokenString); |
+ | $this->accessToken = $this->getAccessTokenStorage()->get($accessTokenString); |
| |
| |
| if (!$this->accessToken instanceof AccessTokenEntity) { |
- | throw new AccessDeniedException(); |
- | } |
+ | throw new AccessDeniedException(); |
+ | } |
| |
| |
| |
- | if ($this->accessToken->isExpired() === true) { |
- | throw new AccessDeniedException(); |
- | } |
+ | if ($this->accessToken->isExpired() === true) { |
+ | throw new AccessDeniedException(); |
+ | } |
| |
| return true; |
- | } |
+ | } |
| |
| |
| |
@@ -352,20 +352,20 @@
| |
| public function determineAccessToken($headerOnly = false) |
| { |
- | if ($this->getRequest()->headers->get('Authorization') !== null) { |
- | $accessToken = $this->getTokenType()->determineAccessTokenInHeader($this->getRequest()); |
- | } elseif ($headerOnly === false) { |
- | $accessToken = ($this->getRequest()->server->get('REQUEST_METHOD') === 'GET') |
- | ? $this->getRequest()->query->get($this->tokenKey) |
- | : $this->getRequest()->request->get($this->tokenKey); |
- | } |
+ | if ($this->getRequest()->headers->get('Authorization') !== null) { |
+ | $accessToken = $this->getTokenType()->determineAccessTokenInHeader($this->getRequest()); |
+ | } elseif ($headerOnly === false) { |
+ | $accessToken = ($this->getRequest()->server->get('REQUEST_METHOD') === 'GET') |
+ | ? $this->getRequest()->query->get($this->tokenKey) |
+ | : $this->getRequest()->request->get($this->tokenKey); |
+ | } |
| |
| if (empty($accessToken)) { |
- | throw new InvalidRequestException('access token'); |
- | } |
+ | throw new InvalidRequestException('access token'); |
+ | } |
| |
| return $accessToken; |
- | } |
+ | } |
| } |
@@ -379,7 +379,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Storage/AbstractStorage.php.html b/master/Storage/AbstractStorage.php.html
index b838f5b0..e3c3f2ef 100644
--- a/master/Storage/AbstractStorage.php.html
+++ b/master/Storage/AbstractStorage.php.html
@@ -67,7 +67,7 @@
|
100.00% |
- 4 / 4 |
+ 3 / 3 |
@@ -96,7 +96,7 @@
100.00% |
- 4 / 4 |
+ 3 / 3 |
@@ -117,7 +117,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -185,7 +185,7 @@
| $this->server = $server; |
| |
| return $this; |
- | } |
+ | } |
| |
| |
| |
@@ -195,7 +195,7 @@
| protected function getServer() |
| { |
| return $this->server; |
- | } |
+ | } |
| } |
@@ -209,7 +209,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Storage/AccessTokenInterface.php.html b/master/Storage/AccessTokenInterface.php.html
index 35bd1e05..b2f3ff4f 100644
--- a/master/Storage/AccessTokenInterface.php.html
+++ b/master/Storage/AccessTokenInterface.php.html
@@ -141,7 +141,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Storage/AuthCodeInterface.php.html b/master/Storage/AuthCodeInterface.php.html
index b4efa65d..4de093da 100644
--- a/master/Storage/AuthCodeInterface.php.html
+++ b/master/Storage/AuthCodeInterface.php.html
@@ -142,7 +142,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Storage/ClientInterface.php.html b/master/Storage/ClientInterface.php.html
index ab166d3e..04f853b5 100644
--- a/master/Storage/ClientInterface.php.html
+++ b/master/Storage/ClientInterface.php.html
@@ -113,7 +113,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Storage/MacTokenInterface.php.html b/master/Storage/MacTokenInterface.php.html
index 8fc6bfd5..9d36be4f 100644
--- a/master/Storage/MacTokenInterface.php.html
+++ b/master/Storage/MacTokenInterface.php.html
@@ -106,7 +106,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Storage/RefreshTokenInterface.php.html b/master/Storage/RefreshTokenInterface.php.html
index 11027170..9fa538e1 100644
--- a/master/Storage/RefreshTokenInterface.php.html
+++ b/master/Storage/RefreshTokenInterface.php.html
@@ -121,7 +121,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Storage/ScopeInterface.php.html b/master/Storage/ScopeInterface.php.html
index 6eb6cd81..656d06cf 100644
--- a/master/Storage/ScopeInterface.php.html
+++ b/master/Storage/ScopeInterface.php.html
@@ -101,7 +101,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Storage/SessionInterface.php.html b/master/Storage/SessionInterface.php.html
index b09ef387..23de1867 100644
--- a/master/Storage/SessionInterface.php.html
+++ b/master/Storage/SessionInterface.php.html
@@ -144,7 +144,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Storage/StorageInterface.php.html b/master/Storage/StorageInterface.php.html
index 1161f5d1..9ee276f0 100644
--- a/master/Storage/StorageInterface.php.html
+++ b/master/Storage/StorageInterface.php.html
@@ -99,7 +99,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Storage/dashboard.html b/master/Storage/dashboard.html
index f7cc6bcf..ee3e7ae5 100644
--- a/master/Storage/dashboard.html
+++ b/master/Storage/dashboard.html
@@ -137,7 +137,7 @@
diff --git a/master/Storage/index.html b/master/Storage/index.html
index daa17674..8610463d 100644
--- a/master/Storage/index.html
+++ b/master/Storage/index.html
@@ -50,7 +50,7 @@
100.00% |
- 4 / 4 |
+ 3 / 3 |
100.00% covered (success)
@@ -78,7 +78,7 @@
|
100.00% |
- 4 / 4 |
+ 3 / 3 |
diff --git a/master/TokenType/AbstractTokenType.php.html b/master/TokenType/AbstractTokenType.php.html
index 11dd9da6..4a35a077 100644
--- a/master/TokenType/AbstractTokenType.php.html
+++ b/master/TokenType/AbstractTokenType.php.html
@@ -58,7 +58,7 @@
|
100.00% |
- 2 / 2 |
+ 4 / 4 |
CRAP |
|
100.00% |
- 6 / 6 |
+ 7 / 7 |
@@ -96,7 +96,7 @@
100.00% |
- 6 / 6 |
+ 7 / 7 |
@@ -117,7 +117,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -138,7 +138,7 @@
100.00% |
- 3 / 3 |
+ 2 / 2 |
@@ -152,9 +152,14 @@
100.00% |
1 / 1 |
1 |
- |
- |
- |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 2 / 2 |
@@ -168,9 +173,14 @@
100.00% |
1 / 1 |
2 |
- |
- |
- |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 1 / 1 |
@@ -222,36 +232,36 @@
| |
| public function setServer(AbstractServer $server) |
| { |
- | $this->server = $server; |
+ | $this->server = $server; |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
| |
| public function setSession(SessionEntity $session) |
| { |
- | $this->session = $session; |
+ | $this->session = $session; |
| |
- | return $this; |
- | } |
+ | return $this; |
+ | } |
| |
| |
| |
| |
| public function setParam($key, $value) |
| { |
- | $this->response[$key] = $value; |
- | } |
+ | $this->response[$key] = $value; |
+ | } |
| |
| |
| |
| |
| public function getParam($key) |
| { |
- | return isset($this->response[$key]) ? $this->response[$key] : null; |
- | } |
+ | return isset($this->response[$key]) ? $this->response[$key] : null; |
+ | } |
| } |
@@ -265,7 +275,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/TokenType/Bearer.php.html b/master/TokenType/Bearer.php.html
index 61443bf0..1ed2dc7f 100644
--- a/master/TokenType/Bearer.php.html
+++ b/master/TokenType/Bearer.php.html
@@ -67,7 +67,7 @@
100.00% |
- 6 / 6 |
+ 11 / 11 |
@@ -96,7 +96,7 @@
100.00% |
- 6 / 6 |
+ 11 / 11 |
@@ -117,7 +117,7 @@
100.00% |
- 4 / 4 |
+ 8 / 8 |
@@ -138,7 +138,7 @@
100.00% |
- 2 / 2 |
+ 3 / 3 |
@@ -169,28 +169,28 @@
| public function generateResponse() |
| { |
| $return = [ |
- | 'access_token' => $this->getParam('access_token'), |
- | 'token_type' => 'Bearer', |
- | 'expires_in' => $this->getParam('expires_in'), |
- | ]; |
+ | 'access_token' => $this->getParam('access_token'), |
+ | 'token_type' => 'Bearer', |
+ | 'expires_in' => $this->getParam('expires_in'), |
+ | ]; |
| |
- | if (!is_null($this->getParam('refresh_token'))) { |
- | $return['refresh_token'] = $this->getParam('refresh_token'); |
- | } |
+ | if (!is_null($this->getParam('refresh_token'))) { |
+ | $return['refresh_token'] = $this->getParam('refresh_token'); |
+ | } |
| |
- | return $return; |
- | } |
+ | return $return; |
+ | } |
| |
| |
| |
| |
| public function determineAccessTokenInHeader(Request $request) |
| { |
- | $header = $request->headers->get('Authorization'); |
- | $accessToken = trim(preg_replace('/^(?:\s+)?Bearer\s/', '', $header)); |
+ | $header = $request->headers->get('Authorization'); |
+ | $accessToken = trim(preg_replace('/^(?:\s+)?Bearer\s/', '', $header)); |
| |
| return ($accessToken === 'Bearer') ? '' : $accessToken; |
- | } |
+ | } |
| } |
@@ -204,7 +204,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/TokenType/MAC.php.html b/master/TokenType/MAC.php.html
index e38e3ba2..b4798f1f 100644
--- a/master/TokenType/MAC.php.html
+++ b/master/TokenType/MAC.php.html
@@ -60,14 +60,14 @@
75.00% |
3 / 4 |
CRAP |
-
-
- 85.71% covered (warning)
+
+
+ 96.49% covered (success)
|
- 85.71% |
- 18 / 21 |
+ 96.49% |
+ 55 / 57 |
@@ -88,36 +88,36 @@
75.00% |
3 / 4 |
- 22.29 |
-
-
- 85.71% covered (warning)
+ 21 |
+
+
+ 96.49% covered (success)
|
- 85.71% |
- 18 / 21 |
+ 96.49% |
+ 55 / 57 |
|
- generateResponse() |
-
-
- 0.00% covered (danger)
+ generateResponse() |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 1.05 |
-
-
- 62.50% covered (warning)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 62.50% |
- 5 / 8 |
+ 100.00% |
+ 9 / 9 |
| |
@@ -138,7 +138,7 @@
100.00% |
- 2 / 2 |
+ 7 / 7 |
@@ -159,28 +159,28 @@
100.00% |
- 2 / 2 |
+ 8 / 8 |
- hash_equals($knownString, $userString) |
-
-
- 100.00% covered (success)
+ hash_equals($knownString, $userString) |
+
+
+ 0.00% covered (danger)
|
- 100.00% |
- 1 / 1 |
- 4 |
-
-
- 100.00% covered (success)
+ 0.00% |
+ 0 / 1 |
+ 4.13 |
+
+
+ 80.00% covered (warning)
|
- 100.00% |
- 1 / 1 |
+ 80.00% |
+ 8 / 10 |
| |
@@ -215,43 +215,43 @@
| |
| public function generateResponse() |
| { |
- | $macKey = SecureKey::generate(); |
- | $this->server->getMacStorage()->create($macKey, $this->getParam('access_token')); |
+ | $macKey = SecureKey::generate(); |
+ | $this->server->getMacStorage()->create($macKey, $this->getParam('access_token')); |
| |
| $response = [ |
| 'access_token' => $this->getParam('access_token'), |
| 'token_type' => 'mac', |
| 'expires_in' => $this->getParam('expires_in'), |
- | 'mac_key' => $macKey, |
+ | 'mac_key' => $macKey, |
| 'mac_algorithm' => 'hmac-sha-256', |
- | ]; |
+ | ]; |
| |
| return $response; |
- | } |
+ | } |
| |
| |
| |
| |
| public function determineAccessTokenInHeader(Request $request) |
| { |
- | if ($request->headers->has('Authorization') === false) { |
+ | if ($request->headers->has('Authorization') === false) { |
| return; |
- | } |
+ | } |
| |
- | $header = $request->headers->get('Authorization'); |
+ | $header = $request->headers->get('Authorization'); |
| |
- | if (substr($header, 0, 4) !== 'MAC ') { |
+ | if (substr($header, 0, 4) !== 'MAC ') { |
| return; |
- | } |
+ | } |
| |
| |
- | $paramsRaw = explode(',', substr($header, 4)); |
- | $params = new ParameterBag(); |
+ | $paramsRaw = explode(',', substr($header, 4)); |
+ | $params = new ParameterBag(); |
| |
| array_map(function ($param) use (&$params) { |
- | $param = trim($param); |
+ | $param = trim($param); |
| |
- | preg_match_all('/([a-zA-Z]*)="([\w=]*)"/', $param, $matches); |
+ | preg_match_all('/([a-zA-Z]*)="([\w=]*)"/', $param, $matches); |
| |
| |
| if (count($matches) !== 3) { |
@@ -259,56 +259,56 @@
| } |
| |
| |
- | $key = reset($matches[1]); |
- | $value = trim(reset($matches[2])); |
+ | $key = reset($matches[1]); |
+ | $value = trim(reset($matches[2])); |
| |
- | if (empty($value)) { |
+ | if (empty($value)) { |
| return; |
- | } |
+ | } |
| |
- | $params->set($key, $value); |
- | }, $paramsRaw); |
+ | $params->set($key, $value); |
+ | }, $paramsRaw); |
| |
| |
- | if ($params->has('id') === false || $params->has('ts') === false || $params->has('nonce') === false || $params->has('mac') === false) { |
+ | if ($params->has('id') === false || $params->has('ts') === false || $params->has('nonce') === false || $params->has('mac') === false) { |
| return; |
- | } |
+ | } |
| |
- | if ((int) $params->get('ts') !== time()) { |
+ | if ((int) $params->get('ts') !== time()) { |
| return; |
- | } |
+ | } |
| |
- | $accessToken = $params->get('id'); |
- | $timestamp = (int) $params->get('ts'); |
- | $nonce = $params->get('nonce'); |
- | $signature = $params->get('mac'); |
+ | $accessToken = $params->get('id'); |
+ | $timestamp = (int) $params->get('ts'); |
+ | $nonce = $params->get('nonce'); |
+ | $signature = $params->get('mac'); |
| |
| |
- | $macKey = $this->server->getMacStorage()->getByAccessToken($accessToken); |
+ | $macKey = $this->server->getMacStorage()->getByAccessToken($accessToken); |
| |
| if ($macKey === null) { |
| return; |
- | } |
+ | } |
| |
| |
| $calculatedSignatureParts = [ |
- | $timestamp, |
- | $nonce, |
- | strtoupper($request->getMethod()), |
+ | $timestamp, |
+ | $nonce, |
+ | strtoupper($request->getMethod()), |
| $request->getUri(), |
| $request->getHost(), |
| $request->getPort(), |
- | ]; |
+ | ]; |
| |
- | if ($params->has('ext')) { |
- | $calculatedSignatureParts[] = $params->get('ext'); |
- | } |
+ | if ($params->has('ext')) { |
+ | $calculatedSignatureParts[] = $params->get('ext'); |
+ | } |
| |
- | $calculatedSignature = base64_encode(hash_hmac('sha256', implode("\n", $calculatedSignatureParts), $macKey)); |
+ | $calculatedSignature = base64_encode(hash_hmac('sha256', implode("\n", $calculatedSignatureParts), $macKey)); |
| |
| |
- | return ($this->hash_equals($calculatedSignature, $signature)) ? $accessToken : null; |
- | } |
+ | return ($this->hash_equals($calculatedSignature, $signature)) ? $accessToken : null; |
+ | } |
| |
| |
| |
@@ -318,20 +318,20 @@
| |
| private function hash_equals($knownString, $userString) |
| { |
- | if (function_exists('\hash_equals')) { |
- | return \hash_equals($knownString, $userString); |
- | } |
- | if (strlen($knownString) !== strlen($userString)) { |
- | return false; |
- | } |
- | $len = strlen($knownString); |
- | $result = 0; |
- | for ($i = 0; $i < $len; $i++) { |
- | $result |= (ord($knownString[$i]) ^ ord($userString[$i])); |
- | } |
+ | if (function_exists('\hash_equals')) { |
+ | return \hash_equals($knownString, $userString); |
+ | } |
+ | if (strlen($knownString) !== strlen($userString)) { |
+ | return false; |
+ | } |
+ | $len = strlen($knownString); |
+ | $result = 0; |
+ | for ($i = 0; $i < $len; $i++) { |
+ | $result |= (ord($knownString[$i]) ^ ord($userString[$i])); |
+ | } |
| |
- | return 0 === $result; |
- | } |
+ | return 0 === $result; |
+ | } |
| } |
@@ -345,7 +345,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/TokenType/TokenTypeInterface.php.html b/master/TokenType/TokenTypeInterface.php.html
index a0c7e634..f8f716be 100644
--- a/master/TokenType/TokenTypeInterface.php.html
+++ b/master/TokenType/TokenTypeInterface.php.html
@@ -140,7 +140,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/TokenType/dashboard.html b/master/TokenType/dashboard.html
index 453ee1e4..e4be8bdd 100644
--- a/master/TokenType/dashboard.html
+++ b/master/TokenType/dashboard.html
@@ -59,7 +59,6 @@
- MAC | 85% |
@@ -76,7 +75,6 @@
- MAC | 22 |
@@ -114,7 +112,7 @@
- generateResponse | 62% |
+ hash_equals | 80% |
@@ -131,6 +129,7 @@
+ hash_equals | 4 |
@@ -140,7 +139,7 @@
@@ -161,7 +160,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,0,2], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,1,2], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -179,7 +178,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,1,0,0,0,9], "Method Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,0,9], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -230,7 +229,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[100,5," AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[85.714285714286,21,"MAC<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[100,5,"AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[96.491228070175,21,"MAC<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -255,7 +254,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[100,1,"AbstractTokenType::setServer<\/a>"],[100,1,"AbstractTokenType::setSession<\/a>"],[100,1,"AbstractTokenType::setParam<\/a>"],[100,2,"AbstractTokenType::getParam<\/a>"],[100,2,"Bearer::generateResponse<\/a>"],[100,2,"Bearer::determineAccessTokenInHeader<\/a>"],[62.5,1,"MAC::generateResponse<\/a>"],[100,13,"MAC::determineAccessTokenInHeader<\/a>"],[100,3,"MAC::anonymous function<\/a>"],[100,4,"MAC::hash_equals<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,1,"AbstractTokenType::setServer<\/a>"],[100,1,"AbstractTokenType::setSession<\/a>"],[100,1,"AbstractTokenType::setParam<\/a>"],[100,2,"AbstractTokenType::getParam<\/a>"],[100,2,"Bearer::generateResponse<\/a>"],[100,2,"Bearer::determineAccessTokenInHeader<\/a>"],[100,1,"MAC::generateResponse<\/a>"],[100,13,"MAC::determineAccessTokenInHeader<\/a>"],[100,3,"MAC::anonymous function<\/a>"],[80,4,"MAC::hash_equals<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/TokenType/index.html b/master/TokenType/index.html
index bc8f9289..81159205 100644
--- a/master/TokenType/index.html
+++ b/master/TokenType/index.html
@@ -44,21 +44,21 @@
Total |
-
- 90.91% covered (success)
+
+ 97.33% covered (success)
|
- 90.91% |
- 30 / 33 |
-
-
- 87.50% covered (warning)
+ 97.33% |
+ 73 / 75 |
+
+
+ 90.00% covered (success)
|
- 87.50% |
- 7 / 8 |
+ 90.00% |
+ 9 / 10 |
66.67% covered (warning)
@@ -78,7 +78,7 @@
|
100.00% |
- 6 / 6 |
+ 7 / 7 |
100.00% covered (success)
@@ -86,7 +86,7 @@
|
100.00% |
- 2 / 2 |
+ 4 / 4 |
100.00% covered (success)
@@ -106,7 +106,7 @@
|
100.00% |
- 6 / 6 |
+ 11 / 11 |
100.00% covered (success)
@@ -126,15 +126,15 @@
| |
- MAC.php |
-
-
- 85.71% covered (warning)
+ MAC.php |
+
+
+ 96.49% covered (success)
|
- 85.71% |
- 18 / 21 |
+ 96.49% |
+ 55 / 57 |
diff --git a/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html b/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html
index 16aae5ed..10b4b5af 100644
--- a/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html
+++ b/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html
@@ -43,82 +43,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 2 / 6 |
+ 100.00% |
+ 6 / 6 |
| | |
- DefaultAlgorithm |
-
-
- 0.00% covered (danger)
+ DefaultAlgorithm |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 8.74 |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 4 |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 2 / 6 |
+ 100.00% |
+ 6 / 6 |
| | |
- generate($len = 40) |
-
-
- 0.00% covered (danger)
+ generate($len = 40) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 8.74 |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 4 |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 2 / 6 |
+ 100.00% |
+ 6 / 6 |
| |
@@ -146,21 +146,21 @@
| |
| public function generate($len = 40) |
| { |
- | $stripped = ''; |
+ | $stripped = ''; |
| do { |
- | $bytes = openssl_random_pseudo_bytes($len, $strong); |
+ | $bytes = openssl_random_pseudo_bytes($len, $strong); |
| |
| |
- | if ($bytes === false || $strong === false) { |
+ | if ($bytes === false || $strong === false) { |
| |
| throw new \Exception('Error Generating Key'); |
| |
- | } |
- | $stripped .= str_replace(['/', '+', '='], '', base64_encode($bytes)); |
- | } while (strlen($stripped) < $len); |
+ | } |
+ | $stripped .= str_replace(['/', '+', '='], '', base64_encode($bytes)); |
+ | } while (strlen($stripped) < $len); |
| |
- | return substr($stripped, 0, $len); |
- | } |
+ | return substr($stripped, 0, $len); |
+ | } |
| } |
@@ -174,7 +174,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html b/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html
index c59bd71b..dc635c6b 100644
--- a/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html
+++ b/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html
@@ -97,7 +97,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Util/KeyAlgorithm/dashboard.html b/master/Util/KeyAlgorithm/dashboard.html
index 546ad5d2..a9de8830 100644
--- a/master/Util/KeyAlgorithm/dashboard.html
+++ b/master/Util/KeyAlgorithm/dashboard.html
@@ -60,7 +60,6 @@
| |
- DefaultAlgorithm | 33% |
@@ -77,7 +76,6 @@
- DefaultAlgorithm | 8 |
@@ -115,7 +113,6 @@
- generate | 33% |
@@ -132,7 +129,6 @@
- generate | 8 |
@@ -142,7 +138,7 @@
@@ -163,7 +159,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,1,0,0,0,0,0,0,0], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,1], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -181,7 +177,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,1,0,0,0,0,0,0,0], "Method Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,1], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -232,7 +228,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[33.333333333333,4,"DefaultAlgorithm<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[100,4,"DefaultAlgorithm<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -257,7 +253,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[33.333333333333,4,"DefaultAlgorithm::generate<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,4,"DefaultAlgorithm::generate<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/Util/KeyAlgorithm/index.html b/master/Util/KeyAlgorithm/index.html
index 6f8d2ef0..62adab4a 100644
--- a/master/Util/KeyAlgorithm/index.html
+++ b/master/Util/KeyAlgorithm/index.html
@@ -43,59 +43,59 @@
- Total |
-
-
- 33.33% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 2 / 6 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 6 / 6 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- DefaultAlgorithm.php |
-
-
- 33.33% covered (danger)
+ DefaultAlgorithm.php |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 2 / 6 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 6 / 6 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
@@ -123,7 +123,7 @@
High: 90% to 100%
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Util/RedirectUri.php.html b/master/Util/RedirectUri.php.html
index d0d22422..6bc2f26e 100644
--- a/master/Util/RedirectUri.php.html
+++ b/master/Util/RedirectUri.php.html
@@ -42,82 +42,82 @@
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- CRAP |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
+ 100.00% |
+ 2 / 2 |
| | |
- RedirectUri |
-
-
- 0.00% covered (danger)
+ RedirectUri |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 3.19 |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 2 |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
+ 100.00% |
+ 2 / 2 |
| | |
- make($uri, $params = [], $queryDelimeter = '?') |
-
-
- 0.00% covered (danger)
+ make($uri, $params = [], $queryDelimeter = '?') |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 3.19 |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 2 |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
+ 100.00% |
+ 2 / 2 |
| |
@@ -154,10 +154,10 @@
| |
| public static function make($uri, $params = [], $queryDelimeter = '?') |
| { |
- | $uri .= (strstr($uri, $queryDelimeter) === false) ? $queryDelimeter : '&'; |
+ | $uri .= (strstr($uri, $queryDelimeter) === false) ? $queryDelimeter : '&'; |
| |
- | return $uri.http_build_query($params); |
- | } |
+ | return $uri.http_build_query($params); |
+ | } |
| } |
@@ -171,7 +171,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Util/SecureKey.php.html b/master/Util/SecureKey.php.html
index 47a4a2e3..816c9301 100644
--- a/master/Util/SecureKey.php.html
+++ b/master/Util/SecureKey.php.html
@@ -42,86 +42,65 @@
|
- Total |
-
-
- 0.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
- CRAP |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 3 / 3 |
+ CRAP |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 3 / 6 |
+ 100.00% |
+ 7 / 7 |
| | |
- SecureKey |
-
-
- 0.00% covered (danger)
+ SecureKey |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
- 6.00 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 3 / 3 |
+ 4 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 3 / 6 |
+ 100.00% |
+ 7 / 7 |
| | |
- generate($len = 40) |
-
-
- 0.00% covered (danger)
-
-
- |
- 0.00% |
- 0 / 1 |
- 1.12 |
-
-
- 50.00% covered (warning)
-
-
- |
- 50.00% |
- 1 / 2 |
-
-
-
- setAlgorithm(KeyAlgorithmInterface $algorithm) |
+ generate($len = 40) |
100.00% covered (success)
@@ -142,24 +121,45 @@
|
- getAlgorithm() |
-
-
- 0.00% covered (danger)
+ setAlgorithm(KeyAlgorithmInterface $algorithm) |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 3.19 |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 1 |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
+ 100.00% |
+ 2 / 2 |
+ | |
+
+
+ getAlgorithm() |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 1 / 1 |
+ 2 |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 4 / 4 |
@@ -199,8 +199,8 @@
| |
| public static function generate($len = 40) |
| { |
- | return self::getAlgorithm()->generate($len); |
- | } |
+ | return self::getAlgorithm()->generate($len); |
+ | } |
| |
| |
| |
@@ -208,19 +208,19 @@
| public static function setAlgorithm(KeyAlgorithmInterface $algorithm) |
| { |
| self::$algorithm = $algorithm; |
- | } |
+ | } |
| |
| |
| |
| |
| public static function getAlgorithm() |
| { |
- | if (is_null(self::$algorithm)) { |
- | self::$algorithm = new DefaultAlgorithm(); |
- | } |
+ | if (is_null(self::$algorithm)) { |
+ | self::$algorithm = new DefaultAlgorithm(); |
+ | } |
| |
- | return self::$algorithm; |
- | } |
+ | return self::$algorithm; |
+ | } |
| } |
@@ -234,7 +234,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/Util/dashboard.html b/master/Util/dashboard.html
index 85be7d7d..2688cc1b 100644
--- a/master/Util/dashboard.html
+++ b/master/Util/dashboard.html
@@ -59,9 +59,6 @@
- DefaultAlgorithm | 33% |
- RedirectUri | 33% |
- SecureKey | 50% |
@@ -78,9 +75,6 @@
- DefaultAlgorithm | 8 |
- SecureKey | 6 |
- RedirectUri | 3 |
@@ -118,10 +112,6 @@
- generate | 33% |
- make | 33% |
- getAlgorithm | 33% |
- generate | 50% |
@@ -138,9 +128,6 @@
- generate | 8 |
- make | 3 |
- getAlgorithm | 3 |
@@ -150,7 +137,7 @@
@@ -171,7 +158,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,2,0,1,0,0,0,0,0], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,3], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -189,7 +176,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,3,0,1,0,0,0,0,1], "Method Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,5], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -240,7 +227,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[33.333333333333,4,"DefaultAlgorithm<\/a>"],[33.333333333333,2,"RedirectUri<\/a>"],[50,4,"SecureKey<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[100,4,"DefaultAlgorithm<\/a>"],[100,2,"RedirectUri<\/a>"],[100,4,"SecureKey<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -265,7 +252,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[33.333333333333,4,"DefaultAlgorithm::generate<\/a>"],[33.333333333333,2,"RedirectUri::make<\/a>"],[50,1,"SecureKey::generate<\/a>"],[100,1,"SecureKey::setAlgorithm<\/a>"],[33.333333333333,2,"SecureKey::getAlgorithm<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,4,"DefaultAlgorithm::generate<\/a>"],[100,2,"RedirectUri::make<\/a>"],[100,1,"SecureKey::generate<\/a>"],[100,1,"SecureKey::setAlgorithm<\/a>"],[100,2,"SecureKey::getAlgorithm<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/Util/index.html b/master/Util/index.html
index d107c3d1..b78d03ef 100644
--- a/master/Util/index.html
+++ b/master/Util/index.html
@@ -42,115 +42,115 @@
- Total |
-
-
- 40.00% covered (danger)
+ Total |
+
+
+ 100.00% covered (success)
|
- 40.00% |
- 6 / 15 |
-
-
- 20.00% covered (danger)
+ 100.00% |
+ 15 / 15 |
+
+
+ 100.00% covered (success)
|
- 20.00% |
- 1 / 5 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 5 / 5 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 3 |
+ 100.00% |
+ 3 / 3 |
| | |
- KeyAlgorithm |
-
-
- 33.33% covered (danger)
+ KeyAlgorithm |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 2 / 6 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 6 / 6 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- RedirectUri.php |
-
-
- 33.33% covered (danger)
+ RedirectUri.php |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 2 / 2 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- SecureKey.php |
-
-
- 50.00% covered (warning)
+ SecureKey.php |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 3 / 6 |
-
-
- 33.33% covered (danger)
+ 100.00% |
+ 7 / 7 |
+
+
+ 100.00% covered (success)
|
- 33.33% |
- 1 / 3 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 3 / 3 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
@@ -165,7 +165,7 @@
High: 90% to 100%
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
diff --git a/master/dashboard.html b/master/dashboard.html
index 3599c630..adfb3425 100644
--- a/master/dashboard.html
+++ b/master/dashboard.html
@@ -58,32 +58,9 @@
- ServerErrorException | 33% |
- RedirectUri | 33% |
- DefaultAlgorithm | 33% |
- SecureKey | 50% |
- UnsupportedGrantTypeException | 50% |
- UnauthorizedClientException | 50% |
- AccessDeniedException | 50% |
- InvalidClientException | 50% |
- InvalidCredentialsException | 50% |
- InvalidGrantException | 50% |
- InvalidRefreshException | 50% |
- InvalidScopeException | 60% |
- EntityTrait | 60% |
- InvalidRequestException | 60% |
- UserAuthenticationFailedEvent | 66% |
- UnsupportedResponseTypeException | 66% |
- ClientAuthenticationFailedEvent | 66% |
- ResourceServer | 70% |
- AccessTokenEntity | 71% |
- ClientCredentialsGrant | 72% |
- AuthorizationServer | 73% |
- SessionOwnerEvent | 75% |
- PasswordGrant | 76% |
- MAC | 85% |
- AbstractServer | 86% |
- AuthCodeEntity | 86% |
+ UserAuthenticationFailedEvent | 75% |
+ ClientAuthenticationFailedEvent | 75% |
+ AccessTokenEntity | 84% |
@@ -100,19 +77,7 @@
- AuthorizationServer | 29 |
- AbstractServer | 25 |
- MAC | 22 |
- PasswordGrant | 17 |
- ResourceServer | 15 |
- AuthCodeEntity | 11 |
- AccessTokenEntity | 10 |
- DefaultAlgorithm | 8 |
- ClientCredentialsGrant | 6 |
- SecureKey | 6 |
- EntityTrait | 3 |
- ServerErrorException | 3 |
- RedirectUri | 3 |
+ AccessTokenEntity | 9 |
@@ -150,42 +115,11 @@
- addEventListener | 0% |
- hasGrantType | 0% |
- __construct | 25% |
- getAlgorithm | 33% |
- __construct | 33% |
- make | 33% |
- generate | 33% |
- __construct | 33% |
- addGrantType | 37% |
- generateRedirectUri | 40% |
- __construct | 50% |
- __construct | 50% |
- generate | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- associateScope | 50% |
- __construct | 50% |
- __construct | 50% |
- __construct | 50% |
- setEventEmitter | 60% |
- hydrate | 60% |
- __construct | 60% |
- __construct | 60% |
- generateResponse | 62% |
- getScopes | 66% |
- getRequest | 66% |
- __construct | 66% |
- save | 70% |
- completeFlow | 72% |
- completeFlow | 72% |
- getSession | 80% |
+ getRequest | 0% |
+ getRequest | 0% |
+ hasScope | 0% |
+ hash_equals | 80% |
+ formatScopes | 88% |
@@ -202,21 +136,9 @@
- completeFlow | 13 |
- generate | 8 |
- completeFlow | 6 |
- addGrantType | 5 |
- hydrate | 3 |
- __construct | 3 |
- make | 3 |
- getAlgorithm | 3 |
- generateRedirectUri | 2 |
- associateScope | 2 |
- setEventEmitter | 2 |
- getRequest | 2 |
- getScopes | 2 |
- save | 2 |
- getSession | 2 |
+ hasScope | 6 |
+ hash_equals | 4 |
+ formatScopes | 4 |
@@ -226,7 +148,7 @@
@@ -247,7 +169,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,3,0,8,6,6,3,2,10], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,1,2,33], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -265,7 +187,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([2,0,0,1,6,1,14,8,3,1,0,123], "Method Coverage"))
+ .datum(getCoverageDistributionData([3,0,0,0,0,0,0,0,0,2,0,154], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -316,7 +238,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[86.046511627907,24,"AbstractServer<\/a>"],[73.333333333333,21,"AuthorizationServer<\/a>"],[91.304347826087,18,"AbstractTokenEntity<\/a>"],[71.428571428571,9,"AccessTokenEntity<\/a>"],[86.95652173913,11,"AuthCodeEntity<\/a>"],[100,5,"ClientEntity<\/a>"],[100,6,"RefreshTokenEntity<\/a>"],[100,4,"ScopeEntity<\/a>"],[100,23,"SessionEntity<\/a>"],[66.666666666667,3,"ClientAuthenticationFailedEvent<\/a>"],[75,3,"SessionOwnerEvent<\/a>"],[66.666666666667,3,"UserAuthenticationFailedEvent<\/a>"],[50,1,"AccessDeniedException<\/a>"],[50,1,"InvalidClientException<\/a>"],[50,1,"InvalidCredentialsException<\/a>"],[50,1,"InvalidGrantException<\/a>"],[50,1,"InvalidRefreshException<\/a>"],[60,1,"InvalidRequestException<\/a>"],[60,1,"InvalidScopeException<\/a>"],[93.333333333333,15,"OAuthException<\/a>"],[33.333333333333,2,"ServerErrorException<\/a>"],[50,1,"UnauthorizedClientException<\/a>"],[50,1,"UnsupportedGrantTypeException<\/a>"],[66.666666666667,1,"UnsupportedResponseTypeException<\/a>"],[100,21,"AbstractGrant<\/a>"],[100,25,"AuthCodeGrant<\/a>"],[72.727272727273,6,"ClientCredentialsGrant<\/a>"],[76.923076923077,15,"PasswordGrant<\/a>"],[100,16,"RefreshTokenGrant<\/a>"],[70,12,"ResourceServer<\/a>"],[100,2,"AbstractStorage<\/a>"],[100,5,"AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[85.714285714286,21,"MAC<\/a>"],[33.333333333333,4,"DefaultAlgorithm<\/a>"],[33.333333333333,2,"RedirectUri<\/a>"],[50,4,"SecureKey<\/a>"],[60,3,"EntityTrait<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[100,24,"AbstractServer<\/a>"],[100,21,"AuthorizationServer<\/a>"],[96.296296296296,18,"AbstractTokenEntity<\/a>"],[84,9,"AccessTokenEntity<\/a>"],[100,11,"AuthCodeEntity<\/a>"],[100,5,"ClientEntity<\/a>"],[100,6,"RefreshTokenEntity<\/a>"],[100,4,"ScopeEntity<\/a>"],[100,23,"SessionEntity<\/a>"],[75,3,"ClientAuthenticationFailedEvent<\/a>"],[100,3,"SessionOwnerEvent<\/a>"],[75,3,"UserAuthenticationFailedEvent<\/a>"],[100,1,"AccessDeniedException<\/a>"],[100,1,"InvalidClientException<\/a>"],[100,1,"InvalidCredentialsException<\/a>"],[100,1,"InvalidGrantException<\/a>"],[100,1,"InvalidRefreshException<\/a>"],[100,1,"InvalidRequestException<\/a>"],[100,1,"InvalidScopeException<\/a>"],[100,15,"OAuthException<\/a>"],[100,2,"ServerErrorException<\/a>"],[100,1,"UnauthorizedClientException<\/a>"],[100,1,"UnsupportedGrantTypeException<\/a>"],[100,1,"UnsupportedResponseTypeException<\/a>"],[100,21,"AbstractGrant<\/a>"],[100,25,"AuthCodeGrant<\/a>"],[100,6,"ClientCredentialsGrant<\/a>"],[100,15,"PasswordGrant<\/a>"],[100,16,"RefreshTokenGrant<\/a>"],[100,12,"ResourceServer<\/a>"],[100,2,"AbstractStorage<\/a>"],[100,5,"AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[96.491228070175,21,"MAC<\/a>"],[100,4,"DefaultAlgorithm<\/a>"],[100,2,"RedirectUri<\/a>"],[100,4,"SecureKey<\/a>"],[100,3,"EntityTrait<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -341,7 +263,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[50,1,"AbstractServer::__construct<\/a>"],[60,2,"AbstractServer::setEventEmitter<\/a>"],[0,1,"AbstractServer::addEventListener<\/a>"],[100,1,"AbstractServer::getEventEmitter<\/a>"],[100,1,"AbstractServer::setRequest<\/a>"],[66.666666666667,2,"AbstractServer::getRequest<\/a>"],[100,1,"AbstractServer::setClientStorage<\/a>"],[100,1,"AbstractServer::setSessionStorage<\/a>"],[100,1,"AbstractServer::setAccessTokenStorage<\/a>"],[100,1,"AbstractServer::setRefreshTokenStorage<\/a>"],[100,1,"AbstractServer::setAuthCodeStorage<\/a>"],[100,1,"AbstractServer::setScopeStorage<\/a>"],[100,1,"AbstractServer::getClientStorage<\/a>"],[100,1,"AbstractServer::getScopeStorage<\/a>"],[100,1,"AbstractServer::getSessionStorage<\/a>"],[100,1,"AbstractServer::getRefreshTokenStorage<\/a>"],[100,1,"AbstractServer::getAccessTokenStorage<\/a>"],[100,1,"AbstractServer::getAuthCodeStorage<\/a>"],[100,1,"AbstractServer::setTokenType<\/a>"],[100,1,"AbstractServer::getTokenType<\/a>"],[100,1,"AbstractServer::getMacStorage<\/a>"],[100,1,"AbstractServer::setMacStorage<\/a>"],[33.333333333333,1,"AuthorizationServer::__construct<\/a>"],[37.5,3,"AuthorizationServer::addGrantType<\/a>"],[0,1,"AuthorizationServer::hasGrantType<\/a>"],[100,1,"AuthorizationServer::getResponseTypes<\/a>"],[100,1,"AuthorizationServer::requireScopeParam<\/a>"],[100,1,"AuthorizationServer::scopeParamRequired<\/a>"],[100,1,"AuthorizationServer::setDefaultScope<\/a>"],[100,1,"AuthorizationServer::getDefaultScope<\/a>"],[100,1,"AuthorizationServer::stateParamRequired<\/a>"],[100,1,"AuthorizationServer::requireStateParam<\/a>"],[100,1,"AuthorizationServer::getScopeDelimiter<\/a>"],[100,1,"AuthorizationServer::setScopeDelimiter<\/a>"],[100,1,"AuthorizationServer::getAccessTokenTTL<\/a>"],[100,1,"AuthorizationServer::setAccessTokenTTL<\/a>"],[100,3,"AuthorizationServer::issueAccessToken<\/a>"],[100,2,"AuthorizationServer::getGrantType<\/a>"],[100,1,"AbstractTokenEntity::__construct<\/a>"],[100,1,"AbstractTokenEntity::setSession<\/a>"],[100,1,"AbstractTokenEntity::setExpireTime<\/a>"],[100,1,"AbstractTokenEntity::getExpireTime<\/a>"],[100,1,"AbstractTokenEntity::isExpired<\/a>"],[100,2,"AbstractTokenEntity::setId<\/a>"],[100,1,"AbstractTokenEntity::getId<\/a>"],[50,2,"AbstractTokenEntity::associateScope<\/a>"],[100,4,"AbstractTokenEntity::formatScopes<\/a>"],[100,2,"AbstractTokenEntity::__toString<\/a>"],[100,1,"AbstractTokenEntity::expire<\/a>"],[100,1,"AbstractTokenEntity::save<\/a>"],[80,2,"AccessTokenEntity::getSession<\/a>"],[100,2,"AccessTokenEntity::hasScope<\/a>"],[66.666666666667,2,"AccessTokenEntity::getScopes<\/a>"],[70,2,"AccessTokenEntity::save<\/a>"],[100,1,"AccessTokenEntity::expire<\/a>"],[100,1,"AuthCodeEntity::setRedirectUri<\/a>"],[100,1,"AuthCodeEntity::getRedirectUri<\/a>"],[40,2,"AuthCodeEntity::generateRedirectUri<\/a>"],[100,2,"AuthCodeEntity::getSession<\/a>"],[100,2,"AuthCodeEntity::getScopes<\/a>"],[100,2,"AuthCodeEntity::save<\/a>"],[100,1,"AuthCodeEntity::expire<\/a>"],[100,1,"ClientEntity::__construct<\/a>"],[100,1,"ClientEntity::getId<\/a>"],[100,1,"ClientEntity::getSecret<\/a>"],[100,1,"ClientEntity::getName<\/a>"],[100,1,"ClientEntity::getRedirectUri<\/a>"],[100,1,"RefreshTokenEntity::setAccessTokenId<\/a>"],[100,1,"RefreshTokenEntity::setAccessToken<\/a>"],[100,2,"RefreshTokenEntity::getAccessToken<\/a>"],[100,1,"RefreshTokenEntity::save<\/a>"],[100,1,"RefreshTokenEntity::expire<\/a>"],[100,1,"ScopeEntity::__construct<\/a>"],[100,1,"ScopeEntity::getId<\/a>"],[100,1,"ScopeEntity::getDescription<\/a>"],[100,1,"ScopeEntity::jsonSerialize<\/a>"],[100,1,"SessionEntity::__construct<\/a>"],[100,1,"SessionEntity::setId<\/a>"],[100,1,"SessionEntity::getId<\/a>"],[100,2,"SessionEntity::associateScope<\/a>"],[100,2,"SessionEntity::hasScope<\/a>"],[100,2,"SessionEntity::getScopes<\/a>"],[100,4,"SessionEntity::formatScopes<\/a>"],[100,1,"SessionEntity::associateAccessToken<\/a>"],[100,1,"SessionEntity::associateRefreshToken<\/a>"],[100,1,"SessionEntity::associateClient<\/a>"],[100,2,"SessionEntity::getClient<\/a>"],[100,1,"SessionEntity::setOwner<\/a>"],[100,1,"SessionEntity::getOwnerId<\/a>"],[100,1,"SessionEntity::getOwnerType<\/a>"],[100,2,"SessionEntity::save<\/a>"],[50,1,"ClientAuthenticationFailedEvent::__construct<\/a>"],[100,1,"ClientAuthenticationFailedEvent::getName<\/a>"],[100,1,"ClientAuthenticationFailedEvent::getRequest<\/a>"],[50,1,"SessionOwnerEvent::__construct<\/a>"],[100,1,"SessionOwnerEvent::getName<\/a>"],[100,1,"SessionOwnerEvent::getSession<\/a>"],[50,1,"UserAuthenticationFailedEvent::__construct<\/a>"],[100,1,"UserAuthenticationFailedEvent::getName<\/a>"],[100,1,"UserAuthenticationFailedEvent::getRequest<\/a>"],[50,1,"AccessDeniedException::__construct<\/a>"],[50,1,"InvalidClientException::__construct<\/a>"],[50,1,"InvalidCredentialsException::__construct<\/a>"],[50,1,"InvalidGrantException::__construct<\/a>"],[50,1,"InvalidRefreshException::__construct<\/a>"],[60,1,"InvalidRequestException::__construct<\/a>"],[60,1,"InvalidScopeException::__construct<\/a>"],[50,1,"OAuthException::__construct<\/a>"],[100,2,"OAuthException::shouldRedirect<\/a>"],[100,1,"OAuthException::getRedirectUri<\/a>"],[100,11,"OAuthException::getHttpHeaders<\/a>"],[33.333333333333,2,"ServerErrorException::__construct<\/a>"],[50,1,"UnauthorizedClientException::__construct<\/a>"],[50,1,"UnsupportedGrantTypeException::__construct<\/a>"],[66.666666666667,1,"UnsupportedResponseTypeException::__construct<\/a>"],[100,1,"AbstractGrant::getIdentifier<\/a>"],[100,1,"AbstractGrant::setIdentifier<\/a>"],[100,1,"AbstractGrant::getResponseType<\/a>"],[100,2,"AbstractGrant::getAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAuthorizationServer<\/a>"],[100,11,"AbstractGrant::validateScopes<\/a>"],[100,3,"AbstractGrant::formatScopes<\/a>"],[100,1,"AuthCodeGrant::setAuthTokenTTL<\/a>"],[100,8,"AuthCodeGrant::checkAuthorizeParams<\/a>"],[100,2,"AuthCodeGrant::newAuthorizeRequest<\/a>"],[100,14,"AuthCodeGrant::completeFlow<\/a>"],[72.727272727273,6,"ClientCredentialsGrant::completeFlow<\/a>"],[100,1,"PasswordGrant::setVerifyCredentialsCallback<\/a>"],[100,3,"PasswordGrant::getVerifyCredentialsCallback<\/a>"],[72.727272727273,11,"PasswordGrant::completeFlow<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::getRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenRotation<\/a>"],[100,1,"RefreshTokenGrant::shouldRotateRefreshTokens<\/a>"],[100,12,"RefreshTokenGrant::completeFlow<\/a>"],[25,1,"ResourceServer::__construct<\/a>"],[100,1,"ResourceServer::setIdKey<\/a>"],[100,1,"ResourceServer::getAccessToken<\/a>"],[100,4,"ResourceServer::isValidRequest<\/a>"],[100,5,"ResourceServer::determineAccessToken<\/a>"],[100,1,"AbstractStorage::setServer<\/a>"],[100,1,"AbstractStorage::getServer<\/a>"],[100,1,"AbstractTokenType::setServer<\/a>"],[100,1,"AbstractTokenType::setSession<\/a>"],[100,1,"AbstractTokenType::setParam<\/a>"],[100,2,"AbstractTokenType::getParam<\/a>"],[100,2,"Bearer::generateResponse<\/a>"],[100,2,"Bearer::determineAccessTokenInHeader<\/a>"],[62.5,1,"MAC::generateResponse<\/a>"],[100,13,"MAC::determineAccessTokenInHeader<\/a>"],[100,3,"MAC::anonymous function<\/a>"],[100,4,"MAC::hash_equals<\/a>"],[33.333333333333,4,"DefaultAlgorithm::generate<\/a>"],[33.333333333333,2,"RedirectUri::make<\/a>"],[50,1,"SecureKey::generate<\/a>"],[100,1,"SecureKey::setAlgorithm<\/a>"],[33.333333333333,2,"SecureKey::getAlgorithm<\/a>"],[60,3,"EntityTrait::hydrate<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,1,"AbstractServer::__construct<\/a>"],[100,2,"AbstractServer::setEventEmitter<\/a>"],[100,1,"AbstractServer::addEventListener<\/a>"],[100,1,"AbstractServer::getEventEmitter<\/a>"],[100,1,"AbstractServer::setRequest<\/a>"],[100,2,"AbstractServer::getRequest<\/a>"],[100,1,"AbstractServer::setClientStorage<\/a>"],[100,1,"AbstractServer::setSessionStorage<\/a>"],[100,1,"AbstractServer::setAccessTokenStorage<\/a>"],[100,1,"AbstractServer::setRefreshTokenStorage<\/a>"],[100,1,"AbstractServer::setAuthCodeStorage<\/a>"],[100,1,"AbstractServer::setScopeStorage<\/a>"],[100,1,"AbstractServer::getClientStorage<\/a>"],[100,1,"AbstractServer::getScopeStorage<\/a>"],[100,1,"AbstractServer::getSessionStorage<\/a>"],[100,1,"AbstractServer::getRefreshTokenStorage<\/a>"],[100,1,"AbstractServer::getAccessTokenStorage<\/a>"],[100,1,"AbstractServer::getAuthCodeStorage<\/a>"],[100,1,"AbstractServer::setTokenType<\/a>"],[100,1,"AbstractServer::getTokenType<\/a>"],[100,1,"AbstractServer::getMacStorage<\/a>"],[100,1,"AbstractServer::setMacStorage<\/a>"],[100,1,"AuthorizationServer::__construct<\/a>"],[100,3,"AuthorizationServer::addGrantType<\/a>"],[100,1,"AuthorizationServer::hasGrantType<\/a>"],[100,1,"AuthorizationServer::getResponseTypes<\/a>"],[100,1,"AuthorizationServer::requireScopeParam<\/a>"],[100,1,"AuthorizationServer::scopeParamRequired<\/a>"],[100,1,"AuthorizationServer::setDefaultScope<\/a>"],[100,1,"AuthorizationServer::getDefaultScope<\/a>"],[100,1,"AuthorizationServer::stateParamRequired<\/a>"],[100,1,"AuthorizationServer::requireStateParam<\/a>"],[100,1,"AuthorizationServer::getScopeDelimiter<\/a>"],[100,1,"AuthorizationServer::setScopeDelimiter<\/a>"],[100,1,"AuthorizationServer::getAccessTokenTTL<\/a>"],[100,1,"AuthorizationServer::setAccessTokenTTL<\/a>"],[100,3,"AuthorizationServer::issueAccessToken<\/a>"],[100,2,"AuthorizationServer::getGrantType<\/a>"],[100,1,"AbstractTokenEntity::__construct<\/a>"],[100,1,"AbstractTokenEntity::setSession<\/a>"],[100,1,"AbstractTokenEntity::setExpireTime<\/a>"],[100,1,"AbstractTokenEntity::getExpireTime<\/a>"],[100,1,"AbstractTokenEntity::isExpired<\/a>"],[100,2,"AbstractTokenEntity::setId<\/a>"],[100,1,"AbstractTokenEntity::getId<\/a>"],[100,2,"AbstractTokenEntity::associateScope<\/a>"],[88.888888888889,4,"AbstractTokenEntity::formatScopes<\/a>"],[100,2,"AbstractTokenEntity::__toString<\/a>"],[100,1,"AbstractTokenEntity::expire<\/a>"],[100,1,"AbstractTokenEntity::save<\/a>"],[100,2,"AccessTokenEntity::getSession<\/a>"],[0,2,"AccessTokenEntity::hasScope<\/a>"],[100,2,"AccessTokenEntity::getScopes<\/a>"],[100,2,"AccessTokenEntity::save<\/a>"],[100,1,"AccessTokenEntity::expire<\/a>"],[100,1,"AuthCodeEntity::setRedirectUri<\/a>"],[100,1,"AuthCodeEntity::getRedirectUri<\/a>"],[100,2,"AuthCodeEntity::generateRedirectUri<\/a>"],[100,2,"AuthCodeEntity::getSession<\/a>"],[100,2,"AuthCodeEntity::getScopes<\/a>"],[100,2,"AuthCodeEntity::save<\/a>"],[100,1,"AuthCodeEntity::expire<\/a>"],[100,1,"ClientEntity::__construct<\/a>"],[100,1,"ClientEntity::getId<\/a>"],[100,1,"ClientEntity::getSecret<\/a>"],[100,1,"ClientEntity::getName<\/a>"],[100,1,"ClientEntity::getRedirectUri<\/a>"],[100,1,"RefreshTokenEntity::setAccessTokenId<\/a>"],[100,1,"RefreshTokenEntity::setAccessToken<\/a>"],[100,2,"RefreshTokenEntity::getAccessToken<\/a>"],[100,1,"RefreshTokenEntity::save<\/a>"],[100,1,"RefreshTokenEntity::expire<\/a>"],[100,1,"ScopeEntity::__construct<\/a>"],[100,1,"ScopeEntity::getId<\/a>"],[100,1,"ScopeEntity::getDescription<\/a>"],[100,1,"ScopeEntity::jsonSerialize<\/a>"],[100,1,"SessionEntity::__construct<\/a>"],[100,1,"SessionEntity::setId<\/a>"],[100,1,"SessionEntity::getId<\/a>"],[100,2,"SessionEntity::associateScope<\/a>"],[100,2,"SessionEntity::hasScope<\/a>"],[100,2,"SessionEntity::getScopes<\/a>"],[100,4,"SessionEntity::formatScopes<\/a>"],[100,1,"SessionEntity::associateAccessToken<\/a>"],[100,1,"SessionEntity::associateRefreshToken<\/a>"],[100,1,"SessionEntity::associateClient<\/a>"],[100,2,"SessionEntity::getClient<\/a>"],[100,1,"SessionEntity::setOwner<\/a>"],[100,1,"SessionEntity::getOwnerId<\/a>"],[100,1,"SessionEntity::getOwnerType<\/a>"],[100,2,"SessionEntity::save<\/a>"],[100,1,"ClientAuthenticationFailedEvent::__construct<\/a>"],[100,1,"ClientAuthenticationFailedEvent::getName<\/a>"],[0,1,"ClientAuthenticationFailedEvent::getRequest<\/a>"],[100,1,"SessionOwnerEvent::__construct<\/a>"],[100,1,"SessionOwnerEvent::getName<\/a>"],[100,1,"SessionOwnerEvent::getSession<\/a>"],[100,1,"UserAuthenticationFailedEvent::__construct<\/a>"],[100,1,"UserAuthenticationFailedEvent::getName<\/a>"],[0,1,"UserAuthenticationFailedEvent::getRequest<\/a>"],[100,1,"AccessDeniedException::__construct<\/a>"],[100,1,"InvalidClientException::__construct<\/a>"],[100,1,"InvalidCredentialsException::__construct<\/a>"],[100,1,"InvalidGrantException::__construct<\/a>"],[100,1,"InvalidRefreshException::__construct<\/a>"],[100,1,"InvalidRequestException::__construct<\/a>"],[100,1,"InvalidScopeException::__construct<\/a>"],[100,1,"OAuthException::__construct<\/a>"],[100,2,"OAuthException::shouldRedirect<\/a>"],[100,1,"OAuthException::getRedirectUri<\/a>"],[100,11,"OAuthException::getHttpHeaders<\/a>"],[100,2,"ServerErrorException::__construct<\/a>"],[100,1,"UnauthorizedClientException::__construct<\/a>"],[100,1,"UnsupportedGrantTypeException::__construct<\/a>"],[100,1,"UnsupportedResponseTypeException::__construct<\/a>"],[100,1,"AbstractGrant::getIdentifier<\/a>"],[100,1,"AbstractGrant::setIdentifier<\/a>"],[100,1,"AbstractGrant::getResponseType<\/a>"],[100,2,"AbstractGrant::getAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAuthorizationServer<\/a>"],[100,11,"AbstractGrant::validateScopes<\/a>"],[100,3,"AbstractGrant::formatScopes<\/a>"],[100,1,"AuthCodeGrant::setAuthTokenTTL<\/a>"],[100,8,"AuthCodeGrant::checkAuthorizeParams<\/a>"],[100,2,"AuthCodeGrant::newAuthorizeRequest<\/a>"],[100,14,"AuthCodeGrant::completeFlow<\/a>"],[100,6,"ClientCredentialsGrant::completeFlow<\/a>"],[100,1,"PasswordGrant::setVerifyCredentialsCallback<\/a>"],[100,3,"PasswordGrant::getVerifyCredentialsCallback<\/a>"],[100,11,"PasswordGrant::completeFlow<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::getRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenRotation<\/a>"],[100,1,"RefreshTokenGrant::shouldRotateRefreshTokens<\/a>"],[100,12,"RefreshTokenGrant::completeFlow<\/a>"],[100,1,"ResourceServer::__construct<\/a>"],[100,1,"ResourceServer::setIdKey<\/a>"],[100,1,"ResourceServer::getAccessToken<\/a>"],[100,4,"ResourceServer::isValidRequest<\/a>"],[100,5,"ResourceServer::determineAccessToken<\/a>"],[100,1,"AbstractStorage::setServer<\/a>"],[100,1,"AbstractStorage::getServer<\/a>"],[100,1,"AbstractTokenType::setServer<\/a>"],[100,1,"AbstractTokenType::setSession<\/a>"],[100,1,"AbstractTokenType::setParam<\/a>"],[100,2,"AbstractTokenType::getParam<\/a>"],[100,2,"Bearer::generateResponse<\/a>"],[100,2,"Bearer::determineAccessTokenInHeader<\/a>"],[100,1,"MAC::generateResponse<\/a>"],[100,13,"MAC::determineAccessTokenInHeader<\/a>"],[100,3,"MAC::anonymous function<\/a>"],[80,4,"MAC::hash_equals<\/a>"],[100,4,"DefaultAlgorithm::generate<\/a>"],[100,2,"RedirectUri::make<\/a>"],[100,1,"SecureKey::generate<\/a>"],[100,1,"SecureKey::setAlgorithm<\/a>"],[100,2,"SecureKey::getAlgorithm<\/a>"],[100,3,"EntityTrait::hydrate<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/index.html b/master/index.html
index adc74f38..9176d414 100644
--- a/master/index.html
+++ b/master/index.html
@@ -41,7 +41,63 @@
- Total |
+ Total |
+
+
+ 98.84% covered (success)
+
+
+ |
+ 98.84% |
+ 766 / 775 |
+
+
+ 96.82% covered (success)
+
+
+ |
+ 96.82% |
+ 152 / 157 |
+
+
+ 86.84% covered (warning)
+
+
+ |
+ 86.84% |
+ 33 / 38 |
+
+
+
+ Entity |
+
+
+ 97.08% covered (success)
+
+
+ |
+ 97.08% |
+ 166 / 171 |
+
+
+ 96.15% covered (success)
+
+
+ |
+ 96.15% |
+ 50 / 52 |
+
+
+ 75.00% covered (warning)
+
+
+ |
+ 75.00% |
+ 6 / 8 |
+
+
+
+ Event |
83.33% covered (warning)
@@ -49,135 +105,79 @@
|
83.33% |
- 355 / 426 |
+ 10 / 12 |
-
- 75.17% covered (warning)
+
+ 77.78% covered (warning)
|
- 75.17% |
- 109 / 145 |
+ 77.78% |
+ 7 / 9 |
-
- 26.32% covered (danger)
+
+ 33.33% covered (danger)
|
- 26.32% |
- 10 / 38 |
+ 33.33% |
+ 1 / 3 |
- Entity |
+ Exception |
-
- 90.51% covered (success)
+
+ 100.00% covered (success)
|
- 90.51% |
- 124 / 137 |
-
-
- 86.96% covered (warning)
+ 100.00% |
+ 67 / 67 |
+
+
+ 100.00% covered (success)
|
- 86.96% |
- 40 / 46 |
-
-
- 50.00% covered (warning)
+ 100.00% |
+ 15 / 15 |
+
+
+ 100.00% covered (success)
|
- 50.00% |
- 4 / 8 |
- | |
-
-
- Event |
-
-
- 70.00% covered (warning)
-
-
- |
- 70.00% |
- 7 / 10 |
-
-
- 57.14% covered (warning)
-
-
- |
- 57.14% |
- 4 / 7 |
-
-
- 0.00% covered (danger)
-
-
- |
- 0.00% |
- 0 / 3 |
-
-
-
- Exception |
-
-
- 65.31% covered (warning)
-
-
- |
- 65.31% |
- 32 / 49 |
-
-
- 14.29% covered (danger)
-
-
- |
- 14.29% |
- 2 / 14 |
-
-
- 0.00% covered (danger)
-
-
- |
- 0.00% |
- 0 / 12 |
+ 100.00% |
+ 12 / 12 |
Grant |
-
- 92.94% covered (success)
+
+ 100.00% covered (success)
|
- 92.94% |
- 79 / 85 |
+ 100.00% |
+ 317 / 317 |
-
- 90.48% covered (success)
+
+ 100.00% covered (success)
|
- 90.48% |
- 19 / 21 |
-
-
- 60.00% covered (warning)
+ 100.00% |
+ 21 / 21 |
+
+
+ 100.00% covered (success)
|
- 60.00% |
- 3 / 5 |
+ 100.00% |
+ 5 / 5 |
|
@@ -189,7 +189,7 @@
100.00% |
- 4 / 4 |
+ 3 / 3 |
100.00% covered (success)
@@ -211,21 +211,21 @@
TokenType |
-
- 90.91% covered (success)
+
+ 97.33% covered (success)
|
- 90.91% |
- 30 / 33 |
-
-
- 87.50% covered (warning)
+ 97.33% |
+ 73 / 75 |
+
+
+ 90.00% covered (success)
|
- 87.50% |
- 7 / 8 |
+ 90.00% |
+ 9 / 10 |
66.67% covered (warning)
@@ -237,115 +237,115 @@
| |
- Util |
-
-
- 40.00% covered (danger)
+ Util |
+
+
+ 100.00% covered (success)
|
- 40.00% |
- 6 / 15 |
-
-
- 20.00% covered (danger)
+ 100.00% |
+ 15 / 15 |
+
+
+ 100.00% covered (success)
|
- 20.00% |
- 1 / 5 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 5 / 5 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 3 |
+ 100.00% |
+ 3 / 3 |
| | |
- AbstractServer.php |
-
-
- 86.05% covered (warning)
+ AbstractServer.php |
+
+
+ 100.00% covered (success)
|
- 86.05% |
- 37 / 43 |
-
-
- 81.82% covered (warning)
+ 100.00% |
+ 47 / 47 |
+
+
+ 100.00% covered (success)
|
- 81.82% |
- 18 / 22 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 22 / 22 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- AuthorizationServer.php |
-
-
- 73.33% covered (warning)
+ AuthorizationServer.php |
+
+
+ 100.00% covered (success)
|
- 73.33% |
- 22 / 30 |
-
-
- 80.00% covered (warning)
+ 100.00% |
+ 39 / 39 |
+
+
+ 100.00% covered (success)
|
- 80.00% |
- 12 / 15 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 16 / 16 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
- ResourceServer.php |
-
-
- 70.00% covered (warning)
+ ResourceServer.php |
+
+
+ 100.00% covered (success)
|
- 70.00% |
- 14 / 20 |
-
-
- 80.00% covered (warning)
+ 100.00% |
+ 29 / 29 |
+
+
+ 100.00% covered (success)
|
- 80.00% |
- 4 / 5 |
-
-
- 0.00% covered (danger)
+ 100.00% |
+ 5 / 5 |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
+ 100.00% |
+ 1 / 1 |
| | |
@@ -360,7 +360,7 @@
High: 90% to 100%
- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015.
+ Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.
|