From 05d422c932e40e43f1115ded5ae744a89f37f592 Mon Sep 17 00:00:00 2001 From: TravisCI Date: Fri, 20 Mar 2015 11:50:57 +0000 Subject: [PATCH] Travis pushed coverage of 51184259d17033445da358e89000bb733aaa720b@master to gh-pages --- master/AbstractServer.php.html | 268 ++++++------ master/AuthorizationServer.php.html | 249 ++++++----- master/Entity/AbstractTokenEntity.php.html | 173 ++++---- master/Entity/AccessTokenEntity.php.html | 220 +++++----- master/Entity/AuthCodeEntity.php.html | 155 ++++--- master/Entity/ClientEntity.php.html | 24 +- master/Entity/EntityTrait.php.html | 108 ++--- master/Entity/RefreshTokenEntity.php.html | 47 +- master/Entity/ScopeEntity.php.html | 41 +- master/Entity/SessionEntity.php.html | 118 ++--- master/Entity/dashboard.html | 34 +- master/Entity/index.html | 196 ++++----- .../ClientAuthenticationFailedEvent.php.html | 87 ++-- master/Event/SessionOwnerEvent.php.html | 100 ++--- .../UserAuthenticationFailedEvent.php.html | 87 ++-- master/Event/dashboard.html | 20 +- master/Event/index.html | 98 ++--- .../Exception/AccessDeniedException.php.html | 96 ++-- .../Exception/InvalidClientException.php.html | 96 ++-- .../InvalidCredentialsException.php.html | 96 ++-- .../Exception/InvalidGrantException.php.html | 102 ++--- .../InvalidRefreshException.php.html | 96 ++-- .../InvalidRequestException.php.html | 104 ++--- .../Exception/InvalidScopeException.php.html | 104 ++--- master/Exception/OAuthException.php.html | 139 +++--- .../Exception/ServerErrorException.php.html | 98 ++--- .../UnauthorizedClientException.php.html | 96 ++-- .../UnsupportedGrantTypeException.php.html | 102 ++--- .../UnsupportedResponseTypeException.php.html | 96 ++-- master/Exception/dashboard.html | 35 +- master/Exception/index.html | 414 +++++++++--------- master/Grant/AbstractGrant.php.html | 122 +++--- master/Grant/AuthCodeGrant.php.html | 230 +++++----- master/Grant/ClientCredentialsGrant.php.html | 166 +++---- master/Grant/GrantTypeInterface.php.html | 2 +- master/Grant/PasswordGrant.php.html | 224 +++++----- master/Grant/RefreshTokenGrant.php.html | 152 +++---- master/Grant/dashboard.html | 18 +- master/Grant/index.html | 98 ++--- master/ResourceServer.php.html | 154 +++---- master/Storage/AbstractStorage.php.html | 12 +- master/Storage/AccessTokenInterface.php.html | 2 +- master/Storage/AuthCodeInterface.php.html | 2 +- master/Storage/ClientInterface.php.html | 2 +- master/Storage/MacTokenInterface.php.html | 2 +- master/Storage/RefreshTokenInterface.php.html | 2 +- master/Storage/ScopeInterface.php.html | 2 +- master/Storage/SessionInterface.php.html | 2 +- master/Storage/StorageInterface.php.html | 2 +- master/Storage/dashboard.html | 2 +- master/Storage/index.html | 6 +- master/TokenType/AbstractTokenType.php.html | 54 +-- master/TokenType/Bearer.php.html | 34 +- master/TokenType/MAC.php.html | 176 ++++---- master/TokenType/TokenTypeInterface.php.html | 2 +- master/TokenType/dashboard.html | 11 +- master/TokenType/index.html | 42 +- .../KeyAlgorithm/DefaultAlgorithm.php.html | 110 ++--- .../KeyAlgorithmInterface.php.html | 2 +- master/Util/KeyAlgorithm/dashboard.html | 14 +- master/Util/KeyAlgorithm/index.html | 66 +-- master/Util/RedirectUri.php.html | 100 ++--- master/Util/SecureKey.php.html | 136 +++--- master/Util/dashboard.html | 23 +- master/Util/index.html | 130 +++--- master/dashboard.html | 110 ++++- master/index.html | 346 +++++++-------- 67 files changed, 3168 insertions(+), 3089 deletions(-) diff --git a/master/AbstractServer.php.html b/master/AbstractServer.php.html index 288fbc42..8dca41c7 100644 --- a/master/AbstractServer.php.html +++ b/master/AbstractServer.php.html @@ -41,124 +41,124 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 81.82% covered (warning)
-
100.00%
-
22 / 22
- CRAP -
-
- 100.00% covered (success) +
81.82%
+
18 / 22
+ CRAP +
+
+ 86.05% covered (warning)
-
100.00%
-
47 / 47
+
86.05%
+
37 / 43
- AbstractServer -
-
- 100.00% covered (success) + AbstractServer +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 81.82% covered (warning)
-
100.00%
-
22 / 22
- 24 -
-
- 100.00% covered (success) +
81.82%
+
18 / 22
+ 25.56 +
+
+ 86.05% covered (warning)
-
100.00%
-
47 / 47
+
86.05%
+
37 / 43
-  __construct() -
-
- 100.00% covered (success) +  __construct() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
-  setEventEmitter($emitter = null) -
-
- 100.00% covered (success) +  setEventEmitter($emitter = null) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 2.26 +
+
+ 60.00% covered (warning)
-
100.00%
-
5 / 5
+
60.00%
+
3 / 5
-  addEventListener($eventName, callable $listener) -
-
- 100.00% covered (success) +  addEventListener($eventName, callable $listener) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 2 +
+
+ 0.00% covered (danger)
-
100.00%
-
2 / 2
+
0.00%
+
0 / 2
@@ -204,24 +204,24 @@ -  getRequest() -
-
- 100.00% covered (success) +  getRequest() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 2.15 +
+
+ 66.67% covered (warning)
-
100.00%
-
4 / 4
+
66.67%
+
2 / 3
@@ -494,7 +494,7 @@
100.00%
-
3 / 3
+
1 / 1
@@ -557,7 +557,7 @@
100.00%
-
2 / 2
+
1 / 1
@@ -667,8 +667,8 @@      */     public function __construct()     { -         $this->setEventEmitter(); -     } +         $this->setEventEmitter(); +     }     /**      * Set an event emitter @@ -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; -         } -     } +         } +     }     /**      * Add an event listener to the event emitter @@ -692,8 +692,8 @@      */     public function addEventListener($eventName, callable $listener)     { -         $this->eventEmitter->addListener($eventName, $listener); -     } +         $this->eventEmitter->addListener($eventName, $listener); +     }     /**      * Returns the event emitter @@ -702,8 +702,8 @@      */     public function getEventEmitter()     { -         return $this->eventEmitter; -     } +         return $this->eventEmitter; +     }     /**      * Sets the Request Object @@ -717,7 +717,7 @@         $this->request = $request;         return $this; -     } +     }     /**      * Gets the Request object. It will create one from the globals if one is not set. @@ -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; +     }     /**      * Set the client storage @@ -742,11 +742,11 @@      */     public function setClientStorage(ClientInterface $storage)     { -         $storage->setServer($this); +         $storage->setServer($this);         $this->clientStorage = $storage;         return $this; -     } +     }     /**      * Set the session storage @@ -757,11 +757,11 @@      */     public function setSessionStorage(SessionInterface $storage)     { -         $storage->setServer($this); +         $storage->setServer($this);         $this->sessionStorage = $storage;         return $this; -     } +     }     /**      * Set the access token storage @@ -772,11 +772,11 @@      */     public function setAccessTokenStorage(AccessTokenInterface $storage)     { -         $storage->setServer($this); +         $storage->setServer($this);         $this->accessTokenStorage = $storage;         return $this; -     } +     }     /**      * Set the refresh token storage @@ -787,11 +787,11 @@      */     public function setRefreshTokenStorage(RefreshTokenInterface $storage)     { -         $storage->setServer($this); +         $storage->setServer($this);         $this->refreshTokenStorage = $storage;         return $this; -     } +     }     /**      * Set the auth code storage @@ -802,11 +802,11 @@      */     public function setAuthCodeStorage(AuthCodeInterface $storage)     { -         $storage->setServer($this); +         $storage->setServer($this);         $this->authCodeStorage = $storage;         return $this; -     } +     }     /**      * Set the scope storage @@ -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; +     }     /**      * Return the client storage @@ -830,8 +830,8 @@      */     public function getClientStorage()     { -         return $this->clientStorage; -     } +         return $this->clientStorage; +     }     /**      * Return the scope storage @@ -840,8 +840,8 @@      */     public function getScopeStorage()     { -         return $this->scopeStorage; -     } +         return $this->scopeStorage; +     }     /**      * Return the session storage @@ -850,8 +850,8 @@      */     public function getSessionStorage()     { -         return $this->sessionStorage; -     } +         return $this->sessionStorage; +     }     /**      * Return the refresh token storage @@ -860,8 +860,8 @@      */     public function getRefreshTokenStorage()     { -         return $this->refreshTokenStorage; -     } +         return $this->refreshTokenStorage; +     }     /**      * Return the access token storage @@ -870,8 +870,8 @@      */     public function getAccessTokenStorage()     { -         return $this->accessTokenStorage; -     } +         return $this->accessTokenStorage; +     }     /**      * Return the auth code storage @@ -880,8 +880,8 @@      */     public function getAuthCodeStorage()     { -         return $this->authCodeStorage; -     } +         return $this->authCodeStorage; +     }     /**      * Set the access token type @@ -892,9 +892,9 @@      */     public function setTokenType(TokenTypeInterface $tokenType)     { -         $tokenType->setServer($this); +         $tokenType->setServer($this);         $this->tokenType = $tokenType; -     } +     }     /**      * Get the access token type @@ -903,8 +903,8 @@      */     public function getTokenType()     { -         return $this->tokenType; -     } +         return $this->tokenType; +     }     /**      * @return MacTokenInterface @@ -912,7 +912,7 @@     public function getMacStorage()     {         return $this->macStorage; -     } +     }     /**      * @param MacTokenInterface $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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/AuthorizationServer.php.html b/master/AuthorizationServer.php.html index a5383f23..1987cbde 100644 --- a/master/AuthorizationServer.php.html +++ b/master/AuthorizationServer.php.html @@ -41,124 +41,124 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 80.00% covered (warning)
-
100.00%
-
16 / 16
- CRAP -
-
- 100.00% covered (success) +
80.00%
+
12 / 15
+ CRAP +
+
+ 73.33% covered (warning)
-
100.00%
-
39 / 39
+
73.33%
+
22 / 30
- AuthorizationServer -
-
- 100.00% covered (success) + AuthorizationServer +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 81.25% covered (warning)
-
100.00%
-
16 / 16
- 21 -
-
- 100.00% covered (success) +
81.25%
+
13 / 16
+ 29.36 +
+
+ 73.33% covered (warning)
-
100.00%
-
39 / 39
+
73.33%
+
22 / 30
-  __construct() -
-
- 100.00% covered (success) +  __construct() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.30 +
+
+ 33.33% covered (danger)
-
100.00%
-
3 / 3
+
33.33%
+
1 / 3
-  addGrantType(GrantTypeInterface $grantType, $identifier = null) -
-
- 100.00% covered (success) +  addGrantType(GrantTypeInterface $grantType, $identifier = null) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 3 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 5.20 +
+
+ 37.50% covered (danger)
-
100.00%
-
9 / 9
+
37.50%
+
3 / 8
-  hasGrantType($identifier) -
-
- 100.00% covered (success) +  hasGrantType($identifier) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 2 +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
@@ -179,7 +179,7 @@
100.00%
-
2 / 2
+
1 / 1
@@ -403,14 +403,9 @@
100.00%
1 / 1
3 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
6 / 6
+   +
+
 
@@ -431,7 +426,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -518,12 +513,12 @@     public function __construct()     {         // Set Bearer as the default token type -         $this->setTokenType(new Bearer()); +         $this->setTokenType(new Bearer()); -         parent::__construct(); +         parent::__construct();         return $this; -     } +     }     /**      * Enable support for a grant @@ -535,21 +530,21 @@      */     public function addGrantType(GrantTypeInterface $grantType, $identifier = null)     { -         if (is_null($identifier)) { -             $identifier = $grantType->getIdentifier(); -         } +         if (is_null($identifier)) { +             $identifier = $grantType->getIdentifier(); +         }         // Inject server into grant -         $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; +     }     /**      * Check if a grant type has been enabled @@ -560,8 +555,8 @@      */     public function hasGrantType($identifier)     { -         return (array_key_exists($identifier, $this->grantTypes)); -     } +         return (array_key_exists($identifier, $this->grantTypes)); +     }     /**      * Returns response types @@ -569,9 +564,9 @@      * @return array      */     public function getResponseTypes() -     { -         return $this->responseTypes; -     } +     { +         return $this->responseTypes; +     }     /**      * Require the "scope" parameter in checkAuthoriseParams() @@ -585,7 +580,7 @@         $this->requireScopeParam = $require;         return $this; -     } +     }     /**      * Is the scope parameter required? @@ -594,8 +589,8 @@      */     public function scopeParamRequired()     { -         return $this->requireScopeParam; -     } +         return $this->requireScopeParam; +     }     /**      * Default scope to be used if none is provided and requireScopeParam() is false @@ -609,7 +604,7 @@         $this->defaultScope = $default;         return $this; -     } +     }     /**      * Default scope to be used if none is provided and requireScopeParam is false @@ -618,8 +613,8 @@      */     public function getDefaultScope()     { -         return $this->defaultScope; -     } +         return $this->defaultScope; +     }     /**      * Require the "state" parameter in checkAuthoriseParams() @@ -629,7 +624,7 @@     public function stateParamRequired()     {         return $this->requireStateParam; -     } +     }     /**      * Require the "state" parameter in checkAuthoriseParams() @@ -643,7 +638,7 @@         $this->requireStateParam = $require;         return $this; -     } +     }     /**      * Get the scope delimiter @@ -652,8 +647,8 @@      */     public function getScopeDelimiter()     { -         return $this->scopeDelimiter; -     } +         return $this->scopeDelimiter; +     }     /**      * Set the scope delimiter @@ -667,7 +662,7 @@         $this->scopeDelimiter = $scopeDelimiter;         return $this; -     } +     }     /**      * Get the TTL for an access token @@ -676,8 +671,8 @@      */     public function getAccessTokenTTL()     { -         return $this->accessTokenTTL; -     } +         return $this->accessTokenTTL; +     }     /**      * Set the TTL for an access token @@ -691,7 +686,7 @@         $this->accessTokenTTL = $accessTokenTTL;         return $this; -     } +     }     /**      * Issue an access token @@ -702,19 +697,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'); +         }         // Ensure grant type is one that is recognised and is enabled -         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); +         }         // Complete the flow -         return $this->getGrantType($grantType)->completeFlow(); -     } +         return $this->getGrantType($grantType)->completeFlow(); +     }     /**      * Return a grant type class @@ -727,12 +722,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); +     } } @@ -746,7 +741,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Entity/AbstractTokenEntity.php.html b/master/Entity/AbstractTokenEntity.php.html index a3202819..6f1703d4 100644 --- a/master/Entity/AbstractTokenEntity.php.html +++ b/master/Entity/AbstractTokenEntity.php.html @@ -51,23 +51,23 @@
0.00%
0 / 1
-
-
- 90.00% covered (success) +
+
+ 88.89% covered (warning)
-
90.00%
-
9 / 10
- CRAP +
88.89%
+
8 / 9
+ CRAP
-
- 96.30% covered (success) +
+ 91.30% covered (success)
-
96.30%
-
26 / 27
+
91.30%
+
21 / 23
@@ -88,15 +88,15 @@
91.67%
11 / 12
- 18 + 18.21
-
- 96.30% covered (success) +
+ 91.30% covered (success)
-
96.30%
-
26 / 27
+
91.30%
+
21 / 23
@@ -117,7 +117,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -138,7 +138,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -194,14 +194,9 @@
100.00%
1 / 1
1 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
1 / 1
+   +
+
 
@@ -247,28 +242,7 @@ -  associateScope(ScopeEntity $scope) -
-
- 100.00% covered (success) -
-
- -
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
4 / 4
- - - -  formatScopes($unformatted = []) +  associateScope(ScopeEntity $scope)
0.00% covered (danger) @@ -277,15 +251,36 @@
0.00%
0 / 1
- 4.02 + 2.50
-
- 88.89% covered (warning) +
+ 50.00% covered (warning)
-
88.89%
-
8 / 9
+
50.00%
+
2 / 4
+ + + +  formatScopes($unformatted = []) +
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
1 / 1
+ 4 +
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
4 / 4
@@ -411,10 +406,10 @@      */     public function __construct(AbstractServer $server)     { -         $this->server = $server; +         $this->server = $server; -         return $this; -     } +         return $this; +     }     /**      * Set session @@ -425,10 +420,10 @@      */     public function setSession(SessionEntity $session)     { -         $this->session = $session; +         $this->session = $session; -         return $this; -     } +         return $this; +     }     /**      * Set the expire time of the token @@ -439,10 +434,10 @@      */     public function setExpireTime($expireTime)     { -         $this->expireTime = $expireTime; +         $this->expireTime = $expireTime; -         return $this; -     } +         return $this; +     }     /**      * Return token expire time @@ -451,8 +446,8 @@      */     public function getExpireTime()     { -         return $this->expireTime; -     } +         return $this->expireTime; +     }     /**      * Is the token expired? @@ -461,8 +456,8 @@      */     public function isExpired()     { -         return ((time() - $this->expireTime) > 0); -     } +         return ((time() - $this->expireTime) > 0); +     }     /**      * Set token ID @@ -473,10 +468,10 @@      */     public function setId($id = null)     { -         $this->id = ($id !== null) ? $id : SecureKey::generate(); +         $this->id = ($id !== null) ? $id : SecureKey::generate(); -         return $this; -     } +         return $this; +     }     /**      * Get the token ID @@ -485,8 +480,8 @@      */     public function getId()     { -         return $this->id; -     } +         return $this->id; +     }     /**      * Associate a scope @@ -497,12 +492,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; -     } +     }     /**      * Format the local scopes array @@ -513,19 +508,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; +     }     /**      * Returns the token as a string if the object is cast as a string @@ -534,12 +529,12 @@      */     public function __toString()     { -         if ($this->id === null) { +         if ($this->id === null) {             return ''; -         } +         }         return $this->id; -     } +     }     /**      * Expire the token @@ -567,7 +562,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Entity/AccessTokenEntity.php.html b/master/Entity/AccessTokenEntity.php.html index a83fde35..c2eaabb7 100644 --- a/master/Entity/AccessTokenEntity.php.html +++ b/master/Entity/AccessTokenEntity.php.html @@ -51,23 +51,23 @@
0.00%
0 / 1
-
-
- 80.00% covered (warning) +
+
+ 0.00% covered (danger)
-
80.00%
-
4 / 5
- CRAP +
0.00%
+
0 / 3
+ CRAP
-
- 84.00% covered (warning) +
+ 71.43% covered (warning)
-
84.00%
-
21 / 25
+
71.43%
+
15 / 21
@@ -80,48 +80,27 @@
0.00%
0 / 1
-
-
- 80.00% covered (warning) +
+
+ 40.00% covered (danger)
-
80.00%
-
4 / 5
- 9.33 +
40.00%
+
2 / 5
+ 10.89
-
- 84.00% covered (warning) +
+ 71.43% covered (warning)
-
84.00%
-
21 / 25
+
71.43%
+
15 / 21
-  getSession() -
-
- 100.00% covered (success) -
-
- -
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
4 / 4
- - - -  hasScope($scope) +  getSession()
0.00% covered (danger) @@ -130,7 +109,35 @@
0.00%
0 / 1
- 6 + 2.03 +
+
+ 80.00% covered (warning) +
+
+ +
80.00%
+
4 / 5
+ + + +  hasScope($scope) +
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
1 / 1
+ 2 +   +
+
 
+ + + +  getScopes()
0.00% covered (danger) @@ -138,49 +145,37 @@
0.00%
-
0 / 4
+
0 / 1
+ 2.15 +
+
+ 66.67% covered (warning) +
+
+ +
66.67%
+
4 / 6
-  getScopes() -
-
- 100.00% covered (success) +  save() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 2.11 +
+
+ 70.00% covered (warning)
-
100.00%
-
6 / 6
- - - -  save() -
-
- 100.00% covered (success) -
-
- -
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
9 / 9
+
70.00%
+
7 / 10
@@ -194,14 +189,9 @@
100.00%
1 / 1
1 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
2 / 2
+   +
+
 
@@ -234,14 +224,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; -     } +     }     /**      * Check if access token has an associated scope @@ -252,12 +242,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]); +     }     /**      * Return all scopes associated with the access token @@ -266,41 +256,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; +     }     /**      * {@inheritdoc}      */     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() +         );         // Associate the scope with the token -         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; +     }     /**      * {@inheritdoc}      */     public function expire()     { -         $this->server->getAccessTokenStorage()->delete($this); -     } +         $this->server->getAccessTokenStorage()->delete($this); +     } } @@ -314,7 +304,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Entity/AuthCodeEntity.php.html b/master/Entity/AuthCodeEntity.php.html index 8c2dd85b..77884f70 100644 --- a/master/Entity/AuthCodeEntity.php.html +++ b/master/Entity/AuthCodeEntity.php.html @@ -42,61 +42,61 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 83.33% covered (warning)
-
100.00%
-
7 / 7
- CRAP -
-
- 100.00% covered (success) +
83.33%
+
5 / 6
+ CRAP +
+
+ 86.96% covered (warning)
-
100.00%
-
31 / 31
+
86.96%
+
20 / 23
- AuthCodeEntity -
-
- 100.00% covered (success) + AuthCodeEntity +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 85.71% covered (warning)
-
100.00%
-
7 / 7
- 11 -
-
- 100.00% covered (success) +
85.71%
+
6 / 7
+ 11.27 +
+
+ 86.96% covered (warning)
-
100.00%
-
31 / 31
+
86.96%
+
20 / 23
@@ -142,24 +142,24 @@ -  generateRedirectUri($state = null, $queryDelimeter = '?') -
-
- 100.00% covered (success) +  generateRedirectUri($state = null, $queryDelimeter = '?') +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 2.86 +
+
+ 40.00% covered (danger)
-
100.00%
-
6 / 6
+
40.00%
+
2 / 5
@@ -201,7 +201,7 @@
100.00%
-
6 / 6
+
4 / 4
@@ -222,7 +222,7 @@
100.00%
-
10 / 10
+
7 / 7
@@ -236,14 +236,9 @@
100.00%
1 / 1
1 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
2 / 2
+   +
+
 
@@ -288,7 +283,7 @@         $this->redirectUri = $redirectUri;         return $this; -     } +     }     /**      * Get the redirect URI @@ -297,8 +292,8 @@      */     public function getRedirectUri()     { -         return $this->redirectUri; -     } +         return $this->redirectUri; +     }     /**      * Generate a redirect URI @@ -310,14 +305,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, +         ]); +     }     /**      * Get session @@ -328,12 +323,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; -     } +     }     /**      * Return all scopes associated with the session @@ -344,12 +339,12 @@     {         if ($this->scopes === null) {             $this->scopes = $this->formatScopes( -                 $this->server->getAuthCodeStorage()->getScopes($this) -             ); -         } +                 $this->server->getAuthCodeStorage()->getScopes($this) +             ); +         }         return $this->scopes; -     } +     }     /**      * {@inheritdoc} @@ -359,25 +354,25 @@         $this->server->getAuthCodeStorage()->create(             $this->getId(),             $this->getExpireTime(), -             $this->getSession()->getId(), +             $this->getSession()->getId(),             $this->getRedirectUri() -         ); +         );         // Associate the scope with the token         foreach ($this->getScopes() as $scope) { -             $this->server->getAuthCodeStorage()->associateScope($this, $scope); -         } +             $this->server->getAuthCodeStorage()->associateScope($this, $scope); +         }         return $this; -     } +     }     /**      * {@inheritdoc}      */     public function expire()     { -         $this->server->getAuthCodeStorage()->delete($this); -     } +         $this->server->getAuthCodeStorage()->delete($this); +     } } @@ -391,7 +386,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Entity/ClientEntity.php.html b/master/Entity/ClientEntity.php.html index 1543d511..a9a92cd7 100644 --- a/master/Entity/ClientEntity.php.html +++ b/master/Entity/ClientEntity.php.html @@ -67,7 +67,7 @@
100.00%
-
6 / 6
+
7 / 7
@@ -96,7 +96,7 @@
100.00%
-
6 / 6
+
7 / 7
@@ -117,7 +117,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -275,10 +275,10 @@      */     public function __construct(AbstractServer $server)     { -         $this->server = $server; +         $this->server = $server; -         return $this; -     } +         return $this; +     }     /**      * Return the client identifier @@ -287,8 +287,8 @@      */     public function getId()     { -         return $this->id; -     } +         return $this->id; +     }     /**      * Return the client secret @@ -298,7 +298,7 @@     public function getSecret()     {         return $this->secret; -     } +     }     /**      * Get the client name @@ -308,7 +308,7 @@     public function getName()     {         return $this->name; -     } +     }     /**      * Returnt the client redirect URI @@ -318,7 +318,7 @@     public function getRedirectUri()     {         return $this->redirectUri; -     } +     } } @@ -332,7 +332,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Entity/EntityTrait.php.html b/master/Entity/EntityTrait.php.html index 1cf6eb75..6fca3da6 100644 --- a/master/Entity/EntityTrait.php.html +++ b/master/Entity/EntityTrait.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 60.00% covered (warning)
-
100.00%
-
6 / 6
+
60.00%
+
3 / 5
- EntityTrait -
-
- 100.00% covered (success) + EntityTrait +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 3 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 3.58 +
+
+ 60.00% covered (warning)
-
100.00%
-
6 / 6
+
60.00%
+
3 / 5
-  hydrate(array $properties) -
-
- 100.00% covered (success) +  hydrate(array $properties) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 3 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 3.58 +
+
+ 60.00% covered (warning)
-
100.00%
-
6 / 6
+
60.00%
+
3 / 5
@@ -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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Entity/RefreshTokenEntity.php.html b/master/Entity/RefreshTokenEntity.php.html index 6b23afc9..05349070 100644 --- a/master/Entity/RefreshTokenEntity.php.html +++ b/master/Entity/RefreshTokenEntity.php.html @@ -58,7 +58,7 @@
100.00%
-
5 / 5
+
4 / 4
CRAP
@@ -67,7 +67,7 @@
100.00%
-
16 / 16
+
11 / 11
@@ -96,7 +96,7 @@
100.00%
-
16 / 16
+
11 / 11
@@ -138,7 +138,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -159,7 +159,7 @@
100.00%
-
4 / 4
+
2 / 2
@@ -180,7 +180,7 @@
100.00%
-
6 / 6
+
4 / 4
@@ -194,14 +194,9 @@
100.00%
1 / 1
1 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
2 / 2
+   +
+
 
@@ -253,7 +248,7 @@         $this->accessTokenId = $accessTokenId;         return $this; -     } +     }     /**      * Associate an access token @@ -267,7 +262,7 @@         $this->accessTokenEntity = $accessTokenEntity;         return $this; -     } +     }     /**      * Return access token @@ -276,12 +271,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; +     }     /**      * {@inheritdoc} @@ -291,8 +286,8 @@         $this->server->getRefreshTokenStorage()->create(             $this->getId(),             $this->getExpireTime(), -             $this->getAccessToken()->getId() -         ); +             $this->getAccessToken()->getId() +         );     }     /** @@ -300,8 +295,8 @@      */     public function expire()     { -         $this->server->getRefreshTokenStorage()->delete($this); -     } +         $this->server->getRefreshTokenStorage()->delete($this); +     } } @@ -315,7 +310,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Entity/ScopeEntity.php.html b/master/Entity/ScopeEntity.php.html index 7fbd0dfe..bfb81c3c 100644 --- a/master/Entity/ScopeEntity.php.html +++ b/master/Entity/ScopeEntity.php.html @@ -58,7 +58,7 @@
100.00%
-
4 / 4
+
3 / 3
CRAP
@@ -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%
-
2 / 2
+
3 / 3
@@ -152,14 +152,9 @@
100.00%
1 / 1
1 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
1 / 1
+   +
+
 
@@ -180,7 +175,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -240,10 +235,10 @@      */     public function __construct(AbstractServer $server)     { -         $this->server = $server; +         $this->server = $server; -         return $this; -     } +         return $this; +     }     /**      * Return the scope identifer @@ -252,8 +247,8 @@      */     public function getId()     { -         return $this->id; -     } +         return $this->id; +     }     /**      * Return the scope's description @@ -262,8 +257,8 @@      */     public function getDescription()     { -         return $this->description; -     } +         return $this->description; +     }     /**      * Returns a JSON object when entity is passed into json_encode @@ -275,8 +270,8 @@         return [             'id'    =>  $this->getId(),             'description'   =>  $this->getDescription() -         ]; -     } +         ]; +     } } @@ -290,7 +285,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Entity/SessionEntity.php.html b/master/Entity/SessionEntity.php.html index 614239b8..666cbf96 100644 --- a/master/Entity/SessionEntity.php.html +++ b/master/Entity/SessionEntity.php.html @@ -67,7 +67,7 @@
100.00%
-
53 / 53
+
41 / 41
@@ -96,7 +96,7 @@
100.00%
-
53 / 53
+
41 / 41
@@ -117,7 +117,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -180,7 +180,7 @@
100.00%
-
4 / 4
+
2 / 2
@@ -201,7 +201,7 @@
100.00%
-
4 / 4
+
2 / 2
@@ -222,7 +222,7 @@
100.00%
-
4 / 4
+
3 / 3
@@ -243,7 +243,7 @@
100.00%
-
9 / 9
+
4 / 4
@@ -264,7 +264,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -285,7 +285,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -306,7 +306,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -411,7 +411,7 @@
100.00%
-
11 / 11
+
5 / 5
@@ -512,10 +512,10 @@      */     public function __construct(AbstractServer $server)     { -         $this->server = $server; +         $this->server = $server; -         return $this; -     } +         return $this; +     }     /**      * Set the session identifier @@ -526,10 +526,10 @@      */     public function setId($id)     { -         $this->id = $id; +         $this->id = $id; -         return $this; -     } +         return $this; +     }     /**      * Return the session identifier @@ -538,8 +538,8 @@      */     public function getId()     { -         return $this->id; -     } +         return $this->id; +     }     /**      * Associate a scope @@ -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; -     } +     }     /**      * Check if access token has an associated scope @@ -567,11 +567,11 @@     public function hasScope($scope)     {         if ($this->scopes === null) { -             $this->getScopes(); -         } +             $this->getScopes(); +         }         return isset($this->scopes[$scope]); -     } +     }     /**      * Return all scopes associated with the session @@ -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; +     }     /**      * Format the local scopes array @@ -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; -     } +     }     /**      * Associate an access token with the session @@ -620,7 +620,7 @@         $this->accessToken = $accessToken;         return $this; -     } +     }     /**      * Associate a refresh token with the session @@ -634,7 +634,7 @@         $this->refreshToken = $refreshToken;         return $this; -     } +     }     /**      * Associate a client with the session @@ -648,7 +648,7 @@         $this->client = $client;         return $this; -     } +     }     /**      * Return the session client @@ -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; -     } +     }     /**      * Set the session owner @@ -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; -     } +     }     /**      * Return session owner identifier @@ -692,7 +692,7 @@     public function getOwnerId()     {         return $this->ownerId; -     } +     }     /**      * Return session owner type @@ -702,7 +702,7 @@     public function getOwnerType()     {         return $this->ownerType; -     } +     }     /**      * Save the session @@ -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);         // Associate the scope with the session         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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Entity/dashboard.html b/master/Entity/dashboard.html index 6f89fda9..16280332 100644 --- a/master/Entity/dashboard.html +++ b/master/Entity/dashboard.html @@ -59,7 +59,9 @@ - AccessTokenEntity84% + EntityTrait60% + AccessTokenEntity71% + AuthCodeEntity86% @@ -76,7 +78,9 @@ - AccessTokenEntity9 + AuthCodeEntity11 + AccessTokenEntity10 + EntityTrait3 @@ -114,8 +118,12 @@ - hasScope0% - formatScopes88% + generateRedirectUri40% + associateScope50% + hydrate60% + getScopes66% + save70% + getSession80% @@ -132,8 +140,12 @@ - hasScope6 - formatScopes4 + hydrate3 + generateRedirectUri2 + associateScope2 + getScopes2 + save2 + getSession2 @@ -143,7 +155,7 @@
@@ -164,7 +176,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,1,6], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,1,1,1,1,4], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -182,7 +194,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([1,0,0,0,0,0,0,0,0,1,0,52], "Method Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,1,1,2,1,1,0,48], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -233,7 +245,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .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')) + .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')) .transition() .duration(500) .call(chart); @@ -258,7 +270,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>"],[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')) + .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')) .transition() .duration(500) .call(chart); diff --git a/master/Entity/index.html b/master/Entity/index.html index 4367fa31..593b3949 100644 --- a/master/Entity/index.html +++ b/master/Entity/index.html @@ -44,49 +44,49 @@ Total
-
- 97.08% covered (success) +
+ 90.51% covered (success)
-
97.08%
-
166 / 171
-
-
- 96.15% covered (success) -
-
- -
96.15%
-
50 / 52
+
90.51%
+
124 / 137
-
- 75.00% covered (warning) +
+ 86.96% covered (warning)
-
75.00%
-
6 / 8
+
86.96%
+
40 / 46
+
+
+ 50.00% covered (warning) +
+
+ +
50.00%
+
4 / 8
AbstractTokenEntity.php
-
- 96.30% covered (success) +
+ 91.30% covered (success)
-
96.30%
-
26 / 27
-
-
- 90.00% covered (success) +
91.30%
+
21 / 23
+
+
+ 88.89% covered (warning)
-
90.00%
-
9 / 10
+
88.89%
+
8 / 9
0.00% covered (danger) @@ -100,21 +100,21 @@ AccessTokenEntity.php
-
- 84.00% covered (warning) +
+ 71.43% covered (warning)
-
84.00%
-
21 / 25
-
-
- 80.00% covered (warning) +
71.43%
+
15 / 21
+
+
+ 0.00% covered (danger)
-
80.00%
-
4 / 5
+
0.00%
+
0 / 3
0.00% covered (danger) @@ -126,31 +126,31 @@ - AuthCodeEntity.php -
-
- 100.00% covered (success) + AuthCodeEntity.php +
+
+ 86.96% covered (warning)
-
100.00%
-
31 / 31
-
-
- 100.00% covered (success) +
86.96%
+
20 / 23
+
+
+ 83.33% covered (warning)
-
100.00%
-
7 / 7
-
-
- 100.00% covered (success) +
83.33%
+
5 / 6
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
@@ -162,7 +162,7 @@
100.00%
-
6 / 6
+
7 / 7
100.00% covered (success) @@ -182,31 +182,31 @@ - EntityTrait.php -
-
- 100.00% covered (success) + EntityTrait.php +
+
+ 60.00% covered (warning)
-
100.00%
-
6 / 6
-
-
- 100.00% covered (success) +
60.00%
+
3 / 5
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
@@ -218,35 +218,7 @@
100.00%
-
16 / 16
-
-
- 100.00% covered (success) -
-
- -
100.00%
-
5 / 5
-
-
- 100.00% covered (success) -
-
- -
100.00%
-
1 / 1
- - - - ScopeEntity.php -
-
- 100.00% covered (success) -
-
- -
100.00%
-
7 / 7
+
11 / 11
100.00% covered (success) @@ -265,6 +237,34 @@
1 / 1
+ + ScopeEntity.php +
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
6 / 6
+
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
3 / 3
+
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
1 / 1
+ + SessionEntity.php
@@ -274,7 +274,7 @@
100.00%
-
53 / 53
+
41 / 41
100.00% covered (success) @@ -305,7 +305,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Event/ClientAuthenticationFailedEvent.php.html b/master/Event/ClientAuthenticationFailedEvent.php.html index a2358ded..322b9eb1 100644 --- a/master/Event/ClientAuthenticationFailedEvent.php.html +++ b/master/Event/ClientAuthenticationFailedEvent.php.html @@ -51,6 +51,15 @@
0.00%
0 / 1
+
+
+ 50.00% covered (warning) +
+
+ +
50.00%
+
1 / 2
+ CRAP
66.67% covered (warning) @@ -59,15 +68,6 @@
66.67%
2 / 3
- CRAP -
-
- 75.00% covered (warning) -
-
- -
75.00%
-
3 / 4
@@ -88,36 +88,36 @@
66.67%
2 / 3
- 3.14 + 3.33
-
- 75.00% covered (warning) +
+ 66.67% covered (warning)
-
75.00%
-
3 / 4
+
66.67%
+
2 / 3
-  __construct(Request $request) -
-
- 100.00% covered (success) +  __construct(Request $request) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
@@ -142,24 +142,19 @@ -  getRequest() -
-
- 0.00% covered (danger) +  getRequest() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 2 -
-
- 0.00% covered (danger) -
-
- -
0.00%
-
0 / 1
+
100.00%
+
1 / 1
+ 1 +   +
+
 
@@ -200,7 +195,7 @@     public function __construct(Request $request)     {         $this->request = $request; -     } +     }     /**      * The name of the event @@ -210,7 +205,7 @@     public function getName()     {         return 'error.auth.client'; -     } +     }     /**      * Return request @@ -219,8 +214,8 @@      */     public function getRequest()     { -         return $this->request; -     } +         return $this->request; +     } } @@ -234,7 +229,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Event/SessionOwnerEvent.php.html b/master/Event/SessionOwnerEvent.php.html index ecee75e3..097c5b81 100644 --- a/master/Event/SessionOwnerEvent.php.html +++ b/master/Event/SessionOwnerEvent.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 66.67% covered (warning)
-
100.00%
-
3 / 3
- CRAP -
-
- 100.00% covered (success) +
66.67%
+
2 / 3
+ CRAP +
+
+ 75.00% covered (warning)
-
100.00%
-
4 / 4
+
75.00%
+
3 / 4
- SessionOwnerEvent -
-
- 100.00% covered (success) + SessionOwnerEvent +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 66.67% covered (warning)
-
100.00%
-
3 / 3
- 3 -
-
- 100.00% covered (success) +
66.67%
+
2 / 3
+ 3.14 +
+
+ 75.00% covered (warning)
-
100.00%
-
4 / 4
+
75.00%
+
3 / 4
-  __construct(SessionEntity $session) -
-
- 100.00% covered (success) +  __construct(SessionEntity $session) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
@@ -200,7 +200,7 @@     public function __construct(SessionEntity $session)     {         $this->session = $session; -     } +     }     /**      * The name of the event @@ -210,7 +210,7 @@     public function getName()     {         return 'session.owner'; -     } +     }     /**      * Return session @@ -220,7 +220,7 @@     public function getSession()     {         return $this->session; -     } +     } } @@ -234,7 +234,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Event/UserAuthenticationFailedEvent.php.html b/master/Event/UserAuthenticationFailedEvent.php.html index f00255ca..2ee2aa22 100644 --- a/master/Event/UserAuthenticationFailedEvent.php.html +++ b/master/Event/UserAuthenticationFailedEvent.php.html @@ -51,6 +51,15 @@
0.00%
0 / 1
+
+
+ 50.00% covered (warning) +
+
+ +
50.00%
+
1 / 2
+ CRAP
66.67% covered (warning) @@ -59,15 +68,6 @@
66.67%
2 / 3
- CRAP -
-
- 75.00% covered (warning) -
-
- -
75.00%
-
3 / 4
@@ -88,36 +88,36 @@
66.67%
2 / 3
- 3.14 + 3.33
-
- 75.00% covered (warning) +
+ 66.67% covered (warning)
-
75.00%
-
3 / 4
+
66.67%
+
2 / 3
-  __construct(Request $request) -
-
- 100.00% covered (success) +  __construct(Request $request) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
@@ -142,24 +142,19 @@ -  getRequest() -
-
- 0.00% covered (danger) +  getRequest() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 2 -
-
- 0.00% covered (danger) -
-
- -
0.00%
-
0 / 1
+
100.00%
+
1 / 1
+ 1 +   +
+
 
@@ -200,7 +195,7 @@     public function __construct(Request $request)     {         $this->request = $request; -     } +     }     /**      * The name of the event @@ -210,7 +205,7 @@     public function getName()     {         return 'error.auth.user'; -     } +     }     /**      * Return request @@ -219,8 +214,8 @@      */     public function getRequest()     { -         return $this->request; -     } +         return $this->request; +     } } @@ -234,7 +229,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Event/dashboard.html b/master/Event/dashboard.html index 552ae729..e54e7b1b 100644 --- a/master/Event/dashboard.html +++ b/master/Event/dashboard.html @@ -59,8 +59,9 @@ - UserAuthenticationFailedEvent75% - ClientAuthenticationFailedEvent75% + ClientAuthenticationFailedEvent66% + UserAuthenticationFailedEvent66% + SessionOwnerEvent75% @@ -114,8 +115,9 @@ - getRequest0% - getRequest0% + __construct50% + __construct50% + __construct50% @@ -141,7 +143,7 @@
@@ -162,7 +164,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,1], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,2,1,0,0,0], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -180,7 +182,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([2,0,0,0,0,0,0,0,0,0,0,7], "Method Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,3,0,0,0,0,6], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -231,7 +233,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[75,3,"ClientAuthenticationFailedEvent<\/a>"],[100,3,"SessionOwnerEvent<\/a>"],[75,3,"UserAuthenticationFailedEvent<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[66.666666666667,3,"ClientAuthenticationFailedEvent<\/a>"],[75,3,"SessionOwnerEvent<\/a>"],[66.666666666667,3,"UserAuthenticationFailedEvent<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -256,7 +258,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .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')) + .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')) .transition() .duration(500) .call(chart); diff --git a/master/Event/index.html b/master/Event/index.html index b1e9b62f..a5f5cf0c 100644 --- a/master/Event/index.html +++ b/master/Event/index.html @@ -44,33 +44,61 @@ Total
-
- 83.33% covered (warning) +
+ 70.00% covered (warning)
-
83.33%
-
10 / 12
+
70.00%
+
7 / 10
-
- 77.78% covered (warning) +
+ 57.14% covered (warning)
-
77.78%
-
7 / 9
+
57.14%
+
4 / 7
-
- 33.33% covered (danger) +
+ 0.00% covered (danger)
-
33.33%
-
1 / 3
+
0.00%
+
0 / 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) @@ -97,44 +125,8 @@
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) @@ -143,6 +135,14 @@
66.67%
2 / 3
+
+
+ 50.00% covered (warning) +
+
+ +
50.00%
+
1 / 2
0.00% covered (danger) @@ -165,7 +165,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/AccessDeniedException.php.html b/master/Exception/AccessDeniedException.php.html index f1054e74..e2ec92d5 100644 --- a/master/Exception/AccessDeniedException.php.html +++ b/master/Exception/AccessDeniedException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
- AccessDeniedException -
-
- 100.00% covered (success) + AccessDeniedException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
-  __construct() -
-
- 100.00% covered (success) +  __construct() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/InvalidClientException.php.html b/master/Exception/InvalidClientException.php.html index ff66414d..02451e6b 100644 --- a/master/Exception/InvalidClientException.php.html +++ b/master/Exception/InvalidClientException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
- InvalidClientException -
-
- 100.00% covered (success) + InvalidClientException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
-  __construct() -
-
- 100.00% covered (success) +  __construct() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/InvalidCredentialsException.php.html b/master/Exception/InvalidCredentialsException.php.html index da08156d..434e6591 100644 --- a/master/Exception/InvalidCredentialsException.php.html +++ b/master/Exception/InvalidCredentialsException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
- InvalidCredentialsException -
-
- 100.00% covered (success) + InvalidCredentialsException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
-  __construct() -
-
- 100.00% covered (success) +  __construct() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/InvalidGrantException.php.html b/master/Exception/InvalidGrantException.php.html index e7cda50e..d142b77b 100644 --- a/master/Exception/InvalidGrantException.php.html +++ b/master/Exception/InvalidGrantException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 50.00% covered (warning)
-
100.00%
-
6 / 6
+
50.00%
+
2 / 4
- InvalidGrantException -
-
- 100.00% covered (success) + InvalidGrantException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
6 / 6
+
50.00%
+
2 / 4
-  __construct($parameter) -
-
- 100.00% covered (success) +  __construct($parameter) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
6 / 6
+
50.00%
+
2 / 4
@@ -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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/InvalidRefreshException.php.html b/master/Exception/InvalidRefreshException.php.html index 242ab0ab..2162f3fd 100644 --- a/master/Exception/InvalidRefreshException.php.html +++ b/master/Exception/InvalidRefreshException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
- InvalidRefreshException -
-
- 100.00% covered (success) + InvalidRefreshException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
-  __construct() -
-
- 100.00% covered (success) +  __construct() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/InvalidRequestException.php.html b/master/Exception/InvalidRequestException.php.html index 45f7fd51..9b03fd63 100644 --- a/master/Exception/InvalidRequestException.php.html +++ b/master/Exception/InvalidRequestException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 60.00% covered (warning)
-
100.00%
-
7 / 7
+
60.00%
+
3 / 5
- InvalidRequestException -
-
- 100.00% covered (success) + InvalidRequestException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.06 +
+
+ 60.00% covered (warning)
-
100.00%
-
7 / 7
+
60.00%
+
3 / 5
-  __construct($parameter, $redirectUri = null) -
-
- 100.00% covered (success) +  __construct($parameter, $redirectUri = null) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.06 +
+
+ 60.00% covered (warning)
-
100.00%
-
7 / 7
+
60.00%
+
3 / 5
@@ -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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/InvalidScopeException.php.html b/master/Exception/InvalidScopeException.php.html index e6fc9ab7..b59c9b86 100644 --- a/master/Exception/InvalidScopeException.php.html +++ b/master/Exception/InvalidScopeException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 60.00% covered (warning)
-
100.00%
-
7 / 7
+
60.00%
+
3 / 5
- InvalidScopeException -
-
- 100.00% covered (success) + InvalidScopeException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.06 +
+
+ 60.00% covered (warning)
-
100.00%
-
7 / 7
+
60.00%
+
3 / 5
-  __construct($parameter, $redirectUri = null) -
-
- 100.00% covered (success) +  __construct($parameter, $redirectUri = null) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.06 +
+
+ 60.00% covered (warning)
-
100.00%
-
7 / 7
+
60.00%
+
3 / 5
@@ -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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/OAuthException.php.html b/master/Exception/OAuthException.php.html index f8c49dbc..d2d5ae70 100644 --- a/master/Exception/OAuthException.php.html +++ b/master/Exception/OAuthException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 66.67% covered (warning)
-
100.00%
-
4 / 4
- CRAP +
66.67%
+
2 / 3
+ CRAP
-
- 100.00% covered (success) +
+ 93.33% covered (success)
-
100.00%
-
25 / 25
+
93.33%
+
14 / 15
- OAuthException -
-
- 100.00% covered (success) + OAuthException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 75.00% covered (warning)
-
100.00%
-
4 / 4
- 15 +
75.00%
+
3 / 4
+ 15.07
-
- 100.00% covered (success) +
+ 93.33% covered (success)
-
100.00%
-
25 / 25
+
93.33%
+
14 / 15
-  __construct($msg = 'An error occured') -
-
- 100.00% covered (success) +  __construct($msg = 'An error occured') +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
@@ -131,14 +131,9 @@
100.00%
1 / 1
2 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
1 / 1
+   +
+
 
@@ -159,7 +154,7 @@
100.00%
-
5 / 5
+
4 / 4
@@ -180,7 +175,7 @@
100.00%
-
17 / 17
+
9 / 9
@@ -233,8 +228,8 @@      */     public function __construct($msg = 'An error occured')     { -         parent::__construct($msg); -     } +         parent::__construct($msg); +     }     /**      * Should the server redirect back to the client? @@ -243,8 +238,8 @@      */     public function shouldRedirect()     { -         return is_null($this->redirectUri) ? false : true; -     } +         return is_null($this->redirectUri) ? false : true; +     }     /**      * Return redirect URI if set @@ -253,14 +248,14 @@      */     public function getRedirectUri()     { -         return RedirectUri::make( +         return RedirectUri::make(             $this->redirectUri,             [                 'error' =>  $this->errorType,                 'message' =>  $this->getMessage(), -             ] -         ); -     } +             ] +         ); +     }     /**      * Get all headers that have to be send with the error response @@ -269,22 +264,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; -         } +         }         // Add "WWW-Authenticate" header         // @@ -315,8 +310,8 @@             }         }         // @codeCoverageIgnoreEnd -         return $headers; -     } +         return $headers; +     } } @@ -330,7 +325,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/ServerErrorException.php.html b/master/Exception/ServerErrorException.php.html index 3ddbfd4c..434e05f4 100644 --- a/master/Exception/ServerErrorException.php.html +++ b/master/Exception/ServerErrorException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 33.33% covered (danger)
-
100.00%
-
3 / 3
+
33.33%
+
1 / 3
- ServerErrorException -
-
- 100.00% covered (success) + ServerErrorException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 3.19 +
+
+ 33.33% covered (danger)
-
100.00%
-
3 / 3
+
33.33%
+
1 / 3
-  __construct($parameter = null) -
-
- 100.00% covered (success) +  __construct($parameter = null) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 3.19 +
+
+ 33.33% covered (danger)
-
100.00%
-
3 / 3
+
33.33%
+
1 / 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/UnauthorizedClientException.php.html b/master/Exception/UnauthorizedClientException.php.html index 1d42a85f..8e57acbb 100644 --- a/master/Exception/UnauthorizedClientException.php.html +++ b/master/Exception/UnauthorizedClientException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
- UnauthorizedClientException -
-
- 100.00% covered (success) + UnauthorizedClientException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 2
-  __construct() -
-
- 100.00% covered (success) +  __construct() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
+
50.00%
+
1 / 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/UnsupportedGrantTypeException.php.html b/master/Exception/UnsupportedGrantTypeException.php.html index f824a003..61a5910c 100644 --- a/master/Exception/UnsupportedGrantTypeException.php.html +++ b/master/Exception/UnsupportedGrantTypeException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 50.00% covered (warning)
-
100.00%
-
6 / 6
+
50.00%
+
2 / 4
- UnsupportedGrantTypeException -
-
- 100.00% covered (success) + UnsupportedGrantTypeException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
6 / 6
+
50.00%
+
2 / 4
-  __construct($parameter) -
-
- 100.00% covered (success) +  __construct($parameter) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
6 / 6
+
50.00%
+
2 / 4
@@ -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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/UnsupportedResponseTypeException.php.html b/master/Exception/UnsupportedResponseTypeException.php.html index 9162ac64..054dc085 100644 --- a/master/Exception/UnsupportedResponseTypeException.php.html +++ b/master/Exception/UnsupportedResponseTypeException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 66.67% covered (warning)
-
100.00%
-
3 / 3
+
66.67%
+
2 / 3
- UnsupportedResponseTypeException -
-
- 100.00% covered (success) + UnsupportedResponseTypeException +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.04 +
+
+ 66.67% covered (warning)
-
100.00%
-
3 / 3
+
66.67%
+
2 / 3
-  __construct($parameter, $redirectUri = null) -
-
- 100.00% covered (success) +  __construct($parameter, $redirectUri = null) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.04 +
+
+ 66.67% covered (warning)
-
100.00%
-
3 / 3
+
66.67%
+
2 / 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Exception/dashboard.html b/master/Exception/dashboard.html index 9cd24e7a..c4d82e6c 100644 --- a/master/Exception/dashboard.html +++ b/master/Exception/dashboard.html @@ -59,6 +59,17 @@ + ServerErrorException33% + AccessDeniedException50% + InvalidClientException50% + InvalidCredentialsException50% + InvalidGrantException50% + InvalidRefreshException50% + UnauthorizedClientException50% + UnsupportedGrantTypeException50% + InvalidRequestException60% + InvalidScopeException60% + UnsupportedResponseTypeException66% @@ -75,6 +86,7 @@ + ServerErrorException3 @@ -112,6 +124,18 @@ + __construct33% + __construct50% + __construct50% + __construct50% + __construct50% + __construct50% + __construct50% + __construct50% + __construct50% + __construct60% + __construct60% + __construct66% @@ -128,6 +152,7 @@ + __construct3 @@ -137,7 +162,7 @@
@@ -158,7 +183,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,12], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,1,0,7,3,0,0,1,0], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -176,7 +201,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,15], "Method Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,1,0,8,3,0,0,0,3], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -227,7 +252,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .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')) + .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')) .transition() .duration(500) .call(chart); @@ -252,7 +277,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .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')) + .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')) .transition() .duration(500) .call(chart); diff --git a/master/Exception/index.html b/master/Exception/index.html index 3a96c90d..bb3e0ef7 100644 --- a/master/Exception/index.html +++ b/master/Exception/index.html @@ -42,367 +42,367 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 65.31% covered (warning)
-
100.00%
-
67 / 67
-
-
- 100.00% covered (success) +
65.31%
+
32 / 49
+
+
+ 14.29% covered (danger)
-
100.00%
-
15 / 15
-
-
- 100.00% covered (success) +
14.29%
+
2 / 14
+
+
+ 0.00% covered (danger)
-
100.00%
-
12 / 12
+
0.00%
+
0 / 12
-
AccessDeniedException.php -
-
- 100.00% covered (success) + AccessDeniedException.php +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
-
-
- 100.00% covered (success) +
50.00%
+
1 / 2
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- InvalidClientException.php -
-
- 100.00% covered (success) + InvalidClientException.php +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
-
-
- 100.00% covered (success) +
50.00%
+
1 / 2
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- InvalidCredentialsException.php -
-
- 100.00% covered (success) + InvalidCredentialsException.php +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
-
-
- 100.00% covered (success) +
50.00%
+
1 / 2
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- InvalidGrantException.php -
-
- 100.00% covered (success) + InvalidGrantException.php +
+
+ 50.00% covered (warning)
-
100.00%
-
6 / 6
-
-
- 100.00% covered (success) +
50.00%
+
2 / 4
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- InvalidRefreshException.php -
-
- 100.00% covered (success) + InvalidRefreshException.php +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
-
-
- 100.00% covered (success) +
50.00%
+
1 / 2
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- InvalidRequestException.php -
-
- 100.00% covered (success) + InvalidRequestException.php +
+
+ 60.00% covered (warning)
-
100.00%
-
7 / 7
-
-
- 100.00% covered (success) +
60.00%
+
3 / 5
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- InvalidScopeException.php -
-
- 100.00% covered (success) + InvalidScopeException.php +
+
+ 60.00% covered (warning)
-
100.00%
-
7 / 7
-
-
- 100.00% covered (success) +
60.00%
+
3 / 5
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
OAuthException.php
-
- 100.00% covered (success) +
+ 93.33% covered (success)
-
100.00%
-
25 / 25
-
-
- 100.00% covered (success) +
93.33%
+
14 / 15
+
+
+ 66.67% covered (warning)
-
100.00%
-
4 / 4
-
-
- 100.00% covered (success) +
66.67%
+
2 / 3
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- ServerErrorException.php -
-
- 100.00% covered (success) + ServerErrorException.php +
+
+ 33.33% covered (danger)
-
100.00%
-
3 / 3
-
-
- 100.00% covered (success) +
33.33%
+
1 / 3
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- UnauthorizedClientException.php -
-
- 100.00% covered (success) + UnauthorizedClientException.php +
+
+ 50.00% covered (warning)
-
100.00%
-
2 / 2
-
-
- 100.00% covered (success) +
50.00%
+
1 / 2
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- UnsupportedGrantTypeException.php -
-
- 100.00% covered (success) + UnsupportedGrantTypeException.php +
+
+ 50.00% covered (warning)
-
100.00%
-
6 / 6
-
-
- 100.00% covered (success) +
50.00%
+
2 / 4
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- UnsupportedResponseTypeException.php -
-
- 100.00% covered (success) + UnsupportedResponseTypeException.php +
+
+ 66.67% covered (warning)
-
100.00%
-
3 / 3
-
-
- 100.00% covered (success) +
66.67%
+
2 / 3
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
@@ -417,7 +417,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Grant/AbstractGrant.php.html b/master/Grant/AbstractGrant.php.html index bba2b9fd..012212fa 100644 --- a/master/Grant/AbstractGrant.php.html +++ b/master/Grant/AbstractGrant.php.html @@ -67,7 +67,7 @@
100.00%
-
48 / 48
+
27 / 27
@@ -96,7 +96,7 @@
100.00%
-
48 / 48
+
27 / 27
@@ -180,7 +180,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -222,7 +222,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -243,7 +243,7 @@
100.00%
-
30 / 30
+
12 / 12
@@ -264,7 +264,7 @@
100.00%
-
7 / 7
+
4 / 4
@@ -335,8 +335,8 @@      */     public function getIdentifier()     { -         return $this->identifier; -     } +         return $this->identifier; +     }     /**      * {@inheritdoc} @@ -346,15 +346,15 @@         $this->identifier = $identifier;         return $this; -     } +     }     /**      * {@inheritdoc}      */     public function getResponseType()     { -         return $this->responseType; -     } +         return $this->responseType; +     }     /**      * Get the TTL for an access token @@ -363,12 +363,12 @@      */     public function getAccessTokenTTL()     { -         if ($this->accessTokenTTL) { +         if ($this->accessTokenTTL) {             return $this->accessTokenTTL; -         } +         } -         return $this->server->getAccessTokenTTL(); -     } +         return $this->server->getAccessTokenTTL(); +     }     /**      * Override the default access token expire time @@ -382,17 +382,17 @@         $this->accessTokenTTL = $accessTokenTTL;         return $this; -     } +     }     /**      * {@inheritdoc}      */     public function setAuthorizationServer(AuthorizationServer $server)     { -         $this->server = $server; +         $this->server = $server; -         return $this; -     } +         return $this; +     }     /**      * Given a list of scopes, validate them and return an array of Scope entities @@ -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]); // Remove any junk scopes -             } -         } +         for ($i = 0; $i < count($scopesList); $i++) { +             $scopesList[$i] = trim($scopesList[$i]); +             if ($scopesList[$i] === '') { +                 unset($scopesList[$i]); // Remove any junk scopes +             } +         }         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; +     }     /**      * Format the local scopes array @@ -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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Grant/AuthCodeGrant.php.html b/master/Grant/AuthCodeGrant.php.html index 0fe99ee4..8bafbe89 100644 --- a/master/Grant/AuthCodeGrant.php.html +++ b/master/Grant/AuthCodeGrant.php.html @@ -67,7 +67,7 @@
100.00%
-
105 / 105
+
15 / 15
@@ -96,7 +96,7 @@
100.00%
-
105 / 105
+
15 / 15
@@ -138,7 +138,7 @@
100.00%
-
30 / 30
+
6 / 6
@@ -159,7 +159,7 @@
100.00%
-
15 / 15
+
1 / 1
@@ -180,7 +180,7 @@
100.00%
-
58 / 58
+
6 / 6
@@ -272,56 +272,56 @@     public function checkAuthorizeParams()     {         // Get required params -         $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'); +         }         // Validate client ID and 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); +         }         // Ensure response type is one that is recognised -         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); +         }         // Validate any scopes that are in the request -         $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         ]; -     } +     }     /**      * Parse a new authorize request @@ -335,27 +335,27 @@     public function newAuthorizeRequest($type, $typeId, $authParams = [])     {         // Create a new session -         $session = new SessionEntity($this->server); -         $session->setOwner($type, $typeId); -         $session->associateClient($authParams['client']); +         $session = new SessionEntity($this->server); +         $session->setOwner($type, $typeId); +         $session->associateClient($authParams['client']);         // Create a new auth code -         $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); -             $session->associateScope($scope); -         } +             $authCode->associateScope($scope); +             $session->associateScope($scope); +         } -         $session->save(); -         $authCode->setSession($session); -         $authCode->save(); +         $session->save(); +         $authCode->setSession($session); +         $authCode->save(); -         return $authCode->generateRedirectUri($authParams['state']); -     } +         return $authCode->generateRedirectUri($authParams['state']); +     }     /**      * Complete the auth code grant @@ -367,100 +367,100 @@     public function completeFlow()     {         // Get the required params -         $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'); +         }         // Validate client ID and client secret         $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(); +         }         // Validate the auth code -         $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'); +         }         // Ensure the auth code hasn't expired -         if ($code->isExpired() === true) { -             throw new Exception\InvalidRequestException('code'); -         } +         if ($code->isExpired() === true) { +             throw new Exception\InvalidRequestException('code'); +         }         // Check redirect URI presented matches redirect URI originally used in authorize request -         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();         // Generate the access token -         $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());         // Associate a refresh token if set -         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()); +         }         // Expire the auth code -         $code->expire(); +         $code->expire();         // Save all the things -         $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(); +     } } @@ -474,7 +474,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Grant/ClientCredentialsGrant.php.html b/master/Grant/ClientCredentialsGrant.php.html index 753a8215..c394a576 100644 --- a/master/Grant/ClientCredentialsGrant.php.html +++ b/master/Grant/ClientCredentialsGrant.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 72.73% covered (warning)
-
100.00%
-
37 / 37
+
72.73%
+
8 / 11
- ClientCredentialsGrant -
-
- 100.00% covered (success) + ClientCredentialsGrant +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 6 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 6.73 +
+
+ 72.73% covered (warning)
-
100.00%
-
37 / 37
+
72.73%
+
8 / 11
-  completeFlow() -
-
- 100.00% covered (success) +  completeFlow() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 6 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 6.73 +
+
+ 72.73% covered (warning)
-
100.00%
-
37 / 37
+
72.73%
+
8 / 11
@@ -188,64 +188,64 @@     public function completeFlow()     {         // Get the required params -         $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'); +         }         // Validate client ID and 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(); +         }         // Validate any scopes that are in the request -         $scopeParam = $this->server->getRequest()->request->get('scope', ''); -         $scopes = $this->validateScopes($scopeParam, $client); +         $scopeParam = $this->server->getRequest()->request->get('scope', ''); +         $scopes = $this->validateScopes($scopeParam, $client);         // Create a new session -         $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);         // Generate an access token -         $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());         // Associate scopes with the session and access token -         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); +         }         // Save everything -         $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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Grant/GrantTypeInterface.php.html b/master/Grant/GrantTypeInterface.php.html index 508d5d1f..c58af9a2 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Grant/PasswordGrant.php.html b/master/Grant/PasswordGrant.php.html index d06bcf47..84f6b2a2 100644 --- a/master/Grant/PasswordGrant.php.html +++ b/master/Grant/PasswordGrant.php.html @@ -42,61 +42,61 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 66.67% covered (warning)
-
100.00%
-
3 / 3
- CRAP -
-
- 100.00% covered (success) +
66.67%
+
2 / 3
+ CRAP +
+
+ 76.92% covered (warning)
-
100.00%
-
62 / 62
+
76.92%
+
10 / 13
- PasswordGrant -
-
- 100.00% covered (success) + PasswordGrant +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 66.67% covered (warning)
-
100.00%
-
3 / 3
- 15 -
-
- 100.00% covered (success) +
66.67%
+
2 / 3
+ 17.77 +
+
+ 76.92% covered (warning)
-
100.00%
-
62 / 62
+
76.92%
+
10 / 13
@@ -117,7 +117,7 @@
100.00%
-
2 / 2
+
1 / 1
@@ -138,28 +138,28 @@
100.00%
-
3 / 3
+
1 / 1
-  completeFlow() -
-
- 100.00% covered (success) +  completeFlow() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 11 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 13.45 +
+
+ 72.73% covered (warning)
-
100.00%
-
57 / 57
+
72.73%
+
8 / 11
@@ -231,7 +231,7 @@     public function setVerifyCredentialsCallback(callable $callback)     {         $this->callback = $callback; -     } +     }     /**      * Return the callback function @@ -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; -     } +     }     /**      * Complete the password grant @@ -259,95 +259,95 @@     public function completeFlow()     {         // Get the required params -         $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'); +         }         // Validate client ID and 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'); +         }         // Check if user's username and password are correct -         $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(); +         }         // Validate any scopes that are in the request -         $scopeParam = $this->server->getRequest()->request->get('scope', ''); -         $scopes = $this->validateScopes($scopeParam, $client); +         $scopeParam = $this->server->getRequest()->request->get('scope', ''); +         $scopes = $this->validateScopes($scopeParam, $client);         // Create a new session -         $session = new SessionEntity($this->server); -         $session->setOwner('user', $userId); -         $session->associateClient($client); +         $session = new SessionEntity($this->server); +         $session->setOwner('user', $userId); +         $session->associateClient($client);         // Generate an access token -         $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());         // Associate scopes with the session and access token -         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());         // Associate a refresh token if set -         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()); +         }         // Save everything -         $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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Grant/RefreshTokenGrant.php.html b/master/Grant/RefreshTokenGrant.php.html index 54bb75c0..cf07a7c3 100644 --- a/master/Grant/RefreshTokenGrant.php.html +++ b/master/Grant/RefreshTokenGrant.php.html @@ -67,7 +67,7 @@
100.00%
-
66 / 66
+
19 / 19
@@ -96,7 +96,7 @@
100.00%
-
66 / 66
+
19 / 19
@@ -201,7 +201,7 @@
100.00%
-
60 / 60
+
13 / 13
@@ -273,7 +273,7 @@     public function getRefreshTokenTTL()     {         return $this->refreshTokenTTL; -     } +     }     /**      * Set the rotation boolean of the refresh token @@ -291,116 +291,116 @@      */     public function shouldRotateRefreshTokens()     { -         return $this->refreshTokenRotate; -     } +         return $this->refreshTokenRotate; +     }     /**      * {@inheritdoc}      */     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'); +         }         // Validate client ID and 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'); +         }         // Validate 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(); +         }         // Ensure the old refresh token hasn't expired -         if ($oldRefreshToken->isExpired() === true) { -             throw new Exception\InvalidRefreshException(); -         } +         if ($oldRefreshToken->isExpired() === true) { +             throw new Exception\InvalidRefreshException(); +         } -         $oldAccessToken = $oldRefreshToken->getAccessToken(); +         $oldAccessToken = $oldRefreshToken->getAccessToken();         // Get the scopes for the original session -         $session = $oldAccessToken->getSession(); -         $scopes = $this->formatScopes($session->getScopes()); +         $session = $oldAccessToken->getSession(); +         $scopes = $this->formatScopes($session->getScopes());         // Get and validate any requested scopes -         $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 no new scopes are requested then give the access token the original session scopes -         if (count($requestedScopes) === 0) { -             $newScopes = $scopes; -         } else { +         if (count($requestedScopes) === 0) { +             $newScopes = $scopes; +         } else {             // The OAuth spec says that a refreshed access token can have the original scopes or fewer so ensure             //  the request doesn't include any new scopes -             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; -         } +         }         // Generate a new access token and assign it the correct sessions -         $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); +         }         // Expire the old token and save the new one -         $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()) {             // Expire the old refresh token -             $oldRefreshToken->expire(); +             $oldRefreshToken->expire();             // Generate a new refresh token -             $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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Grant/dashboard.html b/master/Grant/dashboard.html index 5d72416b..de78f1b8 100644 --- a/master/Grant/dashboard.html +++ b/master/Grant/dashboard.html @@ -59,6 +59,8 @@ + ClientCredentialsGrant72% + PasswordGrant76% @@ -75,6 +77,8 @@ + PasswordGrant17 + ClientCredentialsGrant6 @@ -112,6 +116,8 @@ + completeFlow72% + completeFlow72% @@ -128,6 +134,8 @@ + completeFlow13 + completeFlow6 @@ -137,7 +145,7 @@
@@ -158,7 +166,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,5], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,0,0,3], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -176,7 +184,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,21], "Method Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,0,0,19], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -227,7 +235,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[100,21,"AbstractGrant<\/a>"],[100,25,"AuthCodeGrant<\/a>"],[100,6,"ClientCredentialsGrant<\/a>"],[100,15,"PasswordGrant<\/a>"],[100,16,"RefreshTokenGrant<\/a>"]], 'Class Complexity')) + .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')) .transition() .duration(500) .call(chart); @@ -252,7 +260,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>"],[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')) + .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')) .transition() .duration(500) .call(chart); diff --git a/master/Grant/index.html b/master/Grant/index.html index d55e4edb..7cfc3aba 100644 --- a/master/Grant/index.html +++ b/master/Grant/index.html @@ -44,29 +44,29 @@ Total
-
- 100.00% covered (success) +
+ 92.94% covered (success)
-
100.00%
-
318 / 318
+
92.94%
+
79 / 85
-
- 100.00% covered (success) +
+ 90.48% covered (success)
-
100.00%
-
21 / 21
-
-
- 100.00% covered (success) +
90.48%
+
19 / 21
+
+
+ 60.00% covered (warning)
-
100.00%
-
5 / 5
+
60.00%
+
3 / 5
@@ -78,7 +78,7 @@
100.00%
-
48 / 48
+
27 / 27
100.00% covered (success) @@ -106,7 +106,7 @@
100.00%
-
105 / 105
+
15 / 15
100.00% covered (success) @@ -126,31 +126,31 @@ - ClientCredentialsGrant.php -
-
- 100.00% covered (success) + ClientCredentialsGrant.php +
+
+ 72.73% covered (warning)
-
100.00%
-
37 / 37
-
-
- 100.00% covered (success) +
72.73%
+
8 / 11
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
@@ -167,31 +167,31 @@ - PasswordGrant.php -
-
- 100.00% covered (success) + PasswordGrant.php +
+
+ 76.92% covered (warning)
-
100.00%
-
62 / 62
-
-
- 100.00% covered (success) +
76.92%
+
10 / 13
+
+
+ 66.67% covered (warning)
-
100.00%
-
3 / 3
-
-
- 100.00% covered (success) +
66.67%
+
2 / 3
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
@@ -203,7 +203,7 @@
100.00%
-
66 / 66
+
19 / 19
100.00% covered (success) @@ -234,7 +234,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/ResourceServer.php.html b/master/ResourceServer.php.html index e55667d0..b6d75183 100644 --- a/master/ResourceServer.php.html +++ b/master/ResourceServer.php.html @@ -41,87 +41,87 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 80.00% covered (warning)
-
100.00%
-
5 / 5
- CRAP -
-
- 100.00% covered (success) +
80.00%
+
4 / 5
+ CRAP +
+
+ 70.00% covered (warning)
-
100.00%
-
29 / 29
+
70.00%
+
14 / 20
- ResourceServer -
-
- 100.00% covered (success) + ResourceServer +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 80.00% covered (warning)
-
100.00%
-
5 / 5
- 12 -
-
- 100.00% covered (success) +
80.00%
+
4 / 5
+ 15.89 +
+
+ 70.00% covered (warning)
-
100.00%
-
29 / 29
+
70.00%
+
14 / 20
-  __construct( +  __construct( SessionInterface $sessionStorage, AccessTokenInterface $accessTokenStorage, ClientInterface $clientStorage, ScopeInterface $scopeStorage ) -
-
- 100.00% covered (success) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.42 +
+
+ 25.00% covered (danger)
-
100.00%
-
7 / 7
+
25.00%
+
2 / 8
@@ -184,7 +184,7 @@
100.00%
-
9 / 9
+
4 / 4
@@ -205,7 +205,7 @@
100.00%
-
10 / 10
+
5 / 5
@@ -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);         // Set Bearer as the default token type -         $this->setTokenType(new Bearer()); +         $this->setTokenType(new Bearer()); -         parent::__construct(); +         parent::__construct();         return $this; -     } +     }     /**      * Sets the query string key for the access token. @@ -295,7 +295,7 @@         $this->tokenKey = $key;         return $this; -     } +     }     /**      * Gets the access token @@ -305,7 +305,7 @@     public function getAccessToken()     {         return $this->accessToken; -     } +     }     /**      * Checks if the access token is valid or not @@ -321,25 +321,25 @@     public function isValidRequest($headerOnly = true, $accessToken = null)     {         $accessTokenString = ($accessToken !== null) -                                 ? $accessToken -                                 : $this->determineAccessToken($headerOnly); +                                 ? $accessToken +                                 : $this->determineAccessToken($headerOnly);         // Set the access token -         $this->accessToken = $this->getAccessTokenStorage()->get($accessTokenString); +         $this->accessToken = $this->getAccessTokenStorage()->get($accessTokenString);         // Ensure the access token exists         if (!$this->accessToken instanceof AccessTokenEntity) { -             throw new AccessDeniedException(); -         } +             throw new AccessDeniedException(); +         }         // Check the access token hasn't expired         // Ensure the auth code hasn't expired -         if ($this->accessToken->isExpired() === true) { -             throw new AccessDeniedException(); -         } +         if ($this->accessToken->isExpired() === true) { +             throw new AccessDeniedException(); +         }         return true; -     } +     }     /**      * Reads in the access token from the headers @@ -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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Storage/AbstractStorage.php.html b/master/Storage/AbstractStorage.php.html index f05b8b8f..2ef52aa0 100644 --- a/master/Storage/AbstractStorage.php.html +++ b/master/Storage/AbstractStorage.php.html @@ -67,7 +67,7 @@
100.00%
-
3 / 3
+
4 / 4
@@ -96,7 +96,7 @@
100.00%
-
3 / 3
+
4 / 4
@@ -117,7 +117,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -185,7 +185,7 @@         $this->server = $server;         return $this; -     } +     }     /**      * Return the server @@ -195,7 +195,7 @@     protected function getServer()     {         return $this->server; -     } +     } } @@ -209,7 +209,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Storage/AccessTokenInterface.php.html b/master/Storage/AccessTokenInterface.php.html index c17981b5..49391609 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Storage/AuthCodeInterface.php.html b/master/Storage/AuthCodeInterface.php.html index 7ed4e47c..b56b3d38 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Storage/ClientInterface.php.html b/master/Storage/ClientInterface.php.html index 9da7fb6b..226fc195 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Storage/MacTokenInterface.php.html b/master/Storage/MacTokenInterface.php.html index 654b45b8..21429cac 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Storage/RefreshTokenInterface.php.html b/master/Storage/RefreshTokenInterface.php.html index 2880a95a..2715754a 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Storage/ScopeInterface.php.html b/master/Storage/ScopeInterface.php.html index e7916620..c7488fcb 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Storage/SessionInterface.php.html b/master/Storage/SessionInterface.php.html index 4721a8ec..51a896af 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Storage/StorageInterface.php.html b/master/Storage/StorageInterface.php.html index 8b542f31..2d9abe43 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Storage/dashboard.html b/master/Storage/dashboard.html index dead9dab..769f8dbc 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 b29f8854..37b97a64 100644 --- a/master/Storage/index.html +++ b/master/Storage/index.html @@ -50,7 +50,7 @@
100.00%
-
3 / 3
+
4 / 4
100.00% covered (success) @@ -78,7 +78,7 @@
100.00%
-
3 / 3
+
4 / 4
100.00% covered (success) @@ -213,7 +213,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/TokenType/AbstractTokenType.php.html b/master/TokenType/AbstractTokenType.php.html index a09f5459..e0c0e23a 100644 --- a/master/TokenType/AbstractTokenType.php.html +++ b/master/TokenType/AbstractTokenType.php.html @@ -58,7 +58,7 @@
100.00%
-
4 / 4
+
2 / 2
CRAP
@@ -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%
-
2 / 2
+
3 / 3
@@ -138,7 +138,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -152,14 +152,9 @@
100.00%
1 / 1
1 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
2 / 2
+   +
+
 
@@ -173,14 +168,9 @@
100.00%
1 / 1
2 -
-
- 100.00% covered (success) -
-
- -
100.00%
-
1 / 1
+   +
+
 
@@ -232,36 +222,36 @@      */     public function setServer(AbstractServer $server)     { -         $this->server = $server; +         $this->server = $server; -         return $this; -     } +         return $this; +     }     /**      * {@inheritdoc}      */     public function setSession(SessionEntity $session)     { -         $this->session = $session; +         $this->session = $session; -         return $this; -     } +         return $this; +     }     /**      * {@inheritdoc}      */     public function setParam($key, $value)     { -         $this->response[$key] = $value; -     } +         $this->response[$key] = $value; +     }     /**      * {@inheritdoc}      */     public function getParam($key)     { -         return isset($this->response[$key]) ? $this->response[$key] : null; -     } +         return isset($this->response[$key]) ? $this->response[$key] : null; +     } } @@ -275,7 +265,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/TokenType/Bearer.php.html b/master/TokenType/Bearer.php.html index d98adee7..9a947404 100644 --- a/master/TokenType/Bearer.php.html +++ b/master/TokenType/Bearer.php.html @@ -67,7 +67,7 @@
100.00%
-
11 / 11
+
6 / 6
@@ -96,7 +96,7 @@
100.00%
-
11 / 11
+
6 / 6
@@ -117,7 +117,7 @@
100.00%
-
8 / 8
+
4 / 4
@@ -138,7 +138,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -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; +     }     /**      * {@inheritdoc}      */     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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/TokenType/MAC.php.html b/master/TokenType/MAC.php.html index bd466607..4623b2ad 100644 --- a/master/TokenType/MAC.php.html +++ b/master/TokenType/MAC.php.html @@ -61,13 +61,13 @@
3 / 4
CRAP
-
- 85.96% covered (warning) +
+ 85.71% covered (warning)
-
85.96%
-
49 / 57
+
85.71%
+
18 / 21
@@ -88,36 +88,36 @@
75.00%
3 / 4
- 22.22 + 22.29
-
- 85.96% covered (warning) +
+ 85.71% covered (warning)
-
85.96%
-
49 / 57
+
85.71%
+
18 / 21
-  generateResponse() -
-
- 100.00% covered (success) +  generateResponse() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.05 +
+
+ 62.50% covered (warning)
-
100.00%
-
9 / 9
+
62.50%
+
5 / 8
@@ -138,7 +138,7 @@
100.00%
-
7 / 7
+
2 / 2
@@ -159,28 +159,28 @@
100.00%
-
8 / 8
+
2 / 2
-  hash_equals($knownString, $userString) -
-
- 0.00% covered (danger) +  hash_equals($knownString, $userString) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 12.19 -
-
- 20.00% covered (danger) +
100.00%
+
1 / 1
+ 4 +
+
+ 100.00% covered (success)
-
20.00%
-
2 / 10
+
100.00%
+
1 / 1
@@ -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; -     } +     }     /**      * {@inheritdoc}      */     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; -         } +         }         // Find all the parameters expressed in the header -         $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);             // @codeCoverageIgnoreStart             if (count($matches) !== 3) { @@ -259,56 +259,56 @@             }             // @codeCoverageIgnoreEnd -             $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);         // Validate parameters -         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');         // Try to find the MAC key for the access token -         $macKey = $this->server->getMacStorage()->getByAccessToken($accessToken); +         $macKey = $this->server->getMacStorage()->getByAccessToken($accessToken);         if ($macKey === null) {             return; -         } +         }         // Calculate and compare the signature         $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 the access token if the signature matches -         return ($this->hash_equals($calculatedSignature, $signature)) ? $accessToken : null; -     } +         return ($this->hash_equals($calculatedSignature, $signature)) ? $accessToken : null; +     }     /**      * Prevent timing attack @@ -318,20 +318,20 @@      */     private function hash_equals($knownString, $userString)     { -         if (function_exists('\hash_equals')) { +         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 (strlen($knownString) !== strlen($userString)) { +             return false; +         } +         $len = strlen($knownString); +         $result = 0; +         for ($i = 0; $i < $len; $i++) { +             $result |= (ord($knownString[$i]) ^ ord($userString[$i])); +         }         // They are only identical strings if $result is exactly 0... -         return 0 === $result; -     } +         return 0 === $result; +     } } @@ -345,7 +345,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/TokenType/TokenTypeInterface.php.html b/master/TokenType/TokenTypeInterface.php.html index 5c393ac5..fb87aac8 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/TokenType/dashboard.html b/master/TokenType/dashboard.html index 0fea6946..0df61e0e 100644 --- a/master/TokenType/dashboard.html +++ b/master/TokenType/dashboard.html @@ -114,7 +114,7 @@ - hash_equals20% + generateResponse62% @@ -131,7 +131,6 @@ - hash_equals12 @@ -141,7 +140,7 @@
@@ -180,7 +179,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,1,0,0,0,0,0,0,0,9], "Method Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,1,0,0,0,9], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -231,7 +230,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[100,5,"AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[85.964912280702,21,"MAC<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[100,5,"AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[85.714285714286,21,"MAC<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -256,7 +255,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>"],[100,1,"MAC::generateResponse<\/a>"],[100,13,"MAC::determineAccessTokenInHeader<\/a>"],[100,3,"MAC::anonymous function<\/a>"],[20,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>"],[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')) .transition() .duration(500) .call(chart); diff --git a/master/TokenType/index.html b/master/TokenType/index.html index 5c8e4b6f..71b76206 100644 --- a/master/TokenType/index.html +++ b/master/TokenType/index.html @@ -42,23 +42,23 @@ - Total -
-
- 89.33% covered (warning) -
-
- -
89.33%
-
67 / 75
+ Total
-
- 90.00% covered (success) +
+ 90.91% covered (success)
-
90.00%
-
9 / 10
+
90.91%
+
30 / 33
+
+
+ 87.50% covered (warning) +
+
+ +
87.50%
+
7 / 8
66.67% covered (warning) @@ -78,7 +78,7 @@
100.00%
-
7 / 7
+
6 / 6
100.00% covered (success) @@ -86,7 +86,7 @@
100.00%
-
4 / 4
+
2 / 2
100.00% covered (success) @@ -106,7 +106,7 @@
100.00%
-
11 / 11
+
6 / 6
100.00% covered (success) @@ -128,13 +128,13 @@ MAC.php
-
- 85.96% covered (warning) +
+ 85.71% covered (warning)
-
85.96%
-
49 / 57
+
85.71%
+
18 / 21
75.00% covered (warning) @@ -178,7 +178,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html b/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html index fa70d7e1..d549e231 100644 --- a/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html +++ b/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html @@ -43,82 +43,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 33.33% covered (danger)
-
100.00%
-
6 / 6
+
33.33%
+
2 / 6
- DefaultAlgorithm -
-
- 100.00% covered (success) + DefaultAlgorithm +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 4 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 8.74 +
+
+ 33.33% covered (danger)
-
100.00%
-
6 / 6
+
33.33%
+
2 / 6
-  generate($len = 40) -
-
- 100.00% covered (success) +  generate($len = 40) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 4 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 8.74 +
+
+ 33.33% covered (danger)
-
100.00%
-
6 / 6
+
33.33%
+
2 / 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);             // We want to stop execution if the key fails because, well, that is bad. -             if ($bytes === false || $strong === false) { +             if ($bytes === false || $strong === false) {                 // @codeCoverageIgnoreStart                 throw new \Exception('Error Generating Key');                 // @codeCoverageIgnoreEnd -             } -             $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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html b/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html index d6bc2514..5e009ee3 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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Util/KeyAlgorithm/dashboard.html b/master/Util/KeyAlgorithm/dashboard.html index 254d3796..a128cec5 100644 --- a/master/Util/KeyAlgorithm/dashboard.html +++ b/master/Util/KeyAlgorithm/dashboard.html @@ -60,6 +60,7 @@ + DefaultAlgorithm33% @@ -76,6 +77,7 @@ + DefaultAlgorithm8 @@ -113,6 +115,7 @@ + generate33% @@ -129,6 +132,7 @@ + generate8 @@ -138,7 +142,7 @@
@@ -159,7 +163,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,1], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,1,0,0,0,0,0,0,0], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -177,7 +181,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,1], "Method Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,1,0,0,0,0,0,0,0], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -228,7 +232,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[100,4,"DefaultAlgorithm<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[33.333333333333,4,"DefaultAlgorithm<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -253,7 +257,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[100,4,"DefaultAlgorithm::generate<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[33.333333333333,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 1577601f..626a3ad3 100644 --- a/master/Util/KeyAlgorithm/index.html +++ b/master/Util/KeyAlgorithm/index.html @@ -43,59 +43,59 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 33.33% covered (danger)
-
100.00%
-
6 / 6
-
-
- 100.00% covered (success) +
33.33%
+
2 / 6
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
-
DefaultAlgorithm.php -
-
- 100.00% covered (success) + DefaultAlgorithm.php +
+
+ 33.33% covered (danger)
-
100.00%
-
6 / 6
-
-
- 100.00% covered (success) +
33.33%
+
2 / 6
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
@@ -123,7 +123,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Util/RedirectUri.php.html b/master/Util/RedirectUri.php.html index 27c76b46..eb602219 100644 --- a/master/Util/RedirectUri.php.html +++ b/master/Util/RedirectUri.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- CRAP -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ CRAP +
+
+ 33.33% covered (danger)
-
100.00%
-
2 / 2
+
33.33%
+
1 / 3
- RedirectUri -
-
- 100.00% covered (success) + RedirectUri +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 3.19 +
+
+ 33.33% covered (danger)
-
100.00%
-
2 / 2
+
33.33%
+
1 / 3
-  make($uri, $params = [], $queryDelimeter = '?') -
-
- 100.00% covered (success) +  make($uri, $params = [], $queryDelimeter = '?') +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 3.19 +
+
+ 33.33% covered (danger)
-
100.00%
-
2 / 2
+
33.33%
+
1 / 3
@@ -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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Util/SecureKey.php.html b/master/Util/SecureKey.php.html index 478f6003..f03658b3 100644 --- a/master/Util/SecureKey.php.html +++ b/master/Util/SecureKey.php.html @@ -42,82 +42,82 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 33.33% covered (danger)
-
100.00%
-
3 / 3
- CRAP -
-
- 100.00% covered (success) +
33.33%
+
1 / 3
+ CRAP +
+
+ 50.00% covered (warning)
-
100.00%
-
7 / 7
+
50.00%
+
3 / 6
- SecureKey -
-
- 100.00% covered (success) + SecureKey +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 33.33% covered (danger)
-
100.00%
-
3 / 3
- 4 -
-
- 100.00% covered (success) +
33.33%
+
1 / 3
+ 6.00 +
+
+ 50.00% covered (warning)
-
100.00%
-
7 / 7
+
50.00%
+
3 / 6
-  generate($len = 40) -
-
- 100.00% covered (success) +  generate($len = 40) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 1 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 1.12 +
+
+ 50.00% covered (warning)
-
100.00%
-
1 / 1
+
50.00%
+
1 / 2
@@ -138,28 +138,28 @@
100.00%
-
2 / 2
+
1 / 1
-  getAlgorithm() -
-
- 100.00% covered (success) +  getAlgorithm() +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 2 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 3.19 +
+
+ 33.33% covered (danger)
-
100.00%
-
4 / 4
+
33.33%
+
1 / 3
@@ -199,8 +199,8 @@      */     public static function generate($len = 40)     { -         return self::getAlgorithm()->generate($len); -     } +         return self::getAlgorithm()->generate($len); +     }     /**      * @param KeyAlgorithmInterface $algorithm @@ -208,19 +208,19 @@     public static function setAlgorithm(KeyAlgorithmInterface $algorithm)     {         self::$algorithm = $algorithm; -     } +     }     /**      * @return KeyAlgorithmInterface      */     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 PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/Util/dashboard.html b/master/Util/dashboard.html index 72cc1c4e..20b2f9ef 100644 --- a/master/Util/dashboard.html +++ b/master/Util/dashboard.html @@ -59,6 +59,9 @@ + DefaultAlgorithm33% + RedirectUri33% + SecureKey50% @@ -75,6 +78,9 @@ + DefaultAlgorithm8 + SecureKey6 + RedirectUri3 @@ -112,6 +118,10 @@ + generate33% + make33% + getAlgorithm33% + generate50% @@ -128,6 +138,9 @@ + generate8 + make3 + getAlgorithm3 @@ -137,7 +150,7 @@
@@ -158,7 +171,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,3], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,2,0,1,0,0,0,0,0], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -176,7 +189,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,5], "Method Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,3,0,1,0,0,0,0,1], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -227,7 +240,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[100,4,"DefaultAlgorithm<\/a>"],[100,2,"RedirectUri<\/a>"],[100,4,"SecureKey<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[33.333333333333,4,"DefaultAlgorithm<\/a>"],[33.333333333333,2,"RedirectUri<\/a>"],[50,4,"SecureKey<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -252,7 +265,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .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')) + .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')) .transition() .duration(500) .call(chart); diff --git a/master/Util/index.html b/master/Util/index.html index 5290afd4..70bdf895 100644 --- a/master/Util/index.html +++ b/master/Util/index.html @@ -42,115 +42,115 @@ - Total -
-
- 100.00% covered (success) + Total +
+
+ 40.00% covered (danger)
-
100.00%
-
15 / 15
-
-
- 100.00% covered (success) +
40.00%
+
6 / 15
+
+
+ 20.00% covered (danger)
-
100.00%
-
5 / 5
-
-
- 100.00% covered (success) +
20.00%
+
1 / 5
+
+
+ 0.00% covered (danger)
-
100.00%
-
3 / 3
+
0.00%
+
0 / 3
-
KeyAlgorithm -
-
- 100.00% covered (success) + KeyAlgorithm +
+
+ 33.33% covered (danger)
-
100.00%
-
6 / 6
-
-
- 100.00% covered (success) +
33.33%
+
2 / 6
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- RedirectUri.php -
-
- 100.00% covered (success) + RedirectUri.php +
+
+ 33.33% covered (danger)
-
100.00%
-
2 / 2
-
-
- 100.00% covered (success) +
33.33%
+
1 / 3
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- SecureKey.php -
-
- 100.00% covered (success) + SecureKey.php +
+
+ 50.00% covered (warning)
-
100.00%
-
7 / 7
-
-
- 100.00% covered (success) +
50.00%
+
3 / 6
+
+
+ 33.33% covered (danger)
-
100.00%
-
3 / 3
-
-
- 100.00% covered (success) +
33.33%
+
1 / 3
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
@@ -165,7 +165,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.

diff --git a/master/dashboard.html b/master/dashboard.html index 6a781d72..f9565de8 100644 --- a/master/dashboard.html +++ b/master/dashboard.html @@ -58,10 +58,32 @@ - UserAuthenticationFailedEvent75% - ClientAuthenticationFailedEvent75% - AccessTokenEntity84% + ServerErrorException33% + RedirectUri33% + DefaultAlgorithm33% + SecureKey50% + UnsupportedGrantTypeException50% + UnauthorizedClientException50% + AccessDeniedException50% + InvalidClientException50% + InvalidCredentialsException50% + InvalidGrantException50% + InvalidRefreshException50% + InvalidScopeException60% + EntityTrait60% + InvalidRequestException60% + UserAuthenticationFailedEvent66% + UnsupportedResponseTypeException66% + ClientAuthenticationFailedEvent66% + ResourceServer70% + AccessTokenEntity71% + ClientCredentialsGrant72% + AuthorizationServer73% + SessionOwnerEvent75% + PasswordGrant76% MAC85% + AbstractServer86% + AuthCodeEntity86% @@ -78,8 +100,19 @@ + AuthorizationServer29 + AbstractServer25 MAC22 - AccessTokenEntity9 + PasswordGrant17 + ResourceServer15 + AuthCodeEntity11 + AccessTokenEntity10 + DefaultAlgorithm8 + ClientCredentialsGrant6 + SecureKey6 + EntityTrait3 + ServerErrorException3 + RedirectUri3 @@ -117,11 +150,42 @@ - getRequest0% - getRequest0% - hasScope0% - hash_equals20% - formatScopes88% + addEventListener0% + hasGrantType0% + __construct25% + getAlgorithm33% + __construct33% + make33% + generate33% + __construct33% + addGrantType37% + generateRedirectUri40% + __construct50% + __construct50% + generate50% + __construct50% + __construct50% + __construct50% + __construct50% + __construct50% + __construct50% + __construct50% + associateScope50% + __construct50% + __construct50% + __construct50% + setEventEmitter60% + hydrate60% + __construct60% + __construct60% + generateResponse62% + getScopes66% + getRequest66% + __construct66% + save70% + completeFlow72% + completeFlow72% + getSession80% @@ -138,9 +202,21 @@ - hash_equals12 - hasScope6 - formatScopes4 + completeFlow13 + generate8 + completeFlow6 + addGrantType5 + hydrate3 + __construct3 + make3 + getAlgorithm3 + generateRedirectUri2 + associateScope2 + setEventEmitter2 + getRequest2 + getScopes2 + save2 + getSession2 @@ -150,7 +226,7 @@
@@ -171,7 +247,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,2,1,33], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,3,0,8,6,6,3,2,10], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -189,7 +265,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([3,0,0,1,0,0,0,0,0,1,0,154], "Method Coverage")) + .datum(getCoverageDistributionData([2,0,0,1,6,1,14,8,3,1,0,123], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -240,7 +316,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .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>"],[85.964912280702,21,"MAC<\/a>"],[100,4,"DefaultAlgorithm<\/a>"],[100,2,"RedirectUri<\/a>"],[100,4,"SecureKey<\/a>"],[100,3,"EntityTrait<\/a>"]], 'Class Complexity')) + .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')) .transition() .duration(500) .call(chart); @@ -265,7 +341,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .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>"],[20,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')) + .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')) .transition() .duration(500) .call(chart); diff --git a/master/index.html b/master/index.html index f7382adb..d0a18a58 100644 --- a/master/index.html +++ b/master/index.html @@ -41,63 +41,7 @@ - Total -
-
- 98.07% covered (success) -
-
- -
98.07%
-
761 / 776
-
-
- 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 + Total
83.33% covered (warning) @@ -105,79 +49,135 @@
83.33%
-
10 / 12
+
355 / 426
-
- 77.78% covered (warning) +
+ 75.17% covered (warning)
-
77.78%
-
7 / 9
+
75.17%
+
109 / 145
-
- 33.33% covered (danger) +
+ 26.32% covered (danger)
-
33.33%
-
1 / 3
+
26.32%
+
10 / 38
- Exception + Entity
-
- 100.00% covered (success) +
+ 90.51% covered (success)
-
100.00%
-
67 / 67
-
-
- 100.00% covered (success) +
90.51%
+
124 / 137
+
+
+ 86.96% covered (warning)
-
100.00%
-
15 / 15
-
-
- 100.00% covered (success) +
86.96%
+
40 / 46
+
+
+ 50.00% covered (warning)
-
100.00%
-
12 / 12
+
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
Grant
-
- 100.00% covered (success) +
+ 92.94% covered (success)
-
100.00%
-
318 / 318
+
92.94%
+
79 / 85
-
- 100.00% covered (success) +
+ 90.48% covered (success)
-
100.00%
-
21 / 21
-
-
- 100.00% covered (success) +
90.48%
+
19 / 21
+
+
+ 60.00% covered (warning)
-
100.00%
-
5 / 5
+
60.00%
+
3 / 5
@@ -189,7 +189,7 @@
100.00%
-
3 / 3
+
4 / 4
100.00% covered (success) @@ -209,23 +209,23 @@ - TokenType -
-
- 89.33% covered (warning) -
-
- -
89.33%
-
67 / 75
+ TokenType
-
- 90.00% covered (success) +
+ 90.91% covered (success)
-
90.00%
-
9 / 10
+
90.91%
+
30 / 33
+
+
+ 87.50% covered (warning) +
+
+ +
87.50%
+
7 / 8
66.67% covered (warning) @@ -237,115 +237,115 @@ - Util -
-
- 100.00% covered (success) + Util +
+
+ 40.00% covered (danger)
-
100.00%
-
15 / 15
-
-
- 100.00% covered (success) +
40.00%
+
6 / 15
+
+
+ 20.00% covered (danger)
-
100.00%
-
5 / 5
-
-
- 100.00% covered (success) +
20.00%
+
1 / 5
+
+
+ 0.00% covered (danger)
-
100.00%
-
3 / 3
+
0.00%
+
0 / 3
- AbstractServer.php -
-
- 100.00% covered (success) + AbstractServer.php +
+
+ 86.05% covered (warning)
-
100.00%
-
47 / 47
-
-
- 100.00% covered (success) +
86.05%
+
37 / 43
+
+
+ 81.82% covered (warning)
-
100.00%
-
22 / 22
-
-
- 100.00% covered (success) +
81.82%
+
18 / 22
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- AuthorizationServer.php -
-
- 100.00% covered (success) + AuthorizationServer.php +
+
+ 73.33% covered (warning)
-
100.00%
-
39 / 39
-
-
- 100.00% covered (success) +
73.33%
+
22 / 30
+
+
+ 80.00% covered (warning)
-
100.00%
-
16 / 16
-
-
- 100.00% covered (success) +
80.00%
+
12 / 15
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
- ResourceServer.php -
-
- 100.00% covered (success) + ResourceServer.php +
+
+ 70.00% covered (warning)
-
100.00%
-
29 / 29
-
-
- 100.00% covered (success) +
70.00%
+
14 / 20
+
+
+ 80.00% covered (warning)
-
100.00%
-
5 / 5
-
-
- 100.00% covered (success) +
80.00%
+
4 / 5
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
+
0.00%
+
0 / 1
@@ -360,7 +360,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using PHP 5.6.5 and PHPUnit 4.3.5 at Fri Mar 20 11:48:47 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Fri Mar 20 11:50:42 UTC 2015.