diff --git a/master/AbstractServer.php.html b/master/AbstractServer.php.html index 6e9cccbe..99c42bea 100644 --- a/master/AbstractServer.php.html +++ b/master/AbstractServer.php.html @@ -41,124 +41,124 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 81.82% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
81.82%
-
18 / 22
- CRAP -
-
- 86.05% covered (warning) +
100.00%
+
22 / 22
+ CRAP +
+
+ 100.00% covered (success)
-
86.05%
-
37 / 43
+
100.00%
+
47 / 47
- AbstractServer -
-
- 0.00% covered (danger) + AbstractServer +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 81.82% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
81.82%
-
18 / 22
- 25.56 -
-
- 86.05% covered (warning) +
100.00%
+
22 / 22
+ 24 +
+
+ 100.00% covered (success)
-
86.05%
-
37 / 43
+
100.00%
+
47 / 47
-  __construct() -
-
- 0.00% covered (danger) +  __construct() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
-  setEventEmitter($emitter = null) -
-
- 0.00% covered (danger) +  setEventEmitter($emitter = null) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 2.26 -
-
- 60.00% covered (warning) +
100.00%
+
1 / 1
+ 2 +
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
5 / 5
-  addEventListener($eventName, callable $listener) -
-
- 0.00% covered (danger) +  addEventListener($eventName, callable $listener) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 2 -
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 2
+
100.00%
+
2 / 2
@@ -204,24 +204,24 @@ -  getRequest() -
-
- 0.00% covered (danger) +  getRequest() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 2.15 -
-
- 66.67% covered (warning) +
100.00%
+
1 / 1
+ 2 +
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
+
100.00%
+
4 / 4
@@ -494,7 +494,7 @@
100.00%
-
1 / 1
+
3 / 3
@@ -557,7 +557,7 @@
100.00%
-
1 / 1
+
2 / 2
@@ -667,8 +667,8 @@      */     public function __construct()     { -         $this->setEventEmitter(); -     } +         $this->setEventEmitter(); +     }     /**      * 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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/AuthorizationServer.php.html b/master/AuthorizationServer.php.html index 0e8d4719..20bf6d20 100644 --- a/master/AuthorizationServer.php.html +++ b/master/AuthorizationServer.php.html @@ -41,124 +41,124 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 80.00% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
80.00%
-
12 / 15
- CRAP -
-
- 73.33% covered (warning) +
100.00%
+
16 / 16
+ CRAP +
+
+ 100.00% covered (success)
-
73.33%
-
22 / 30
+
100.00%
+
39 / 39
- AuthorizationServer -
-
- 0.00% covered (danger) + AuthorizationServer +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 81.25% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
81.25%
-
13 / 16
- 29.36 -
-
- 73.33% covered (warning) +
100.00%
+
16 / 16
+ 21 +
+
+ 100.00% covered (success)
-
73.33%
-
22 / 30
+
100.00%
+
39 / 39
-  __construct() -
-
- 0.00% covered (danger) +  __construct() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.30 -
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
+
100.00%
+
3 / 3
-  addGrantType(GrantTypeInterface $grantType, $identifier = null) -
-
- 0.00% covered (danger) +  addGrantType(GrantTypeInterface $grantType, $identifier = null) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 5.20 -
-
- 37.50% covered (danger) +
100.00%
+
1 / 1
+ 3 +
+
+ 100.00% covered (success)
-
37.50%
-
3 / 8
+
100.00%
+
9 / 9
-  hasGrantType($identifier) -
-
- 0.00% covered (danger) +  hasGrantType($identifier) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 2 -
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
+
100.00%
+
1 / 1
@@ -179,7 +179,7 @@
100.00%
-
1 / 1
+
2 / 2
@@ -403,9 +403,14 @@
100.00%
1 / 1
3 -   -
-
 
+
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
6 / 6
@@ -426,7 +431,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -513,12 +518,12 @@     public function __construct()     {         // 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 @@ -530,21 +535,21 @@      */     public function addGrantType(GrantTypeInterface $grantType, $identifier = null)     { -         if (is_null($identifier)) { -             $identifier = $grantType->getIdentifier(); -         } +         if (is_null($identifier)) { +             $identifier = $grantType->getIdentifier(); +         }         // 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 @@ -555,8 +560,8 @@      */     public function hasGrantType($identifier)     { -         return (array_key_exists($identifier, $this->grantTypes)); -     } +         return (array_key_exists($identifier, $this->grantTypes)); +     }     /**      * Returns response types @@ -564,9 +569,9 @@      * @return array      */     public function getResponseTypes() -     { -         return $this->responseTypes; -     } +     { +         return $this->responseTypes; +     }     /**      * Require the "scope" parameter in checkAuthoriseParams() @@ -580,7 +585,7 @@         $this->requireScopeParam = $require;         return $this; -     } +     }     /**      * Is the scope parameter required? @@ -589,8 +594,8 @@      */     public function scopeParamRequired()     { -         return $this->requireScopeParam; -     } +         return $this->requireScopeParam; +     }     /**      * Default scope to be used if none is provided and requireScopeParam() is false @@ -604,7 +609,7 @@         $this->defaultScope = $default;         return $this; -     } +     }     /**      * Default scope to be used if none is provided and requireScopeParam is false @@ -613,8 +618,8 @@      */     public function getDefaultScope()     { -         return $this->defaultScope; -     } +         return $this->defaultScope; +     }     /**      * Require the "state" parameter in checkAuthoriseParams() @@ -624,7 +629,7 @@     public function stateParamRequired()     {         return $this->requireStateParam; -     } +     }     /**      * Require the "state" parameter in checkAuthoriseParams() @@ -638,7 +643,7 @@         $this->requireStateParam = $require;         return $this; -     } +     }     /**      * Get the scope delimiter @@ -647,8 +652,8 @@      */     public function getScopeDelimiter()     { -         return $this->scopeDelimiter; -     } +         return $this->scopeDelimiter; +     }     /**      * Set the scope delimiter @@ -662,7 +667,7 @@         $this->scopeDelimiter = $scopeDelimiter;         return $this; -     } +     }     /**      * Get the TTL for an access token @@ -671,8 +676,8 @@      */     public function getAccessTokenTTL()     { -         return $this->accessTokenTTL; -     } +         return $this->accessTokenTTL; +     }     /**      * Set the TTL for an access token @@ -686,7 +691,7 @@         $this->accessTokenTTL = $accessTokenTTL;         return $this; -     } +     }     /**      * Issue an access token @@ -697,19 +702,19 @@      */     public function issueAccessToken()     { -         $grantType = $this->getRequest()->request->get('grant_type'); -         if (is_null($grantType)) { -             throw new Exception\InvalidRequestException('grant_type'); -         } +         $grantType = $this->getRequest()->request->get('grant_type'); +         if (is_null($grantType)) { +             throw new Exception\InvalidRequestException('grant_type'); +         }         // 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 @@ -722,12 +727,12 @@      */     public function getGrantType($grantType)     { -         if (isset($this->grantTypes[$grantType])) { -             return $this->grantTypes[$grantType]; -         } +         if (isset($this->grantTypes[$grantType])) { +             return $this->grantTypes[$grantType]; +         } -         throw new Exception\InvalidGrantException($grantType); -     } +         throw new Exception\InvalidGrantException($grantType); +     } } @@ -741,7 +746,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

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

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Entity/AccessTokenEntity.php.html b/master/Entity/AccessTokenEntity.php.html index 883df96a..f01f6021 100644 --- a/master/Entity/AccessTokenEntity.php.html +++ b/master/Entity/AccessTokenEntity.php.html @@ -51,23 +51,23 @@
0.00%
0 / 1
-
-
- 0.00% covered (danger) -
-
- -
0.00%
-
0 / 3
- CRAP
-
- 71.43% covered (warning) +
+ 80.00% covered (warning)
-
71.43%
-
15 / 21
+
80.00%
+
4 / 5
+ CRAP +
+
+ 84.00% covered (warning) +
+
+ +
84.00%
+
21 / 25
@@ -80,36 +80,6 @@
0.00%
0 / 1
-
-
- 40.00% covered (danger) -
-
- -
40.00%
-
2 / 5
- 10.89 -
-
- 71.43% covered (warning) -
-
- -
71.43%
-
15 / 21
- - - -  getSession() -
-
- 0.00% covered (danger) -
-
- -
0.00%
-
0 / 1
- 2.03
80.00% covered (warning) @@ -118,10 +88,19 @@
80.00%
4 / 5
+ 9.33 +
+
+ 84.00% covered (warning) +
+
+ +
84.00%
+
21 / 25
-  hasScope($scope) +  getSession()
100.00% covered (success) @@ -131,13 +110,18 @@
100.00%
1 / 1
2 -   -
-
 
+
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
4 / 4
-  getScopes() +  hasScope($scope)
0.00% covered (danger) @@ -146,19 +130,7 @@
0.00%
0 / 1
- 2.15 -
-
- 66.67% covered (warning) -
-
- -
66.67%
-
4 / 6
- - - -  save() + 6
0.00% covered (danger) @@ -166,16 +138,49 @@
0.00%
-
0 / 1
- 2.11 -
-
- 70.00% covered (warning) +
0 / 4
+ + + +  getScopes() +
+
+ 100.00% covered (success)
-
70.00%
-
7 / 10
+
100.00%
+
1 / 1
+ 2 +
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
6 / 6
+ + + +  save() +
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
1 / 1
+ 2 +
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
9 / 9
@@ -189,9 +194,14 @@
100.00%
1 / 1
1 -   -
-
 
+
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
2 / 2
@@ -224,14 +234,14 @@      */     public function getSession()     { -         if ($this->session instanceof SessionEntity) { -             return $this->session; -         } +         if ($this->session instanceof SessionEntity) { +             return $this->session; +         } -         $this->session = $this->server->getSessionStorage()->getByAccessToken($this); +         $this->session = $this->server->getSessionStorage()->getByAccessToken($this);         return $this->session; -     } +     }     /**      * Check if access token has an associated scope @@ -242,12 +252,12 @@      */     public function hasScope($scope)     { -         if ($this->scopes === null) { -             $this->getScopes(); -         } +         if ($this->scopes === null) { +             $this->getScopes(); +         } -         return isset($this->scopes[$scope]); -     } +         return isset($this->scopes[$scope]); +     }     /**      * Return all scopes associated with the access token @@ -256,41 +266,41 @@      */     public function getScopes()     { -         if ($this->scopes === null) { -             $this->scopes = $this->formatScopes( -                 $this->server->getAccessTokenStorage()->getScopes($this) -             ); -         } +         if ($this->scopes === null) { +             $this->scopes = $this->formatScopes( +                 $this->server->getAccessTokenStorage()->getScopes($this) +             ); +         } -         return $this->scopes; -     } +         return $this->scopes; +     }     /**      * {@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); +     } } @@ -304,7 +314,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Entity/AuthCodeEntity.php.html b/master/Entity/AuthCodeEntity.php.html index 680ce618..531cfbe9 100644 --- a/master/Entity/AuthCodeEntity.php.html +++ b/master/Entity/AuthCodeEntity.php.html @@ -42,61 +42,61 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 83.33% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
83.33%
-
5 / 6
- CRAP -
-
- 86.96% covered (warning) +
100.00%
+
7 / 7
+ CRAP +
+
+ 100.00% covered (success)
-
86.96%
-
20 / 23
+
100.00%
+
31 / 31
- AuthCodeEntity -
-
- 0.00% covered (danger) + AuthCodeEntity +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 85.71% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
85.71%
-
6 / 7
- 11.27 -
-
- 86.96% covered (warning) +
100.00%
+
7 / 7
+ 11 +
+
+ 100.00% covered (success)
-
86.96%
-
20 / 23
+
100.00%
+
31 / 31
@@ -142,24 +142,24 @@ -  generateRedirectUri($state = null, $queryDelimeter = '?') -
-
- 0.00% covered (danger) +  generateRedirectUri($state = null, $queryDelimeter = '?') +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 2.86 -
-
- 40.00% covered (danger) +
100.00%
+
1 / 1
+ 2 +
+
+ 100.00% covered (success)
-
40.00%
-
2 / 5
+
100.00%
+
6 / 6
@@ -201,7 +201,7 @@
100.00%
-
4 / 4
+
6 / 6
@@ -222,7 +222,7 @@
100.00%
-
7 / 7
+
10 / 10
@@ -236,9 +236,14 @@
100.00%
1 / 1
1 -   -
-
 
+
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
2 / 2
@@ -260,7 +265,7 @@ namespace League\OAuth2\Server\Entity; /** -  * Access token entity class +  * Auth Code entity class  */ class AuthCodeEntity extends AbstractTokenEntity { @@ -283,7 +288,7 @@         $this->redirectUri = $redirectUri;         return $this; -     } +     }     /**      * Get the redirect URI @@ -292,8 +297,8 @@      */     public function getRedirectUri()     { -         return $this->redirectUri; -     } +         return $this->redirectUri; +     }     /**      * Generate a redirect URI @@ -305,14 +310,14 @@      */     public function generateRedirectUri($state = null, $queryDelimeter = '?')     { -         $uri = $this->getRedirectUri(); -         $uri .= (strstr($this->getRedirectUri(), $queryDelimeter) === false) ? $queryDelimeter : '&'; +         $uri = $this->getRedirectUri(); +         $uri .= (strstr($this->getRedirectUri(), $queryDelimeter) === false) ? $queryDelimeter : '&'; -         return $uri.http_build_query([ +         return $uri.http_build_query([             'code'  =>  $this->getId(), -             'state' =>  $state, -         ]); -     } +             'state' =>  $state, +         ]); +     }     /**      * Get session @@ -323,12 +328,12 @@     {         if ($this->session instanceof SessionEntity) {             return $this->session; -         } +         } -         $this->session = $this->server->getSessionStorage()->getByAuthCode($this); +         $this->session = $this->server->getSessionStorage()->getByAuthCode($this);         return $this->session; -     } +     }     /**      * Return all scopes associated with the session @@ -339,12 +344,12 @@     {         if ($this->scopes === null) {             $this->scopes = $this->formatScopes( -                 $this->server->getAuthCodeStorage()->getScopes($this) -             ); -         } +                 $this->server->getAuthCodeStorage()->getScopes($this) +             ); +         }         return $this->scopes; -     } +     }     /**      * {@inheritdoc} @@ -354,25 +359,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); +     } } @@ -386,7 +391,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Entity/ClientEntity.php.html b/master/Entity/ClientEntity.php.html index 344a75e4..f3eaf20e 100644 --- a/master/Entity/ClientEntity.php.html +++ b/master/Entity/ClientEntity.php.html @@ -67,7 +67,7 @@
100.00%
-
7 / 7
+
6 / 6
@@ -96,7 +96,7 @@
100.00%
-
7 / 7
+
6 / 6
@@ -117,7 +117,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -275,10 +275,10 @@      */     public function __construct(AbstractServer $server)     { -         $this->server = $server; +         $this->server = $server; -         return $this; -     } +         return $this; +     }     /**      * 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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Entity/EntityTrait.php.html b/master/Entity/EntityTrait.php.html index 961794cf..0c98fda6 100644 --- a/master/Entity/EntityTrait.php.html +++ b/master/Entity/EntityTrait.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 60.00% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
6 / 6
- EntityTrait -
-
- 0.00% covered (danger) + EntityTrait +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 3.58 -
-
- 60.00% covered (warning) +
100.00%
+
1 / 1
+ 3 +
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
6 / 6
-  hydrate(array $properties) -
-
- 0.00% covered (danger) +  hydrate(array $properties) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 3.58 -
-
- 60.00% covered (warning) +
100.00%
+
1 / 1
+ 3 +
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
6 / 6
@@ -149,14 +149,14 @@      */     public function hydrate(array $properties)     { -         foreach ($properties as $prop => $val) { -             if (property_exists($this, $prop)) { -                 $this->{$prop} = $val; -             } -         } +         foreach ($properties as $prop => $val) { +             if (property_exists($this, $prop)) { +                 $this->{$prop} = $val; +             } +         } -         return $this; -     } +         return $this; +     } } @@ -170,7 +170,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

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

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

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

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Entity/SessionEntity.php.html b/master/Entity/SessionEntity.php.html index 452f63db..286e50de 100644 --- a/master/Entity/SessionEntity.php.html +++ b/master/Entity/SessionEntity.php.html @@ -67,7 +67,7 @@
100.00%
-
41 / 41
+
53 / 53
@@ -96,7 +96,7 @@
100.00%
-
41 / 41
+
53 / 53
@@ -117,7 +117,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -180,7 +180,7 @@
100.00%
-
2 / 2
+
4 / 4
@@ -201,7 +201,7 @@
100.00%
-
2 / 2
+
4 / 4
@@ -222,7 +222,7 @@
100.00%
-
3 / 3
+
4 / 4
@@ -243,7 +243,7 @@
100.00%
-
4 / 4
+
9 / 9
@@ -264,7 +264,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -285,7 +285,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -306,7 +306,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -411,7 +411,7 @@
100.00%
-
5 / 5
+
11 / 11
@@ -512,10 +512,10 @@      */     public function __construct(AbstractServer $server)     { -         $this->server = $server; +         $this->server = $server; -         return $this; -     } +         return $this; +     }     /**      * 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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Entity/dashboard.html b/master/Entity/dashboard.html index 514f7366..824972e8 100644 --- a/master/Entity/dashboard.html +++ b/master/Entity/dashboard.html @@ -59,9 +59,7 @@ - EntityTrait60% - AccessTokenEntity71% - AuthCodeEntity86% + AccessTokenEntity84% @@ -78,9 +76,7 @@ - AuthCodeEntity11 - AccessTokenEntity10 - EntityTrait3 + AccessTokenEntity9 @@ -118,12 +114,8 @@ - generateRedirectUri40% - associateScope50% - hydrate60% - getScopes66% - save70% - getSession80% + hasScope0% + formatScopes88% @@ -140,12 +132,8 @@ - hydrate3 - generateRedirectUri2 - associateScope2 - getScopes2 - save2 - getSession2 + hasScope6 + formatScopes4 @@ -155,7 +143,7 @@
@@ -176,7 +164,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,1,1,1,1,4], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,1,6], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -194,7 +182,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,1,1,2,1,1,0,48], "Method Coverage")) + .datum(getCoverageDistributionData([1,0,0,0,0,0,0,0,0,1,0,52], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -245,7 +233,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[91.304347826087,18,"AbstractTokenEntity<\/a>"],[71.428571428571,9,"AccessTokenEntity<\/a>"],[86.95652173913,11,"AuthCodeEntity<\/a>"],[100,5,"ClientEntity<\/a>"],[100,6,"RefreshTokenEntity<\/a>"],[100,4,"ScopeEntity<\/a>"],[100,23,"SessionEntity<\/a>"],[60,3,"EntityTrait<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[96.296296296296,18,"AbstractTokenEntity<\/a>"],[84,9,"AccessTokenEntity<\/a>"],[100,11,"AuthCodeEntity<\/a>"],[100,5,"ClientEntity<\/a>"],[100,6,"RefreshTokenEntity<\/a>"],[100,4,"ScopeEntity<\/a>"],[100,23,"SessionEntity<\/a>"],[100,3,"EntityTrait<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -270,7 +258,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[100,1,"AbstractTokenEntity::__construct<\/a>"],[100,1,"AbstractTokenEntity::setSession<\/a>"],[100,1,"AbstractTokenEntity::setExpireTime<\/a>"],[100,1,"AbstractTokenEntity::getExpireTime<\/a>"],[100,1,"AbstractTokenEntity::isExpired<\/a>"],[100,2,"AbstractTokenEntity::setId<\/a>"],[100,1,"AbstractTokenEntity::getId<\/a>"],[50,2,"AbstractTokenEntity::associateScope<\/a>"],[100,4,"AbstractTokenEntity::formatScopes<\/a>"],[100,2,"AbstractTokenEntity::__toString<\/a>"],[100,1,"AbstractTokenEntity::expire<\/a>"],[100,1,"AbstractTokenEntity::save<\/a>"],[80,2,"AccessTokenEntity::getSession<\/a>"],[100,2,"AccessTokenEntity::hasScope<\/a>"],[66.666666666667,2,"AccessTokenEntity::getScopes<\/a>"],[70,2,"AccessTokenEntity::save<\/a>"],[100,1,"AccessTokenEntity::expire<\/a>"],[100,1,"AuthCodeEntity::setRedirectUri<\/a>"],[100,1,"AuthCodeEntity::getRedirectUri<\/a>"],[40,2,"AuthCodeEntity::generateRedirectUri<\/a>"],[100,2,"AuthCodeEntity::getSession<\/a>"],[100,2,"AuthCodeEntity::getScopes<\/a>"],[100,2,"AuthCodeEntity::save<\/a>"],[100,1,"AuthCodeEntity::expire<\/a>"],[100,1,"ClientEntity::__construct<\/a>"],[100,1,"ClientEntity::getId<\/a>"],[100,1,"ClientEntity::getSecret<\/a>"],[100,1,"ClientEntity::getName<\/a>"],[100,1,"ClientEntity::getRedirectUri<\/a>"],[100,1,"RefreshTokenEntity::setAccessTokenId<\/a>"],[100,1,"RefreshTokenEntity::setAccessToken<\/a>"],[100,2,"RefreshTokenEntity::getAccessToken<\/a>"],[100,1,"RefreshTokenEntity::save<\/a>"],[100,1,"RefreshTokenEntity::expire<\/a>"],[100,1,"ScopeEntity::__construct<\/a>"],[100,1,"ScopeEntity::getId<\/a>"],[100,1,"ScopeEntity::getDescription<\/a>"],[100,1,"ScopeEntity::jsonSerialize<\/a>"],[100,1,"SessionEntity::__construct<\/a>"],[100,1,"SessionEntity::setId<\/a>"],[100,1,"SessionEntity::getId<\/a>"],[100,2,"SessionEntity::associateScope<\/a>"],[100,2,"SessionEntity::hasScope<\/a>"],[100,2,"SessionEntity::getScopes<\/a>"],[100,4,"SessionEntity::formatScopes<\/a>"],[100,1,"SessionEntity::associateAccessToken<\/a>"],[100,1,"SessionEntity::associateRefreshToken<\/a>"],[100,1,"SessionEntity::associateClient<\/a>"],[100,2,"SessionEntity::getClient<\/a>"],[100,1,"SessionEntity::setOwner<\/a>"],[100,1,"SessionEntity::getOwnerId<\/a>"],[100,1,"SessionEntity::getOwnerType<\/a>"],[100,2,"SessionEntity::save<\/a>"],[60,3,"EntityTrait::hydrate<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[100,1,"AbstractTokenEntity::__construct<\/a>"],[100,1,"AbstractTokenEntity::setSession<\/a>"],[100,1,"AbstractTokenEntity::setExpireTime<\/a>"],[100,1,"AbstractTokenEntity::getExpireTime<\/a>"],[100,1,"AbstractTokenEntity::isExpired<\/a>"],[100,2,"AbstractTokenEntity::setId<\/a>"],[100,1,"AbstractTokenEntity::getId<\/a>"],[100,2,"AbstractTokenEntity::associateScope<\/a>"],[88.888888888889,4,"AbstractTokenEntity::formatScopes<\/a>"],[100,2,"AbstractTokenEntity::__toString<\/a>"],[100,1,"AbstractTokenEntity::expire<\/a>"],[100,1,"AbstractTokenEntity::save<\/a>"],[100,2,"AccessTokenEntity::getSession<\/a>"],[0,2,"AccessTokenEntity::hasScope<\/a>"],[100,2,"AccessTokenEntity::getScopes<\/a>"],[100,2,"AccessTokenEntity::save<\/a>"],[100,1,"AccessTokenEntity::expire<\/a>"],[100,1,"AuthCodeEntity::setRedirectUri<\/a>"],[100,1,"AuthCodeEntity::getRedirectUri<\/a>"],[100,2,"AuthCodeEntity::generateRedirectUri<\/a>"],[100,2,"AuthCodeEntity::getSession<\/a>"],[100,2,"AuthCodeEntity::getScopes<\/a>"],[100,2,"AuthCodeEntity::save<\/a>"],[100,1,"AuthCodeEntity::expire<\/a>"],[100,1,"ClientEntity::__construct<\/a>"],[100,1,"ClientEntity::getId<\/a>"],[100,1,"ClientEntity::getSecret<\/a>"],[100,1,"ClientEntity::getName<\/a>"],[100,1,"ClientEntity::getRedirectUri<\/a>"],[100,1,"RefreshTokenEntity::setAccessTokenId<\/a>"],[100,1,"RefreshTokenEntity::setAccessToken<\/a>"],[100,2,"RefreshTokenEntity::getAccessToken<\/a>"],[100,1,"RefreshTokenEntity::save<\/a>"],[100,1,"RefreshTokenEntity::expire<\/a>"],[100,1,"ScopeEntity::__construct<\/a>"],[100,1,"ScopeEntity::getId<\/a>"],[100,1,"ScopeEntity::getDescription<\/a>"],[100,1,"ScopeEntity::jsonSerialize<\/a>"],[100,1,"SessionEntity::__construct<\/a>"],[100,1,"SessionEntity::setId<\/a>"],[100,1,"SessionEntity::getId<\/a>"],[100,2,"SessionEntity::associateScope<\/a>"],[100,2,"SessionEntity::hasScope<\/a>"],[100,2,"SessionEntity::getScopes<\/a>"],[100,4,"SessionEntity::formatScopes<\/a>"],[100,1,"SessionEntity::associateAccessToken<\/a>"],[100,1,"SessionEntity::associateRefreshToken<\/a>"],[100,1,"SessionEntity::associateClient<\/a>"],[100,2,"SessionEntity::getClient<\/a>"],[100,1,"SessionEntity::setOwner<\/a>"],[100,1,"SessionEntity::getOwnerId<\/a>"],[100,1,"SessionEntity::getOwnerType<\/a>"],[100,2,"SessionEntity::save<\/a>"],[100,3,"EntityTrait::hydrate<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/master/Entity/index.html b/master/Entity/index.html index 449ff4ca..01b37c43 100644 --- a/master/Entity/index.html +++ b/master/Entity/index.html @@ -44,49 +44,49 @@ Total
-
- 90.51% covered (success) +
+ 97.08% covered (success)
-
90.51%
-
124 / 137
+
97.08%
+
166 / 171
+
+
+ 96.15% covered (success) +
+
+ +
96.15%
+
50 / 52
-
- 86.96% covered (warning) +
+ 75.00% covered (warning)
-
86.96%
-
40 / 46
-
-
- 50.00% covered (warning) -
-
- -
50.00%
-
4 / 8
+
75.00%
+
6 / 8
AbstractTokenEntity.php
-
- 91.30% covered (success) +
+ 96.30% covered (success)
-
91.30%
-
21 / 23
-
-
- 88.89% covered (warning) +
96.30%
+
26 / 27
+
+
+ 90.00% covered (success)
-
88.89%
-
8 / 9
+
90.00%
+
9 / 10
0.00% covered (danger) @@ -100,21 +100,21 @@ AccessTokenEntity.php
-
- 71.43% covered (warning) +
+ 84.00% covered (warning)
-
71.43%
-
15 / 21
-
-
- 0.00% covered (danger) +
84.00%
+
21 / 25
+
+
+ 80.00% covered (warning)
-
0.00%
-
0 / 3
+
80.00%
+
4 / 5
0.00% covered (danger) @@ -126,31 +126,31 @@ - AuthCodeEntity.php -
-
- 86.96% covered (warning) + AuthCodeEntity.php +
+
+ 100.00% covered (success)
-
86.96%
-
20 / 23
-
-
- 83.33% covered (warning) +
100.00%
+
31 / 31
+
+
+ 100.00% covered (success)
-
83.33%
-
5 / 6
-
-
- 0.00% covered (danger) +
100.00%
+
7 / 7
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
+
100.00%
+
1 / 1
@@ -162,7 +162,7 @@
100.00%
-
7 / 7
+
6 / 6
100.00% covered (success) @@ -182,31 +182,31 @@ - EntityTrait.php -
-
- 60.00% covered (warning) + EntityTrait.php +
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
-
-
- 0.00% covered (danger) +
100.00%
+
6 / 6
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
+
100.00%
+
1 / 1
@@ -218,7 +218,7 @@
100.00%
-
11 / 11
+
16 / 16
100.00% covered (success) @@ -226,7 +226,7 @@
100.00%
-
4 / 4
+
5 / 5
100.00% covered (success) @@ -246,7 +246,7 @@
100.00%
-
6 / 6
+
7 / 7
100.00% covered (success) @@ -254,7 +254,7 @@
100.00%
-
3 / 3
+
4 / 4
100.00% covered (success) @@ -274,7 +274,7 @@
100.00%
-
41 / 41
+
53 / 53
100.00% covered (success) @@ -305,7 +305,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

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

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Event/SessionOwnerEvent.php.html b/master/Event/SessionOwnerEvent.php.html index 26e90968..bcb2c9d7 100644 --- a/master/Event/SessionOwnerEvent.php.html +++ b/master/Event/SessionOwnerEvent.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 66.67% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
- CRAP -
-
- 75.00% covered (warning) +
100.00%
+
3 / 3
+ CRAP +
+
+ 100.00% covered (success)
-
75.00%
-
3 / 4
+
100.00%
+
4 / 4
- SessionOwnerEvent -
-
- 0.00% covered (danger) + SessionOwnerEvent +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 66.67% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
- 3.14 -
-
- 75.00% covered (warning) +
100.00%
+
3 / 3
+ 3 +
+
+ 100.00% covered (success)
-
75.00%
-
3 / 4
+
100.00%
+
4 / 4
-  __construct(SessionEntity $session) -
-
- 0.00% covered (danger) +  __construct(SessionEntity $session) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
@@ -200,7 +200,7 @@     public function __construct(SessionEntity $session)     {         $this->session = $session; -     } +     }     /**      * 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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

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

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

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

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/AccessDeniedException.php.html b/master/Exception/AccessDeniedException.php.html index 6411b43e..8f414fa7 100644 --- a/master/Exception/AccessDeniedException.php.html +++ b/master/Exception/AccessDeniedException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
- AccessDeniedException -
-
- 0.00% covered (danger) + AccessDeniedException +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
-  __construct() -
-
- 0.00% covered (danger) +  __construct() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
@@ -158,7 +158,7 @@      */     public function __construct()     { -         parent::__construct('The resource owner or authorization server denied the request.'); +         parent::__construct('The resource owner or authorization server denied the request.');     } } @@ -173,7 +173,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/InvalidClientException.php.html b/master/Exception/InvalidClientException.php.html index e6d2392d..36469759 100644 --- a/master/Exception/InvalidClientException.php.html +++ b/master/Exception/InvalidClientException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
- InvalidClientException -
-
- 0.00% covered (danger) + InvalidClientException +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
-  __construct() -
-
- 0.00% covered (danger) +  __construct() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
@@ -158,7 +158,7 @@      */     public function __construct()     { -         parent::__construct('Client authentication failed.'); +         parent::__construct('Client authentication failed.');     } } @@ -173,7 +173,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/InvalidCredentialsException.php.html b/master/Exception/InvalidCredentialsException.php.html index bb8e575e..81102286 100644 --- a/master/Exception/InvalidCredentialsException.php.html +++ b/master/Exception/InvalidCredentialsException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
- InvalidCredentialsException -
-
- 0.00% covered (danger) + InvalidCredentialsException +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
-  __construct() -
-
- 0.00% covered (danger) +  __construct() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
@@ -158,7 +158,7 @@      */     public function __construct()     { -         parent::__construct('The user credentials were incorrect.'); +         parent::__construct('The user credentials were incorrect.');     } } @@ -173,7 +173,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/InvalidGrantException.php.html b/master/Exception/InvalidGrantException.php.html index 91d3fa71..a206246a 100644 --- a/master/Exception/InvalidGrantException.php.html +++ b/master/Exception/InvalidGrantException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
50.00%
-
2 / 4
+
100.00%
+
6 / 6
- InvalidGrantException -
-
- 0.00% covered (danger) + InvalidGrantException +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
2 / 4
+
100.00%
+
6 / 6
-  __construct($parameter) -
-
- 0.00% covered (danger) +  __construct($parameter) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
2 / 4
+
100.00%
+
6 / 6
@@ -159,12 +159,12 @@     public function __construct($parameter)     { -         parent::__construct( -             sprintf( +         parent::__construct( +             sprintf(                 'The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. Check the "%s" parameter.',                 $parameter -             ) -         ); +             ) +         );     } } @@ -179,7 +179,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/InvalidRefreshException.php.html b/master/Exception/InvalidRefreshException.php.html index b6f15249..d5023376 100644 --- a/master/Exception/InvalidRefreshException.php.html +++ b/master/Exception/InvalidRefreshException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
- InvalidRefreshException -
-
- 0.00% covered (danger) + InvalidRefreshException +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
-  __construct() -
-
- 0.00% covered (danger) +  __construct() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
@@ -158,7 +158,7 @@      */     public function __construct()     { -         parent::__construct('The refresh token is invalid.'); +         parent::__construct('The refresh token is invalid.');     } } @@ -173,7 +173,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/InvalidRequestException.php.html b/master/Exception/InvalidRequestException.php.html index 1cecda4a..7f1e3f1d 100644 --- a/master/Exception/InvalidRequestException.php.html +++ b/master/Exception/InvalidRequestException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 60.00% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
7 / 7
- InvalidRequestException -
-
- 0.00% covered (danger) + InvalidRequestException +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.06 -
-
- 60.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
7 / 7
-  __construct($parameter, $redirectUri = null) -
-
- 0.00% covered (danger) +  __construct($parameter, $redirectUri = null) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.06 -
-
- 60.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
7 / 7
@@ -159,15 +159,15 @@     public function __construct($parameter, $redirectUri = null)     { -         parent::__construct( -             sprintf( +         parent::__construct( +             sprintf(                 'The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the "%s" parameter.',                 $parameter -             ) -         ); +             ) +         );         $this->redirectUri = $redirectUri; -     } +     } } @@ -181,7 +181,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/InvalidScopeException.php.html b/master/Exception/InvalidScopeException.php.html index 63526d88..c44b5413 100644 --- a/master/Exception/InvalidScopeException.php.html +++ b/master/Exception/InvalidScopeException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 60.00% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
7 / 7
- InvalidScopeException -
-
- 0.00% covered (danger) + InvalidScopeException +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.06 -
-
- 60.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
7 / 7
-  __construct($parameter, $redirectUri = null) -
-
- 0.00% covered (danger) +  __construct($parameter, $redirectUri = null) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.06 -
-
- 60.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
7 / 7
@@ -159,15 +159,15 @@     public function __construct($parameter, $redirectUri = null)     { -         parent::__construct( -             sprintf( +         parent::__construct( +             sprintf(                 'The requested scope is invalid, unknown, or malformed. Check the "%s" scope.',                 $parameter -             ) -         ); +             ) +         );         $this->redirectUri = $redirectUri; -     } +     } } @@ -181,7 +181,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/OAuthException.php.html b/master/Exception/OAuthException.php.html index 9c9638ab..80d04120 100644 --- a/master/Exception/OAuthException.php.html +++ b/master/Exception/OAuthException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) -
-
- -
0.00%
-
0 / 1
-
-
- 66.67% covered (warning) -
-
- -
66.67%
-
2 / 3
- CRAP + Total
-
- 93.33% covered (success) +
+ 100.00% covered (success)
-
93.33%
-
14 / 15
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
4 / 4
+ CRAP +
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
25 / 25
- OAuthException -
-
- 0.00% covered (danger) -
-
- -
0.00%
-
0 / 1
-
-
- 75.00% covered (warning) -
-
- -
75.00%
-
3 / 4
- 15.07 + OAuthException
-
- 93.33% covered (success) +
+ 100.00% covered (success)
-
93.33%
-
14 / 15
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
4 / 4
+ 15 +
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
25 / 25
-  __construct($msg = 'An error occured') -
-
- 0.00% covered (danger) +  __construct($msg = 'An error occured') +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
@@ -131,9 +131,14 @@
100.00%
1 / 1
2 -   -
-
 
+
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
1 / 1
@@ -154,7 +159,7 @@
100.00%
-
4 / 4
+
5 / 5
@@ -175,7 +180,7 @@
100.00%
-
9 / 9
+
17 / 17
@@ -228,8 +233,8 @@      */     public function __construct($msg = 'An error occured')     { -         parent::__construct($msg); -     } +         parent::__construct($msg); +     }     /**      * Should the server redirect back to the client? @@ -238,8 +243,8 @@      */     public function shouldRedirect()     { -         return is_null($this->redirectUri) ? false : true; -     } +         return is_null($this->redirectUri) ? false : true; +     }     /**      * Return redirect URI if set @@ -248,14 +253,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 @@ -264,22 +269,22 @@      */     public function getHttpHeaders()     { -         $headers = []; -         switch ($this->httpStatusCode) { -             case 401: +         $headers = []; +         switch ($this->httpStatusCode) { +             case 401:                 $headers[] = 'HTTP/1.1 401 Unauthorized';                 break; -             case 500: +             case 500:                 $headers[] = 'HTTP/1.1 500 Internal Server Error';                 break; -             case 501: +             case 501:                 $headers[] = 'HTTP/1.1 501 Not Implemented';                 break;             case 400: -             default: +             default:                 $headers[] = 'HTTP/1.1 400 Bad Request';                 break; -         } +         }         // Add "WWW-Authenticate" header         // @@ -310,8 +315,8 @@             }         }         // @codeCoverageIgnoreEnd -         return $headers; -     } +         return $headers; +     } } @@ -325,7 +330,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/ServerErrorException.php.html b/master/Exception/ServerErrorException.php.html index b897a575..d8359b7e 100644 --- a/master/Exception/ServerErrorException.php.html +++ b/master/Exception/ServerErrorException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
+
100.00%
+
3 / 3
- ServerErrorException -
-
- 0.00% covered (danger) + ServerErrorException +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 3.19 -
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+ 2 +
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
+
100.00%
+
3 / 3
-  __construct($parameter = null) -
-
- 0.00% covered (danger) +  __construct($parameter = null) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 3.19 -
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+ 2 +
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
+
100.00%
+
3 / 3
@@ -158,8 +158,8 @@      */     public function __construct($parameter = null)     { -         $parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.' : $parameter; -         parent::__construct($parameter); +         $parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.' : $parameter; +         parent::__construct($parameter);     } } @@ -174,7 +174,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/UnauthorizedClientException.php.html b/master/Exception/UnauthorizedClientException.php.html index f2605f90..2890e24e 100644 --- a/master/Exception/UnauthorizedClientException.php.html +++ b/master/Exception/UnauthorizedClientException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
- UnauthorizedClientException -
-
- 0.00% covered (danger) + UnauthorizedClientException +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
-  __construct() -
-
- 0.00% covered (danger) +  __construct() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
@@ -158,7 +158,7 @@      */     public function __construct()     { -         parent::__construct('The client is not authorized to request an access token using this method.'); +         parent::__construct('The client is not authorized to request an access token using this method.');     } } @@ -173,7 +173,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/UnsupportedGrantTypeException.php.html b/master/Exception/UnsupportedGrantTypeException.php.html index adf05afe..0ac24248 100644 --- a/master/Exception/UnsupportedGrantTypeException.php.html +++ b/master/Exception/UnsupportedGrantTypeException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
50.00%
-
2 / 4
+
100.00%
+
6 / 6
- UnsupportedGrantTypeException -
-
- 0.00% covered (danger) + UnsupportedGrantTypeException +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
2 / 4
+
100.00%
+
6 / 6
-  __construct($parameter) -
-
- 0.00% covered (danger) +  __construct($parameter) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
50.00%
-
2 / 4
+
100.00%
+
6 / 6
@@ -159,12 +159,12 @@     public function __construct($parameter)     { -         parent::__construct( -             sprintf( +         parent::__construct( +             sprintf(                 'The authorization grant type "%s" is not supported by the authorization server.',                 $parameter -             ) -         ); +             ) +         );     } } @@ -179,7 +179,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Exception/UnsupportedResponseTypeException.php.html b/master/Exception/UnsupportedResponseTypeException.php.html index 6ee3c44b..da2730d8 100644 --- a/master/Exception/UnsupportedResponseTypeException.php.html +++ b/master/Exception/UnsupportedResponseTypeException.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 66.67% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
+
100.00%
+
3 / 3
- UnsupportedResponseTypeException -
-
- 0.00% covered (danger) + UnsupportedResponseTypeException +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.04 -
-
- 66.67% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
+
100.00%
+
3 / 3
-  __construct($parameter, $redirectUri = null) -
-
- 0.00% covered (danger) +  __construct($parameter, $redirectUri = null) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.04 -
-
- 66.67% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
+
100.00%
+
3 / 3
@@ -158,7 +158,7 @@      */     public function __construct($parameter, $redirectUri = null)     { -         parent::__construct('The authorization server does not support obtaining an access token using this method.'); +         parent::__construct('The authorization server does not support obtaining an access token using this method.');         $this->redirectUri = $redirectUri;     } } @@ -174,7 +174,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

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

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Grant/AbstractGrant.php.html b/master/Grant/AbstractGrant.php.html index 7e8a0a64..05ce1033 100644 --- a/master/Grant/AbstractGrant.php.html +++ b/master/Grant/AbstractGrant.php.html @@ -67,7 +67,7 @@
100.00%
-
27 / 27
+
48 / 48
@@ -96,7 +96,7 @@
100.00%
-
27 / 27
+
48 / 48
@@ -180,7 +180,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -222,7 +222,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -243,7 +243,7 @@
100.00%
-
12 / 12
+
30 / 30
@@ -264,7 +264,7 @@
100.00%
-
4 / 4
+
7 / 7
@@ -335,8 +335,8 @@      */     public function getIdentifier()     { -         return $this->identifier; -     } +         return $this->identifier; +     }     /**      * {@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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Grant/AuthCodeGrant.php.html b/master/Grant/AuthCodeGrant.php.html index b21d4a9f..73f0fd8d 100644 --- a/master/Grant/AuthCodeGrant.php.html +++ b/master/Grant/AuthCodeGrant.php.html @@ -67,7 +67,7 @@
100.00%
-
15 / 15
+
104 / 104
@@ -96,7 +96,7 @@
100.00%
-
15 / 15
+
104 / 104
@@ -138,7 +138,7 @@
100.00%
-
6 / 6
+
30 / 30
@@ -159,7 +159,7 @@
100.00%
-
1 / 1
+
14 / 14
@@ -180,7 +180,7 @@
100.00%
-
6 / 6
+
58 / 58
@@ -272,56 +272,56 @@     public function checkAuthorizeParams()     {         // 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,26 +335,26 @@     public function newAuthorizeRequest($type, $typeId, $authParams = [])     {         // Create a new session -         $session = new SessionEntity($this->server); -         $session->setOwner($type, $typeId); -         $session->associateClient($authParams['client']); -         $session->save(); +         $session = new SessionEntity($this->server); +         $session->setOwner($type, $typeId); +         $session->associateClient($authParams['client']); +         $session->save();         // 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); -         } +             $authCode->associateScope($scope); +         } -         $authCode->setSession($session); -         $authCode->save(); +         $authCode->setSession($session); +         $authCode->save(); -         return $authCode->generateRedirectUri($authParams['state']); -     } +         return $authCode->generateRedirectUri($authParams['state']); +     }     /**      * Complete the auth code grant @@ -366,100 +366,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(); +     } } @@ -473,7 +473,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Grant/ClientCredentialsGrant.php.html b/master/Grant/ClientCredentialsGrant.php.html index 44d2a4fa..3650e9d7 100644 --- a/master/Grant/ClientCredentialsGrant.php.html +++ b/master/Grant/ClientCredentialsGrant.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 72.73% covered (warning) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
72.73%
-
8 / 11
+
100.00%
+
37 / 37
- ClientCredentialsGrant -
-
- 0.00% covered (danger) + ClientCredentialsGrant +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 6.73 -
-
- 72.73% covered (warning) +
100.00%
+
1 / 1
+ 6 +
+
+ 100.00% covered (success)
-
72.73%
-
8 / 11
+
100.00%
+
37 / 37
-  completeFlow() -
-
- 0.00% covered (danger) +  completeFlow() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 6.73 -
-
- 72.73% covered (warning) +
100.00%
+
1 / 1
+ 6 +
+
+ 100.00% covered (success)
-
72.73%
-
8 / 11
+
100.00%
+
37 / 37
@@ -188,64 +188,64 @@     public function completeFlow()     {         // 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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Grant/GrantTypeInterface.php.html b/master/Grant/GrantTypeInterface.php.html index bec6b34d..59652a69 100644 --- a/master/Grant/GrantTypeInterface.php.html +++ b/master/Grant/GrantTypeInterface.php.html @@ -131,7 +131,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Grant/PasswordGrant.php.html b/master/Grant/PasswordGrant.php.html index 3e527759..07ffa2f1 100644 --- a/master/Grant/PasswordGrant.php.html +++ b/master/Grant/PasswordGrant.php.html @@ -42,61 +42,61 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 66.67% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
- CRAP -
-
- 76.92% covered (warning) +
100.00%
+
3 / 3
+ CRAP +
+
+ 100.00% covered (success)
-
76.92%
-
10 / 13
+
100.00%
+
62 / 62
- PasswordGrant -
-
- 0.00% covered (danger) + PasswordGrant +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 66.67% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
- 17.77 -
-
- 76.92% covered (warning) +
100.00%
+
3 / 3
+ 15 +
+
+ 100.00% covered (success)
-
76.92%
-
10 / 13
+
100.00%
+
62 / 62
@@ -117,7 +117,7 @@
100.00%
-
1 / 1
+
2 / 2
@@ -138,28 +138,28 @@
100.00%
-
1 / 1
+
3 / 3
-  completeFlow() -
-
- 0.00% covered (danger) +  completeFlow() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 13.45 -
-
- 72.73% covered (warning) +
100.00%
+
1 / 1
+ 11 +
+
+ 100.00% covered (success)
-
72.73%
-
8 / 11
+
100.00%
+
57 / 57
@@ -231,7 +231,7 @@     public function setVerifyCredentialsCallback(callable $callback)     {         $this->callback = $callback; -     } +     }     /**      * 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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Grant/RefreshTokenGrant.php.html b/master/Grant/RefreshTokenGrant.php.html index 5ab61d5d..25fdb257 100644 --- a/master/Grant/RefreshTokenGrant.php.html +++ b/master/Grant/RefreshTokenGrant.php.html @@ -67,7 +67,7 @@
100.00%
-
19 / 19
+
66 / 66
@@ -96,7 +96,7 @@
100.00%
-
19 / 19
+
66 / 66
@@ -201,7 +201,7 @@
100.00%
-
13 / 13
+
60 / 60
@@ -273,7 +273,7 @@     public function getRefreshTokenTTL()     {         return $this->refreshTokenTTL; -     } +     }     /**      * 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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Grant/dashboard.html b/master/Grant/dashboard.html index c2600afb..e90edb30 100644 --- a/master/Grant/dashboard.html +++ b/master/Grant/dashboard.html @@ -59,8 +59,6 @@ - ClientCredentialsGrant72% - PasswordGrant76% @@ -77,8 +75,6 @@ - PasswordGrant17 - ClientCredentialsGrant6 @@ -116,8 +112,6 @@ - completeFlow72% - completeFlow72% @@ -134,8 +128,6 @@ - completeFlow13 - completeFlow6 @@ -145,7 +137,7 @@
@@ -166,7 +158,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,0,0,3], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,5], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -184,7 +176,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,0,0,19], "Method Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,21], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -235,7 +227,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[100,21,"AbstractGrant<\/a>"],[100,25,"AuthCodeGrant<\/a>"],[72.727272727273,6,"ClientCredentialsGrant<\/a>"],[76.923076923077,15,"PasswordGrant<\/a>"],[100,16,"RefreshTokenGrant<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[100,21,"AbstractGrant<\/a>"],[100,25,"AuthCodeGrant<\/a>"],[100,6,"ClientCredentialsGrant<\/a>"],[100,15,"PasswordGrant<\/a>"],[100,16,"RefreshTokenGrant<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -260,7 +252,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[100,1,"AbstractGrant::getIdentifier<\/a>"],[100,1,"AbstractGrant::setIdentifier<\/a>"],[100,1,"AbstractGrant::getResponseType<\/a>"],[100,2,"AbstractGrant::getAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAuthorizationServer<\/a>"],[100,11,"AbstractGrant::validateScopes<\/a>"],[100,3,"AbstractGrant::formatScopes<\/a>"],[100,1,"AuthCodeGrant::setAuthTokenTTL<\/a>"],[100,8,"AuthCodeGrant::checkAuthorizeParams<\/a>"],[100,2,"AuthCodeGrant::newAuthorizeRequest<\/a>"],[100,14,"AuthCodeGrant::completeFlow<\/a>"],[72.727272727273,6,"ClientCredentialsGrant::completeFlow<\/a>"],[100,1,"PasswordGrant::setVerifyCredentialsCallback<\/a>"],[100,3,"PasswordGrant::getVerifyCredentialsCallback<\/a>"],[72.727272727273,11,"PasswordGrant::completeFlow<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::getRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenRotation<\/a>"],[100,1,"RefreshTokenGrant::shouldRotateRefreshTokens<\/a>"],[100,12,"RefreshTokenGrant::completeFlow<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[100,1,"AbstractGrant::getIdentifier<\/a>"],[100,1,"AbstractGrant::setIdentifier<\/a>"],[100,1,"AbstractGrant::getResponseType<\/a>"],[100,2,"AbstractGrant::getAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAuthorizationServer<\/a>"],[100,11,"AbstractGrant::validateScopes<\/a>"],[100,3,"AbstractGrant::formatScopes<\/a>"],[100,1,"AuthCodeGrant::setAuthTokenTTL<\/a>"],[100,8,"AuthCodeGrant::checkAuthorizeParams<\/a>"],[100,2,"AuthCodeGrant::newAuthorizeRequest<\/a>"],[100,14,"AuthCodeGrant::completeFlow<\/a>"],[100,6,"ClientCredentialsGrant::completeFlow<\/a>"],[100,1,"PasswordGrant::setVerifyCredentialsCallback<\/a>"],[100,3,"PasswordGrant::getVerifyCredentialsCallback<\/a>"],[100,11,"PasswordGrant::completeFlow<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::getRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenRotation<\/a>"],[100,1,"RefreshTokenGrant::shouldRotateRefreshTokens<\/a>"],[100,12,"RefreshTokenGrant::completeFlow<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/master/Grant/index.html b/master/Grant/index.html index 25dfd3ec..8626d66b 100644 --- a/master/Grant/index.html +++ b/master/Grant/index.html @@ -44,29 +44,29 @@ Total
-
- 92.94% covered (success) +
+ 100.00% covered (success)
-
92.94%
-
79 / 85
+
100.00%
+
317 / 317
-
- 90.48% covered (success) +
+ 100.00% covered (success)
-
90.48%
-
19 / 21
-
-
- 60.00% covered (warning) +
100.00%
+
21 / 21
+
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
5 / 5
@@ -78,7 +78,7 @@
100.00%
-
27 / 27
+
48 / 48
100.00% covered (success) @@ -106,7 +106,7 @@
100.00%
-
15 / 15
+
104 / 104
100.00% covered (success) @@ -126,31 +126,31 @@ - ClientCredentialsGrant.php -
-
- 72.73% covered (warning) + ClientCredentialsGrant.php +
+
+ 100.00% covered (success)
-
72.73%
-
8 / 11
-
-
- 0.00% covered (danger) +
100.00%
+
37 / 37
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
+
100.00%
+
1 / 1
@@ -167,31 +167,31 @@ - PasswordGrant.php -
-
- 76.92% covered (warning) + PasswordGrant.php +
+
+ 100.00% covered (success)
-
76.92%
-
10 / 13
-
-
- 66.67% covered (warning) +
100.00%
+
62 / 62
+
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
-
-
- 0.00% covered (danger) +
100.00%
+
3 / 3
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
+
100.00%
+
1 / 1
@@ -203,7 +203,7 @@
100.00%
-
19 / 19
+
66 / 66
100.00% covered (success) @@ -234,7 +234,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/ResourceServer.php.html b/master/ResourceServer.php.html index cc993889..337b36e0 100644 --- a/master/ResourceServer.php.html +++ b/master/ResourceServer.php.html @@ -41,87 +41,87 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 80.00% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
80.00%
-
4 / 5
- CRAP -
-
- 70.00% covered (warning) +
100.00%
+
5 / 5
+ CRAP +
+
+ 100.00% covered (success)
-
70.00%
-
14 / 20
+
100.00%
+
29 / 29
- ResourceServer -
-
- 0.00% covered (danger) + ResourceServer +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 80.00% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
80.00%
-
4 / 5
- 15.89 -
-
- 70.00% covered (warning) +
100.00%
+
5 / 5
+ 12 +
+
+ 100.00% covered (success)
-
70.00%
-
14 / 20
+
100.00%
+
29 / 29
-  __construct( +  __construct( SessionInterface $sessionStorage, AccessTokenInterface $accessTokenStorage, ClientInterface $clientStorage, ScopeInterface $scopeStorage ) -
-
- 0.00% covered (danger) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.42 -
-
- 25.00% covered (danger) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
25.00%
-
2 / 8
+
100.00%
+
7 / 7
@@ -184,7 +184,7 @@
100.00%
-
4 / 4
+
9 / 9
@@ -205,7 +205,7 @@
100.00%
-
5 / 5
+
10 / 10
@@ -270,18 +270,18 @@         ClientInterface $clientStorage,         ScopeInterface $scopeStorage     ) { -         $this->setSessionStorage($sessionStorage); -         $this->setAccessTokenStorage($accessTokenStorage); -         $this->setClientStorage($clientStorage); -         $this->setScopeStorage($scopeStorage); +         $this->setSessionStorage($sessionStorage); +         $this->setAccessTokenStorage($accessTokenStorage); +         $this->setClientStorage($clientStorage); +         $this->setScopeStorage($scopeStorage);         // 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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Storage/AbstractStorage.php.html b/master/Storage/AbstractStorage.php.html index b838f5b0..e3c3f2ef 100644 --- a/master/Storage/AbstractStorage.php.html +++ b/master/Storage/AbstractStorage.php.html @@ -67,7 +67,7 @@
100.00%
-
4 / 4
+
3 / 3
@@ -96,7 +96,7 @@
100.00%
-
4 / 4
+
3 / 3
@@ -117,7 +117,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -185,7 +185,7 @@         $this->server = $server;         return $this; -     } +     }     /**      * 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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Storage/AccessTokenInterface.php.html b/master/Storage/AccessTokenInterface.php.html index 35bd1e05..b2f3ff4f 100644 --- a/master/Storage/AccessTokenInterface.php.html +++ b/master/Storage/AccessTokenInterface.php.html @@ -141,7 +141,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Storage/AuthCodeInterface.php.html b/master/Storage/AuthCodeInterface.php.html index b4efa65d..4de093da 100644 --- a/master/Storage/AuthCodeInterface.php.html +++ b/master/Storage/AuthCodeInterface.php.html @@ -142,7 +142,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Storage/ClientInterface.php.html b/master/Storage/ClientInterface.php.html index ab166d3e..04f853b5 100644 --- a/master/Storage/ClientInterface.php.html +++ b/master/Storage/ClientInterface.php.html @@ -113,7 +113,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Storage/MacTokenInterface.php.html b/master/Storage/MacTokenInterface.php.html index 8fc6bfd5..9d36be4f 100644 --- a/master/Storage/MacTokenInterface.php.html +++ b/master/Storage/MacTokenInterface.php.html @@ -106,7 +106,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Storage/RefreshTokenInterface.php.html b/master/Storage/RefreshTokenInterface.php.html index 11027170..9fa538e1 100644 --- a/master/Storage/RefreshTokenInterface.php.html +++ b/master/Storage/RefreshTokenInterface.php.html @@ -121,7 +121,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Storage/ScopeInterface.php.html b/master/Storage/ScopeInterface.php.html index 6eb6cd81..656d06cf 100644 --- a/master/Storage/ScopeInterface.php.html +++ b/master/Storage/ScopeInterface.php.html @@ -101,7 +101,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Storage/SessionInterface.php.html b/master/Storage/SessionInterface.php.html index b09ef387..23de1867 100644 --- a/master/Storage/SessionInterface.php.html +++ b/master/Storage/SessionInterface.php.html @@ -144,7 +144,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Storage/StorageInterface.php.html b/master/Storage/StorageInterface.php.html index 1161f5d1..9ee276f0 100644 --- a/master/Storage/StorageInterface.php.html +++ b/master/Storage/StorageInterface.php.html @@ -99,7 +99,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Storage/dashboard.html b/master/Storage/dashboard.html index f7cc6bcf..ee3e7ae5 100644 --- a/master/Storage/dashboard.html +++ b/master/Storage/dashboard.html @@ -137,7 +137,7 @@
diff --git a/master/Storage/index.html b/master/Storage/index.html index daa17674..8610463d 100644 --- a/master/Storage/index.html +++ b/master/Storage/index.html @@ -50,7 +50,7 @@
100.00%
-
4 / 4
+
3 / 3
100.00% covered (success) @@ -78,7 +78,7 @@
100.00%
-
4 / 4
+
3 / 3
100.00% covered (success) @@ -213,7 +213,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/TokenType/AbstractTokenType.php.html b/master/TokenType/AbstractTokenType.php.html index 11dd9da6..4a35a077 100644 --- a/master/TokenType/AbstractTokenType.php.html +++ b/master/TokenType/AbstractTokenType.php.html @@ -58,7 +58,7 @@
100.00%
-
2 / 2
+
4 / 4
CRAP
@@ -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%
-
3 / 3
+
2 / 2
@@ -138,7 +138,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -152,9 +152,14 @@
100.00%
1 / 1
1 -   -
-
 
+
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
2 / 2
@@ -168,9 +173,14 @@
100.00%
1 / 1
2 -   -
-
 
+
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
1 / 1
@@ -222,36 +232,36 @@      */     public function setServer(AbstractServer $server)     { -         $this->server = $server; +         $this->server = $server; -         return $this; -     } +         return $this; +     }     /**      * {@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; +     } } @@ -265,7 +275,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/TokenType/Bearer.php.html b/master/TokenType/Bearer.php.html index 61443bf0..1ed2dc7f 100644 --- a/master/TokenType/Bearer.php.html +++ b/master/TokenType/Bearer.php.html @@ -67,7 +67,7 @@
100.00%
-
6 / 6
+
11 / 11
@@ -96,7 +96,7 @@
100.00%
-
6 / 6
+
11 / 11
@@ -117,7 +117,7 @@
100.00%
-
4 / 4
+
8 / 8
@@ -138,7 +138,7 @@
100.00%
-
2 / 2
+
3 / 3
@@ -169,28 +169,28 @@     public function generateResponse()     {         $return = [ -             'access_token'  =>  $this->getParam('access_token'), -             'token_type'    =>  'Bearer', -             'expires_in'    =>  $this->getParam('expires_in'), -         ]; +             'access_token'  =>  $this->getParam('access_token'), +             'token_type'    =>  'Bearer', +             'expires_in'    =>  $this->getParam('expires_in'), +         ]; -         if (!is_null($this->getParam('refresh_token'))) { -             $return['refresh_token'] = $this->getParam('refresh_token'); -         } +         if (!is_null($this->getParam('refresh_token'))) { +             $return['refresh_token'] = $this->getParam('refresh_token'); +         } -         return $return; -     } +         return $return; +     }     /**      * {@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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/TokenType/MAC.php.html b/master/TokenType/MAC.php.html index e38e3ba2..b4798f1f 100644 --- a/master/TokenType/MAC.php.html +++ b/master/TokenType/MAC.php.html @@ -60,14 +60,14 @@
75.00%
3 / 4
CRAP -
-
- 85.71% covered (warning) +
+
+ 96.49% covered (success)
-
85.71%
-
18 / 21
+
96.49%
+
55 / 57
@@ -88,36 +88,36 @@
75.00%
3 / 4
- 22.29 -
-
- 85.71% covered (warning) + 21 +
+
+ 96.49% covered (success)
-
85.71%
-
18 / 21
+
96.49%
+
55 / 57
-  generateResponse() -
-
- 0.00% covered (danger) +  generateResponse() +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 1.05 -
-
- 62.50% covered (warning) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
62.50%
-
5 / 8
+
100.00%
+
9 / 9
@@ -138,7 +138,7 @@
100.00%
-
2 / 2
+
7 / 7
@@ -159,28 +159,28 @@
100.00%
-
2 / 2
+
8 / 8
-  hash_equals($knownString, $userString) -
-
- 100.00% covered (success) +  hash_equals($knownString, $userString) +
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
- 4 -
-
- 100.00% covered (success) +
0.00%
+
0 / 1
+ 4.13 +
+
+ 80.00% covered (warning)
-
100.00%
-
1 / 1
+
80.00%
+
8 / 10
@@ -215,43 +215,43 @@      */     public function generateResponse()     { -         $macKey = SecureKey::generate(); -         $this->server->getMacStorage()->create($macKey, $this->getParam('access_token')); +         $macKey = SecureKey::generate(); +         $this->server->getMacStorage()->create($macKey, $this->getParam('access_token'));         $response = [             'access_token'  =>  $this->getParam('access_token'),             'token_type'    =>  'mac',             'expires_in'    =>  $this->getParam('expires_in'), -             'mac_key'       =>  $macKey, +             'mac_key'       =>  $macKey,             'mac_algorithm' =>  'hmac-sha-256', -         ]; +         ];         return $response; -     } +     }     /**      * {@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')) { -             return \hash_equals($knownString, $userString); -         } -         if (strlen($knownString) !== strlen($userString)) { -             return false; -         } -         $len = strlen($knownString); -         $result = 0; -         for ($i = 0; $i < $len; $i++) { -             $result |= (ord($knownString[$i]) ^ ord($userString[$i])); -         } +         if (function_exists('\hash_equals')) { +             return \hash_equals($knownString, $userString); +         } +         if (strlen($knownString) !== strlen($userString)) { +             return false; +         } +         $len = strlen($knownString); +         $result = 0; +         for ($i = 0; $i < $len; $i++) { +             $result |= (ord($knownString[$i]) ^ ord($userString[$i])); +         }         // 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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/TokenType/TokenTypeInterface.php.html b/master/TokenType/TokenTypeInterface.php.html index a0c7e634..f8f716be 100644 --- a/master/TokenType/TokenTypeInterface.php.html +++ b/master/TokenType/TokenTypeInterface.php.html @@ -140,7 +140,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/TokenType/dashboard.html b/master/TokenType/dashboard.html index 453ee1e4..e4be8bdd 100644 --- a/master/TokenType/dashboard.html +++ b/master/TokenType/dashboard.html @@ -59,7 +59,6 @@ - MAC85% @@ -76,7 +75,6 @@ - MAC22 @@ -114,7 +112,7 @@ - generateResponse62% + hash_equals80% @@ -131,6 +129,7 @@ + hash_equals4 @@ -140,7 +139,7 @@
@@ -161,7 +160,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,0,2], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,1,2], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -179,7 +178,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,0,0,0,1,0,0,0,9], "Method Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,0,9], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -230,7 +229,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[100,5,"AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[85.714285714286,21,"MAC<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[100,5,"AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[96.491228070175,21,"MAC<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -255,7 +254,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[100,1,"AbstractTokenType::setServer<\/a>"],[100,1,"AbstractTokenType::setSession<\/a>"],[100,1,"AbstractTokenType::setParam<\/a>"],[100,2,"AbstractTokenType::getParam<\/a>"],[100,2,"Bearer::generateResponse<\/a>"],[100,2,"Bearer::determineAccessTokenInHeader<\/a>"],[62.5,1,"MAC::generateResponse<\/a>"],[100,13,"MAC::determineAccessTokenInHeader<\/a>"],[100,3,"MAC::anonymous function<\/a>"],[100,4,"MAC::hash_equals<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[100,1,"AbstractTokenType::setServer<\/a>"],[100,1,"AbstractTokenType::setSession<\/a>"],[100,1,"AbstractTokenType::setParam<\/a>"],[100,2,"AbstractTokenType::getParam<\/a>"],[100,2,"Bearer::generateResponse<\/a>"],[100,2,"Bearer::determineAccessTokenInHeader<\/a>"],[100,1,"MAC::generateResponse<\/a>"],[100,13,"MAC::determineAccessTokenInHeader<\/a>"],[100,3,"MAC::anonymous function<\/a>"],[80,4,"MAC::hash_equals<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/master/TokenType/index.html b/master/TokenType/index.html index bc8f9289..81159205 100644 --- a/master/TokenType/index.html +++ b/master/TokenType/index.html @@ -44,21 +44,21 @@ Total
-
- 90.91% covered (success) +
+ 97.33% covered (success)
-
90.91%
-
30 / 33
-
-
- 87.50% covered (warning) +
97.33%
+
73 / 75
+
+
+ 90.00% covered (success)
-
87.50%
-
7 / 8
+
90.00%
+
9 / 10
66.67% covered (warning) @@ -78,7 +78,7 @@
100.00%
-
6 / 6
+
7 / 7
100.00% covered (success) @@ -86,7 +86,7 @@
100.00%
-
2 / 2
+
4 / 4
100.00% covered (success) @@ -106,7 +106,7 @@
100.00%
-
6 / 6
+
11 / 11
100.00% covered (success) @@ -126,15 +126,15 @@ - MAC.php -
-
- 85.71% covered (warning) + MAC.php +
+
+ 96.49% covered (success)
-
85.71%
-
18 / 21
+
96.49%
+
55 / 57
75.00% covered (warning) @@ -178,7 +178,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html b/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html index 16aae5ed..10b4b5af 100644 --- a/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html +++ b/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html @@ -43,82 +43,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
33.33%
-
2 / 6
+
100.00%
+
6 / 6
- DefaultAlgorithm -
-
- 0.00% covered (danger) + DefaultAlgorithm +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 8.74 -
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+ 4 +
+
+ 100.00% covered (success)
-
33.33%
-
2 / 6
+
100.00%
+
6 / 6
-  generate($len = 40) -
-
- 0.00% covered (danger) +  generate($len = 40) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 8.74 -
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+ 4 +
+
+ 100.00% covered (success)
-
33.33%
-
2 / 6
+
100.00%
+
6 / 6
@@ -146,21 +146,21 @@      */     public function generate($len = 40)     { -         $stripped = ''; +         $stripped = '';         do { -             $bytes = openssl_random_pseudo_bytes($len, $strong); +             $bytes = openssl_random_pseudo_bytes($len, $strong);             // 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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html b/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html index c59bd71b..dc635c6b 100644 --- a/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html +++ b/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html @@ -97,7 +97,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

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

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Util/RedirectUri.php.html b/master/Util/RedirectUri.php.html index d0d22422..6bc2f26e 100644 --- a/master/Util/RedirectUri.php.html +++ b/master/Util/RedirectUri.php.html @@ -42,82 +42,82 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- CRAP -
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+ CRAP +
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
+
100.00%
+
2 / 2
- RedirectUri -
-
- 0.00% covered (danger) + RedirectUri +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 0.00% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 3.19 -
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+ 2 +
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
+
100.00%
+
2 / 2
-  make($uri, $params = [], $queryDelimeter = '?') -
-
- 0.00% covered (danger) +  make($uri, $params = [], $queryDelimeter = '?') +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 3.19 -
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+ 2 +
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
+
100.00%
+
2 / 2
@@ -154,10 +154,10 @@      */     public static function make($uri, $params = [], $queryDelimeter = '?')     { -         $uri .= (strstr($uri, $queryDelimeter) === false) ? $queryDelimeter : '&'; +         $uri .= (strstr($uri, $queryDelimeter) === false) ? $queryDelimeter : '&'; -         return $uri.http_build_query($params); -     } +         return $uri.http_build_query($params); +     } } @@ -171,7 +171,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/Util/SecureKey.php.html b/master/Util/SecureKey.php.html index 47a4a2e3..816c9301 100644 --- a/master/Util/SecureKey.php.html +++ b/master/Util/SecureKey.php.html @@ -42,86 +42,65 @@ - Total -
-
- 0.00% covered (danger) + Total +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
- CRAP -
-
- 50.00% covered (warning) +
100.00%
+
3 / 3
+ CRAP +
+
+ 100.00% covered (success)
-
50.00%
-
3 / 6
+
100.00%
+
7 / 7
- SecureKey -
-
- 0.00% covered (danger) + SecureKey +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
- 6.00 -
-
- 50.00% covered (warning) +
100.00%
+
3 / 3
+ 4 +
+
+ 100.00% covered (success)
-
50.00%
-
3 / 6
+
100.00%
+
7 / 7
-  generate($len = 40) -
-
- 0.00% covered (danger) -
-
- -
0.00%
-
0 / 1
- 1.12 -
-
- 50.00% covered (warning) -
-
- -
50.00%
-
1 / 2
- - - -  setAlgorithm(KeyAlgorithmInterface $algorithm) +  generate($len = 40)
100.00% covered (success) @@ -142,24 +121,45 @@ -  getAlgorithm() -
-
- 0.00% covered (danger) +  setAlgorithm(KeyAlgorithmInterface $algorithm) +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
- 3.19 -
-
- 33.33% covered (danger) +
100.00%
+
1 / 1
+ 1 +
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
+
100.00%
+
2 / 2
+ + + +  getAlgorithm() +
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
1 / 1
+ 2 +
+
+ 100.00% covered (success) +
+
+ +
100.00%
+
4 / 4
@@ -199,8 +199,8 @@      */     public static function generate($len = 40)     { -         return self::getAlgorithm()->generate($len); -     } +         return self::getAlgorithm()->generate($len); +     }     /**      * @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 HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

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

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.

diff --git a/master/dashboard.html b/master/dashboard.html index 3599c630..adfb3425 100644 --- a/master/dashboard.html +++ b/master/dashboard.html @@ -58,32 +58,9 @@ - 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% + UserAuthenticationFailedEvent75% + ClientAuthenticationFailedEvent75% + AccessTokenEntity84% @@ -100,19 +77,7 @@ - AuthorizationServer29 - AbstractServer25 - MAC22 - PasswordGrant17 - ResourceServer15 - AuthCodeEntity11 - AccessTokenEntity10 - DefaultAlgorithm8 - ClientCredentialsGrant6 - SecureKey6 - EntityTrait3 - ServerErrorException3 - RedirectUri3 + AccessTokenEntity9 @@ -150,42 +115,11 @@ - 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% + getRequest0% + getRequest0% + hasScope0% + hash_equals80% + formatScopes88% @@ -202,21 +136,9 @@ - completeFlow13 - generate8 - completeFlow6 - addGrantType5 - hydrate3 - __construct3 - make3 - getAlgorithm3 - generateRedirectUri2 - associateScope2 - setEventEmitter2 - getRequest2 - getScopes2 - save2 - getSession2 + hasScope6 + hash_equals4 + formatScopes4 @@ -226,7 +148,7 @@
@@ -247,7 +169,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,3,0,8,6,6,3,2,10], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,1,2,33], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -265,7 +187,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([2,0,0,1,6,1,14,8,3,1,0,123], "Method Coverage")) + .datum(getCoverageDistributionData([3,0,0,0,0,0,0,0,0,2,0,154], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -316,7 +238,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[86.046511627907,24,"AbstractServer<\/a>"],[73.333333333333,21,"AuthorizationServer<\/a>"],[91.304347826087,18,"AbstractTokenEntity<\/a>"],[71.428571428571,9,"AccessTokenEntity<\/a>"],[86.95652173913,11,"AuthCodeEntity<\/a>"],[100,5,"ClientEntity<\/a>"],[100,6,"RefreshTokenEntity<\/a>"],[100,4,"ScopeEntity<\/a>"],[100,23,"SessionEntity<\/a>"],[66.666666666667,3,"ClientAuthenticationFailedEvent<\/a>"],[75,3,"SessionOwnerEvent<\/a>"],[66.666666666667,3,"UserAuthenticationFailedEvent<\/a>"],[50,1,"AccessDeniedException<\/a>"],[50,1,"InvalidClientException<\/a>"],[50,1,"InvalidCredentialsException<\/a>"],[50,1,"InvalidGrantException<\/a>"],[50,1,"InvalidRefreshException<\/a>"],[60,1,"InvalidRequestException<\/a>"],[60,1,"InvalidScopeException<\/a>"],[93.333333333333,15,"OAuthException<\/a>"],[33.333333333333,2,"ServerErrorException<\/a>"],[50,1,"UnauthorizedClientException<\/a>"],[50,1,"UnsupportedGrantTypeException<\/a>"],[66.666666666667,1,"UnsupportedResponseTypeException<\/a>"],[100,21,"AbstractGrant<\/a>"],[100,25,"AuthCodeGrant<\/a>"],[72.727272727273,6,"ClientCredentialsGrant<\/a>"],[76.923076923077,15,"PasswordGrant<\/a>"],[100,16,"RefreshTokenGrant<\/a>"],[70,12,"ResourceServer<\/a>"],[100,2,"AbstractStorage<\/a>"],[100,5,"AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[85.714285714286,21,"MAC<\/a>"],[33.333333333333,4,"DefaultAlgorithm<\/a>"],[33.333333333333,2,"RedirectUri<\/a>"],[50,4,"SecureKey<\/a>"],[60,3,"EntityTrait<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[100,24,"AbstractServer<\/a>"],[100,21,"AuthorizationServer<\/a>"],[96.296296296296,18,"AbstractTokenEntity<\/a>"],[84,9,"AccessTokenEntity<\/a>"],[100,11,"AuthCodeEntity<\/a>"],[100,5,"ClientEntity<\/a>"],[100,6,"RefreshTokenEntity<\/a>"],[100,4,"ScopeEntity<\/a>"],[100,23,"SessionEntity<\/a>"],[75,3,"ClientAuthenticationFailedEvent<\/a>"],[100,3,"SessionOwnerEvent<\/a>"],[75,3,"UserAuthenticationFailedEvent<\/a>"],[100,1,"AccessDeniedException<\/a>"],[100,1,"InvalidClientException<\/a>"],[100,1,"InvalidCredentialsException<\/a>"],[100,1,"InvalidGrantException<\/a>"],[100,1,"InvalidRefreshException<\/a>"],[100,1,"InvalidRequestException<\/a>"],[100,1,"InvalidScopeException<\/a>"],[100,15,"OAuthException<\/a>"],[100,2,"ServerErrorException<\/a>"],[100,1,"UnauthorizedClientException<\/a>"],[100,1,"UnsupportedGrantTypeException<\/a>"],[100,1,"UnsupportedResponseTypeException<\/a>"],[100,21,"AbstractGrant<\/a>"],[100,25,"AuthCodeGrant<\/a>"],[100,6,"ClientCredentialsGrant<\/a>"],[100,15,"PasswordGrant<\/a>"],[100,16,"RefreshTokenGrant<\/a>"],[100,12,"ResourceServer<\/a>"],[100,2,"AbstractStorage<\/a>"],[100,5,"AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[96.491228070175,21,"MAC<\/a>"],[100,4,"DefaultAlgorithm<\/a>"],[100,2,"RedirectUri<\/a>"],[100,4,"SecureKey<\/a>"],[100,3,"EntityTrait<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -341,7 +263,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[50,1,"AbstractServer::__construct<\/a>"],[60,2,"AbstractServer::setEventEmitter<\/a>"],[0,1,"AbstractServer::addEventListener<\/a>"],[100,1,"AbstractServer::getEventEmitter<\/a>"],[100,1,"AbstractServer::setRequest<\/a>"],[66.666666666667,2,"AbstractServer::getRequest<\/a>"],[100,1,"AbstractServer::setClientStorage<\/a>"],[100,1,"AbstractServer::setSessionStorage<\/a>"],[100,1,"AbstractServer::setAccessTokenStorage<\/a>"],[100,1,"AbstractServer::setRefreshTokenStorage<\/a>"],[100,1,"AbstractServer::setAuthCodeStorage<\/a>"],[100,1,"AbstractServer::setScopeStorage<\/a>"],[100,1,"AbstractServer::getClientStorage<\/a>"],[100,1,"AbstractServer::getScopeStorage<\/a>"],[100,1,"AbstractServer::getSessionStorage<\/a>"],[100,1,"AbstractServer::getRefreshTokenStorage<\/a>"],[100,1,"AbstractServer::getAccessTokenStorage<\/a>"],[100,1,"AbstractServer::getAuthCodeStorage<\/a>"],[100,1,"AbstractServer::setTokenType<\/a>"],[100,1,"AbstractServer::getTokenType<\/a>"],[100,1,"AbstractServer::getMacStorage<\/a>"],[100,1,"AbstractServer::setMacStorage<\/a>"],[33.333333333333,1,"AuthorizationServer::__construct<\/a>"],[37.5,3,"AuthorizationServer::addGrantType<\/a>"],[0,1,"AuthorizationServer::hasGrantType<\/a>"],[100,1,"AuthorizationServer::getResponseTypes<\/a>"],[100,1,"AuthorizationServer::requireScopeParam<\/a>"],[100,1,"AuthorizationServer::scopeParamRequired<\/a>"],[100,1,"AuthorizationServer::setDefaultScope<\/a>"],[100,1,"AuthorizationServer::getDefaultScope<\/a>"],[100,1,"AuthorizationServer::stateParamRequired<\/a>"],[100,1,"AuthorizationServer::requireStateParam<\/a>"],[100,1,"AuthorizationServer::getScopeDelimiter<\/a>"],[100,1,"AuthorizationServer::setScopeDelimiter<\/a>"],[100,1,"AuthorizationServer::getAccessTokenTTL<\/a>"],[100,1,"AuthorizationServer::setAccessTokenTTL<\/a>"],[100,3,"AuthorizationServer::issueAccessToken<\/a>"],[100,2,"AuthorizationServer::getGrantType<\/a>"],[100,1,"AbstractTokenEntity::__construct<\/a>"],[100,1,"AbstractTokenEntity::setSession<\/a>"],[100,1,"AbstractTokenEntity::setExpireTime<\/a>"],[100,1,"AbstractTokenEntity::getExpireTime<\/a>"],[100,1,"AbstractTokenEntity::isExpired<\/a>"],[100,2,"AbstractTokenEntity::setId<\/a>"],[100,1,"AbstractTokenEntity::getId<\/a>"],[50,2,"AbstractTokenEntity::associateScope<\/a>"],[100,4,"AbstractTokenEntity::formatScopes<\/a>"],[100,2,"AbstractTokenEntity::__toString<\/a>"],[100,1,"AbstractTokenEntity::expire<\/a>"],[100,1,"AbstractTokenEntity::save<\/a>"],[80,2,"AccessTokenEntity::getSession<\/a>"],[100,2,"AccessTokenEntity::hasScope<\/a>"],[66.666666666667,2,"AccessTokenEntity::getScopes<\/a>"],[70,2,"AccessTokenEntity::save<\/a>"],[100,1,"AccessTokenEntity::expire<\/a>"],[100,1,"AuthCodeEntity::setRedirectUri<\/a>"],[100,1,"AuthCodeEntity::getRedirectUri<\/a>"],[40,2,"AuthCodeEntity::generateRedirectUri<\/a>"],[100,2,"AuthCodeEntity::getSession<\/a>"],[100,2,"AuthCodeEntity::getScopes<\/a>"],[100,2,"AuthCodeEntity::save<\/a>"],[100,1,"AuthCodeEntity::expire<\/a>"],[100,1,"ClientEntity::__construct<\/a>"],[100,1,"ClientEntity::getId<\/a>"],[100,1,"ClientEntity::getSecret<\/a>"],[100,1,"ClientEntity::getName<\/a>"],[100,1,"ClientEntity::getRedirectUri<\/a>"],[100,1,"RefreshTokenEntity::setAccessTokenId<\/a>"],[100,1,"RefreshTokenEntity::setAccessToken<\/a>"],[100,2,"RefreshTokenEntity::getAccessToken<\/a>"],[100,1,"RefreshTokenEntity::save<\/a>"],[100,1,"RefreshTokenEntity::expire<\/a>"],[100,1,"ScopeEntity::__construct<\/a>"],[100,1,"ScopeEntity::getId<\/a>"],[100,1,"ScopeEntity::getDescription<\/a>"],[100,1,"ScopeEntity::jsonSerialize<\/a>"],[100,1,"SessionEntity::__construct<\/a>"],[100,1,"SessionEntity::setId<\/a>"],[100,1,"SessionEntity::getId<\/a>"],[100,2,"SessionEntity::associateScope<\/a>"],[100,2,"SessionEntity::hasScope<\/a>"],[100,2,"SessionEntity::getScopes<\/a>"],[100,4,"SessionEntity::formatScopes<\/a>"],[100,1,"SessionEntity::associateAccessToken<\/a>"],[100,1,"SessionEntity::associateRefreshToken<\/a>"],[100,1,"SessionEntity::associateClient<\/a>"],[100,2,"SessionEntity::getClient<\/a>"],[100,1,"SessionEntity::setOwner<\/a>"],[100,1,"SessionEntity::getOwnerId<\/a>"],[100,1,"SessionEntity::getOwnerType<\/a>"],[100,2,"SessionEntity::save<\/a>"],[50,1,"ClientAuthenticationFailedEvent::__construct<\/a>"],[100,1,"ClientAuthenticationFailedEvent::getName<\/a>"],[100,1,"ClientAuthenticationFailedEvent::getRequest<\/a>"],[50,1,"SessionOwnerEvent::__construct<\/a>"],[100,1,"SessionOwnerEvent::getName<\/a>"],[100,1,"SessionOwnerEvent::getSession<\/a>"],[50,1,"UserAuthenticationFailedEvent::__construct<\/a>"],[100,1,"UserAuthenticationFailedEvent::getName<\/a>"],[100,1,"UserAuthenticationFailedEvent::getRequest<\/a>"],[50,1,"AccessDeniedException::__construct<\/a>"],[50,1,"InvalidClientException::__construct<\/a>"],[50,1,"InvalidCredentialsException::__construct<\/a>"],[50,1,"InvalidGrantException::__construct<\/a>"],[50,1,"InvalidRefreshException::__construct<\/a>"],[60,1,"InvalidRequestException::__construct<\/a>"],[60,1,"InvalidScopeException::__construct<\/a>"],[50,1,"OAuthException::__construct<\/a>"],[100,2,"OAuthException::shouldRedirect<\/a>"],[100,1,"OAuthException::getRedirectUri<\/a>"],[100,11,"OAuthException::getHttpHeaders<\/a>"],[33.333333333333,2,"ServerErrorException::__construct<\/a>"],[50,1,"UnauthorizedClientException::__construct<\/a>"],[50,1,"UnsupportedGrantTypeException::__construct<\/a>"],[66.666666666667,1,"UnsupportedResponseTypeException::__construct<\/a>"],[100,1,"AbstractGrant::getIdentifier<\/a>"],[100,1,"AbstractGrant::setIdentifier<\/a>"],[100,1,"AbstractGrant::getResponseType<\/a>"],[100,2,"AbstractGrant::getAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAuthorizationServer<\/a>"],[100,11,"AbstractGrant::validateScopes<\/a>"],[100,3,"AbstractGrant::formatScopes<\/a>"],[100,1,"AuthCodeGrant::setAuthTokenTTL<\/a>"],[100,8,"AuthCodeGrant::checkAuthorizeParams<\/a>"],[100,2,"AuthCodeGrant::newAuthorizeRequest<\/a>"],[100,14,"AuthCodeGrant::completeFlow<\/a>"],[72.727272727273,6,"ClientCredentialsGrant::completeFlow<\/a>"],[100,1,"PasswordGrant::setVerifyCredentialsCallback<\/a>"],[100,3,"PasswordGrant::getVerifyCredentialsCallback<\/a>"],[72.727272727273,11,"PasswordGrant::completeFlow<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::getRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenRotation<\/a>"],[100,1,"RefreshTokenGrant::shouldRotateRefreshTokens<\/a>"],[100,12,"RefreshTokenGrant::completeFlow<\/a>"],[25,1,"ResourceServer::__construct<\/a>"],[100,1,"ResourceServer::setIdKey<\/a>"],[100,1,"ResourceServer::getAccessToken<\/a>"],[100,4,"ResourceServer::isValidRequest<\/a>"],[100,5,"ResourceServer::determineAccessToken<\/a>"],[100,1,"AbstractStorage::setServer<\/a>"],[100,1,"AbstractStorage::getServer<\/a>"],[100,1,"AbstractTokenType::setServer<\/a>"],[100,1,"AbstractTokenType::setSession<\/a>"],[100,1,"AbstractTokenType::setParam<\/a>"],[100,2,"AbstractTokenType::getParam<\/a>"],[100,2,"Bearer::generateResponse<\/a>"],[100,2,"Bearer::determineAccessTokenInHeader<\/a>"],[62.5,1,"MAC::generateResponse<\/a>"],[100,13,"MAC::determineAccessTokenInHeader<\/a>"],[100,3,"MAC::anonymous function<\/a>"],[100,4,"MAC::hash_equals<\/a>"],[33.333333333333,4,"DefaultAlgorithm::generate<\/a>"],[33.333333333333,2,"RedirectUri::make<\/a>"],[50,1,"SecureKey::generate<\/a>"],[100,1,"SecureKey::setAlgorithm<\/a>"],[33.333333333333,2,"SecureKey::getAlgorithm<\/a>"],[60,3,"EntityTrait::hydrate<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[100,1,"AbstractServer::__construct<\/a>"],[100,2,"AbstractServer::setEventEmitter<\/a>"],[100,1,"AbstractServer::addEventListener<\/a>"],[100,1,"AbstractServer::getEventEmitter<\/a>"],[100,1,"AbstractServer::setRequest<\/a>"],[100,2,"AbstractServer::getRequest<\/a>"],[100,1,"AbstractServer::setClientStorage<\/a>"],[100,1,"AbstractServer::setSessionStorage<\/a>"],[100,1,"AbstractServer::setAccessTokenStorage<\/a>"],[100,1,"AbstractServer::setRefreshTokenStorage<\/a>"],[100,1,"AbstractServer::setAuthCodeStorage<\/a>"],[100,1,"AbstractServer::setScopeStorage<\/a>"],[100,1,"AbstractServer::getClientStorage<\/a>"],[100,1,"AbstractServer::getScopeStorage<\/a>"],[100,1,"AbstractServer::getSessionStorage<\/a>"],[100,1,"AbstractServer::getRefreshTokenStorage<\/a>"],[100,1,"AbstractServer::getAccessTokenStorage<\/a>"],[100,1,"AbstractServer::getAuthCodeStorage<\/a>"],[100,1,"AbstractServer::setTokenType<\/a>"],[100,1,"AbstractServer::getTokenType<\/a>"],[100,1,"AbstractServer::getMacStorage<\/a>"],[100,1,"AbstractServer::setMacStorage<\/a>"],[100,1,"AuthorizationServer::__construct<\/a>"],[100,3,"AuthorizationServer::addGrantType<\/a>"],[100,1,"AuthorizationServer::hasGrantType<\/a>"],[100,1,"AuthorizationServer::getResponseTypes<\/a>"],[100,1,"AuthorizationServer::requireScopeParam<\/a>"],[100,1,"AuthorizationServer::scopeParamRequired<\/a>"],[100,1,"AuthorizationServer::setDefaultScope<\/a>"],[100,1,"AuthorizationServer::getDefaultScope<\/a>"],[100,1,"AuthorizationServer::stateParamRequired<\/a>"],[100,1,"AuthorizationServer::requireStateParam<\/a>"],[100,1,"AuthorizationServer::getScopeDelimiter<\/a>"],[100,1,"AuthorizationServer::setScopeDelimiter<\/a>"],[100,1,"AuthorizationServer::getAccessTokenTTL<\/a>"],[100,1,"AuthorizationServer::setAccessTokenTTL<\/a>"],[100,3,"AuthorizationServer::issueAccessToken<\/a>"],[100,2,"AuthorizationServer::getGrantType<\/a>"],[100,1,"AbstractTokenEntity::__construct<\/a>"],[100,1,"AbstractTokenEntity::setSession<\/a>"],[100,1,"AbstractTokenEntity::setExpireTime<\/a>"],[100,1,"AbstractTokenEntity::getExpireTime<\/a>"],[100,1,"AbstractTokenEntity::isExpired<\/a>"],[100,2,"AbstractTokenEntity::setId<\/a>"],[100,1,"AbstractTokenEntity::getId<\/a>"],[100,2,"AbstractTokenEntity::associateScope<\/a>"],[88.888888888889,4,"AbstractTokenEntity::formatScopes<\/a>"],[100,2,"AbstractTokenEntity::__toString<\/a>"],[100,1,"AbstractTokenEntity::expire<\/a>"],[100,1,"AbstractTokenEntity::save<\/a>"],[100,2,"AccessTokenEntity::getSession<\/a>"],[0,2,"AccessTokenEntity::hasScope<\/a>"],[100,2,"AccessTokenEntity::getScopes<\/a>"],[100,2,"AccessTokenEntity::save<\/a>"],[100,1,"AccessTokenEntity::expire<\/a>"],[100,1,"AuthCodeEntity::setRedirectUri<\/a>"],[100,1,"AuthCodeEntity::getRedirectUri<\/a>"],[100,2,"AuthCodeEntity::generateRedirectUri<\/a>"],[100,2,"AuthCodeEntity::getSession<\/a>"],[100,2,"AuthCodeEntity::getScopes<\/a>"],[100,2,"AuthCodeEntity::save<\/a>"],[100,1,"AuthCodeEntity::expire<\/a>"],[100,1,"ClientEntity::__construct<\/a>"],[100,1,"ClientEntity::getId<\/a>"],[100,1,"ClientEntity::getSecret<\/a>"],[100,1,"ClientEntity::getName<\/a>"],[100,1,"ClientEntity::getRedirectUri<\/a>"],[100,1,"RefreshTokenEntity::setAccessTokenId<\/a>"],[100,1,"RefreshTokenEntity::setAccessToken<\/a>"],[100,2,"RefreshTokenEntity::getAccessToken<\/a>"],[100,1,"RefreshTokenEntity::save<\/a>"],[100,1,"RefreshTokenEntity::expire<\/a>"],[100,1,"ScopeEntity::__construct<\/a>"],[100,1,"ScopeEntity::getId<\/a>"],[100,1,"ScopeEntity::getDescription<\/a>"],[100,1,"ScopeEntity::jsonSerialize<\/a>"],[100,1,"SessionEntity::__construct<\/a>"],[100,1,"SessionEntity::setId<\/a>"],[100,1,"SessionEntity::getId<\/a>"],[100,2,"SessionEntity::associateScope<\/a>"],[100,2,"SessionEntity::hasScope<\/a>"],[100,2,"SessionEntity::getScopes<\/a>"],[100,4,"SessionEntity::formatScopes<\/a>"],[100,1,"SessionEntity::associateAccessToken<\/a>"],[100,1,"SessionEntity::associateRefreshToken<\/a>"],[100,1,"SessionEntity::associateClient<\/a>"],[100,2,"SessionEntity::getClient<\/a>"],[100,1,"SessionEntity::setOwner<\/a>"],[100,1,"SessionEntity::getOwnerId<\/a>"],[100,1,"SessionEntity::getOwnerType<\/a>"],[100,2,"SessionEntity::save<\/a>"],[100,1,"ClientAuthenticationFailedEvent::__construct<\/a>"],[100,1,"ClientAuthenticationFailedEvent::getName<\/a>"],[0,1,"ClientAuthenticationFailedEvent::getRequest<\/a>"],[100,1,"SessionOwnerEvent::__construct<\/a>"],[100,1,"SessionOwnerEvent::getName<\/a>"],[100,1,"SessionOwnerEvent::getSession<\/a>"],[100,1,"UserAuthenticationFailedEvent::__construct<\/a>"],[100,1,"UserAuthenticationFailedEvent::getName<\/a>"],[0,1,"UserAuthenticationFailedEvent::getRequest<\/a>"],[100,1,"AccessDeniedException::__construct<\/a>"],[100,1,"InvalidClientException::__construct<\/a>"],[100,1,"InvalidCredentialsException::__construct<\/a>"],[100,1,"InvalidGrantException::__construct<\/a>"],[100,1,"InvalidRefreshException::__construct<\/a>"],[100,1,"InvalidRequestException::__construct<\/a>"],[100,1,"InvalidScopeException::__construct<\/a>"],[100,1,"OAuthException::__construct<\/a>"],[100,2,"OAuthException::shouldRedirect<\/a>"],[100,1,"OAuthException::getRedirectUri<\/a>"],[100,11,"OAuthException::getHttpHeaders<\/a>"],[100,2,"ServerErrorException::__construct<\/a>"],[100,1,"UnauthorizedClientException::__construct<\/a>"],[100,1,"UnsupportedGrantTypeException::__construct<\/a>"],[100,1,"UnsupportedResponseTypeException::__construct<\/a>"],[100,1,"AbstractGrant::getIdentifier<\/a>"],[100,1,"AbstractGrant::setIdentifier<\/a>"],[100,1,"AbstractGrant::getResponseType<\/a>"],[100,2,"AbstractGrant::getAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAccessTokenTTL<\/a>"],[100,1,"AbstractGrant::setAuthorizationServer<\/a>"],[100,11,"AbstractGrant::validateScopes<\/a>"],[100,3,"AbstractGrant::formatScopes<\/a>"],[100,1,"AuthCodeGrant::setAuthTokenTTL<\/a>"],[100,8,"AuthCodeGrant::checkAuthorizeParams<\/a>"],[100,2,"AuthCodeGrant::newAuthorizeRequest<\/a>"],[100,14,"AuthCodeGrant::completeFlow<\/a>"],[100,6,"ClientCredentialsGrant::completeFlow<\/a>"],[100,1,"PasswordGrant::setVerifyCredentialsCallback<\/a>"],[100,3,"PasswordGrant::getVerifyCredentialsCallback<\/a>"],[100,11,"PasswordGrant::completeFlow<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::getRefreshTokenTTL<\/a>"],[100,1,"RefreshTokenGrant::setRefreshTokenRotation<\/a>"],[100,1,"RefreshTokenGrant::shouldRotateRefreshTokens<\/a>"],[100,12,"RefreshTokenGrant::completeFlow<\/a>"],[100,1,"ResourceServer::__construct<\/a>"],[100,1,"ResourceServer::setIdKey<\/a>"],[100,1,"ResourceServer::getAccessToken<\/a>"],[100,4,"ResourceServer::isValidRequest<\/a>"],[100,5,"ResourceServer::determineAccessToken<\/a>"],[100,1,"AbstractStorage::setServer<\/a>"],[100,1,"AbstractStorage::getServer<\/a>"],[100,1,"AbstractTokenType::setServer<\/a>"],[100,1,"AbstractTokenType::setSession<\/a>"],[100,1,"AbstractTokenType::setParam<\/a>"],[100,2,"AbstractTokenType::getParam<\/a>"],[100,2,"Bearer::generateResponse<\/a>"],[100,2,"Bearer::determineAccessTokenInHeader<\/a>"],[100,1,"MAC::generateResponse<\/a>"],[100,13,"MAC::determineAccessTokenInHeader<\/a>"],[100,3,"MAC::anonymous function<\/a>"],[80,4,"MAC::hash_equals<\/a>"],[100,4,"DefaultAlgorithm::generate<\/a>"],[100,2,"RedirectUri::make<\/a>"],[100,1,"SecureKey::generate<\/a>"],[100,1,"SecureKey::setAlgorithm<\/a>"],[100,2,"SecureKey::getAlgorithm<\/a>"],[100,3,"EntityTrait::hydrate<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/master/index.html b/master/index.html index adc74f38..9176d414 100644 --- a/master/index.html +++ b/master/index.html @@ -41,7 +41,63 @@ - Total + Total +
+
+ 98.84% covered (success) +
+
+ +
98.84%
+
766 / 775
+
+
+ 96.82% covered (success) +
+
+ +
96.82%
+
152 / 157
+
+
+ 86.84% covered (warning) +
+
+ +
86.84%
+
33 / 38
+ + + +
Entity +
+
+ 97.08% covered (success) +
+
+ +
97.08%
+
166 / 171
+
+
+ 96.15% covered (success) +
+
+ +
96.15%
+
50 / 52
+
+
+ 75.00% covered (warning) +
+
+ +
75.00%
+
6 / 8
+ + + + Event
83.33% covered (warning) @@ -49,135 +105,79 @@
83.33%
-
355 / 426
+
10 / 12
-
- 75.17% covered (warning) +
+ 77.78% covered (warning)
-
75.17%
-
109 / 145
+
77.78%
+
7 / 9
-
- 26.32% covered (danger) +
+ 33.33% covered (danger)
-
26.32%
-
10 / 38
+
33.33%
+
1 / 3
- Entity + Exception
-
- 90.51% covered (success) +
+ 100.00% covered (success)
-
90.51%
-
124 / 137
-
-
- 86.96% covered (warning) +
100.00%
+
67 / 67
+
+
+ 100.00% covered (success)
-
86.96%
-
40 / 46
-
-
- 50.00% covered (warning) +
100.00%
+
15 / 15
+
+
+ 100.00% covered (success)
-
50.00%
-
4 / 8
- - - - Event -
-
- 70.00% covered (warning) -
-
- -
70.00%
-
7 / 10
-
-
- 57.14% covered (warning) -
-
- -
57.14%
-
4 / 7
-
-
- 0.00% covered (danger) -
-
- -
0.00%
-
0 / 3
- - - - Exception -
-
- 65.31% covered (warning) -
-
- -
65.31%
-
32 / 49
-
-
- 14.29% covered (danger) -
-
- -
14.29%
-
2 / 14
-
-
- 0.00% covered (danger) -
-
- -
0.00%
-
0 / 12
+
100.00%
+
12 / 12
Grant
-
- 92.94% covered (success) +
+ 100.00% covered (success)
-
92.94%
-
79 / 85
+
100.00%
+
317 / 317
-
- 90.48% covered (success) +
+ 100.00% covered (success)
-
90.48%
-
19 / 21
-
-
- 60.00% covered (warning) +
100.00%
+
21 / 21
+
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
5 / 5
@@ -189,7 +189,7 @@
100.00%
-
4 / 4
+
3 / 3
100.00% covered (success) @@ -211,21 +211,21 @@ TokenType
-
- 90.91% covered (success) +
+ 97.33% covered (success)
-
90.91%
-
30 / 33
-
-
- 87.50% covered (warning) +
97.33%
+
73 / 75
+
+
+ 90.00% covered (success)
-
87.50%
-
7 / 8
+
90.00%
+
9 / 10
66.67% covered (warning) @@ -237,115 +237,115 @@ - Util -
-
- 40.00% covered (danger) + Util +
+
+ 100.00% covered (success)
-
40.00%
-
6 / 15
-
-
- 20.00% covered (danger) +
100.00%
+
15 / 15
+
+
+ 100.00% covered (success)
-
20.00%
-
1 / 5
-
-
- 0.00% covered (danger) +
100.00%
+
5 / 5
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 3
+
100.00%
+
3 / 3
- AbstractServer.php -
-
- 86.05% covered (warning) + AbstractServer.php +
+
+ 100.00% covered (success)
-
86.05%
-
37 / 43
-
-
- 81.82% covered (warning) +
100.00%
+
47 / 47
+
+
+ 100.00% covered (success)
-
81.82%
-
18 / 22
-
-
- 0.00% covered (danger) +
100.00%
+
22 / 22
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
+
100.00%
+
1 / 1
- AuthorizationServer.php -
-
- 73.33% covered (warning) + AuthorizationServer.php +
+
+ 100.00% covered (success)
-
73.33%
-
22 / 30
-
-
- 80.00% covered (warning) +
100.00%
+
39 / 39
+
+
+ 100.00% covered (success)
-
80.00%
-
12 / 15
-
-
- 0.00% covered (danger) +
100.00%
+
16 / 16
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
+
100.00%
+
1 / 1
- ResourceServer.php -
-
- 70.00% covered (warning) + ResourceServer.php +
+
+ 100.00% covered (success)
-
70.00%
-
14 / 20
-
-
- 80.00% covered (warning) +
100.00%
+
29 / 29
+
+
+ 100.00% covered (success)
-
80.00%
-
4 / 5
-
-
- 0.00% covered (danger) +
100.00%
+
5 / 5
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
+
100.00%
+
1 / 1
@@ -360,7 +360,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.15 using HHVM 3.5.0 and PHPUnit 4.3.5 at Thu Feb 5 16:29:32 UTC 2015. + Generated by PHP_CodeCoverage 2.0.15 using PHP 5.4.37 and PHPUnit 4.3.5 at Tue Feb 10 10:05:22 UTC 2015.