diff --git a/master/AbstractServer.php.html b/master/AbstractServer.php.html index b98d851f..33690987 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
-
-
- 80.00% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
80.00%
-
16 / 20
- CRAP -
-
- 85.37% covered (warning) +
100.00%
+
20 / 20
+ CRAP +
+
+ 100.00% covered (success)
-
85.37%
-
35 / 41
+
100.00%
+
44 / 44
- AbstractServer -
-
- 0.00% covered (danger) + AbstractServer +
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
- 80.00% covered (warning) +
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
80.00%
-
16 / 20
- 23.52 -
-
- 85.37% covered (warning) +
100.00%
+
20 / 20
+ 22 +
+
+ 100.00% covered (success)
-
85.37%
-
35 / 41
+
100.00%
+
44 / 44
-  __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
@@ -619,8 +619,8 @@      */     public function __construct()     { -         $this->setEventEmitter(); -     } +         $this->setEventEmitter(); +     }     /**      * Set an event emitter @@ -629,12 +629,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 @@ -644,8 +644,8 @@      */     public function addEventListener($eventName, callable $listener)     { -         $this->eventEmitter->addListener($eventName, $listener); -     } +         $this->eventEmitter->addListener($eventName, $listener); +     }     /**      * Returns the event emitter @@ -654,8 +654,8 @@      */     public function getEventEmitter()     { -         return $this->eventEmitter; -     } +         return $this->eventEmitter; +     }     /**      * Sets the Request Object @@ -669,7 +669,7 @@         $this->request = $request;         return $this; -     } +     }     /**      * Gets the Request object. It will create one from the globals if one is not set. @@ -678,12 +678,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 @@ -694,11 +694,11 @@      */     public function setClientStorage(ClientInterface $storage)     { -         $storage->setServer($this); +         $storage->setServer($this);         $this->clientStorage = $storage;         return $this; -     } +     }     /**      * Set the session storage @@ -709,11 +709,11 @@      */     public function setSessionStorage(SessionInterface $storage)     { -         $storage->setServer($this); +         $storage->setServer($this);         $this->sessionStorage = $storage;         return $this; -     } +     }     /**      * Set the access token storage @@ -724,11 +724,11 @@      */     public function setAccessTokenStorage(AccessTokenInterface $storage)     { -         $storage->setServer($this); +         $storage->setServer($this);         $this->accessTokenStorage = $storage;         return $this; -     } +     }     /**      * Set the refresh token storage @@ -739,11 +739,11 @@      */     public function setRefreshTokenStorage(RefreshTokenInterface $storage)     { -         $storage->setServer($this); +         $storage->setServer($this);         $this->refreshTokenStorage = $storage;         return $this; -     } +     }     /**      * Set the auth code storage @@ -754,11 +754,11 @@      */     public function setAuthCodeStorage(AuthCodeInterface $storage)     { -         $storage->setServer($this); +         $storage->setServer($this);         $this->authCodeStorage = $storage;         return $this; -     } +     }     /**      * Set the scope storage @@ -769,11 +769,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 @@ -783,7 +783,7 @@     public function getClientStorage()     {         return $this->clientStorage; -     } +     }     /**      * Return the scope storage @@ -792,8 +792,8 @@      */     public function getScopeStorage()     { -         return $this->scopeStorage; -     } +         return $this->scopeStorage; +     }     /**      * Return the session storage @@ -802,8 +802,8 @@      */     public function getSessionStorage()     { -         return $this->sessionStorage; -     } +         return $this->sessionStorage; +     }     /**      * Return the refresh token storage @@ -812,8 +812,8 @@      */     public function getRefreshTokenStorage()     { -         return $this->refreshTokenStorage; -     } +         return $this->refreshTokenStorage; +     }     /**      * Return the access token storage @@ -822,8 +822,8 @@      */     public function getAccessTokenStorage()     { -         return $this->accessTokenStorage; -     } +         return $this->accessTokenStorage; +     }     /**      * Return the auth code storage @@ -832,8 +832,8 @@      */     public function getAuthCodeStorage()     { -         return $this->authCodeStorage; -     } +         return $this->authCodeStorage; +     }     /**      * Set the access token type @@ -844,9 +844,9 @@      */     public function setTokenType(TokenTypeInterface $tokenType)     { -         $tokenType->setServer($this); +         $tokenType->setServer($this);         $this->tokenType = $tokenType; -     } +     }     /**      * Get the access token type @@ -855,8 +855,8 @@      */     public function getTokenType()     { -         return $this->tokenType; -     } +         return $this->tokenType; +     } } @@ -870,7 +870,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/AuthorizationServer.php.html b/master/AuthorizationServer.php.html index 1c174ac9..7738a58b 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? @@ -590,7 +595,7 @@     public function scopeParamRequired()     {         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,21 +618,21 @@      */     public function getDefaultScope()     { -         return $this->defaultScope; -     } +         return $this->defaultScope; +     }     /** -      * Require the "state" paremter in checkAuthoriseParams() +      * Require the "state" parameter in checkAuthoriseParams()      *      * @return bool      */     public function stateParamRequired()     {         return $this->requireStateParam; -     } +     }     /** -      * Require the "state" paremter in checkAuthoriseParams() +      * Require the "state" parameter in checkAuthoriseParams()      *      * @param boolean $require      * @@ -638,7 +643,7 @@         $this->requireStateParam = $require;         return $this; -     } +     }     /**      * Get the scope delimiter @@ -648,7 +653,7 @@     public function getScopeDelimiter()     {         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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Entity/AbstractTokenEntity.php.html b/master/Entity/AbstractTokenEntity.php.html index b5ec89c3..c6322d8f 100644 --- a/master/Entity/AbstractTokenEntity.php.html +++ b/master/Entity/AbstractTokenEntity.php.html @@ -61,13 +61,13 @@
9 / 10
CRAP
-
- 91.67% covered (success) +
+ 96.30% covered (success)
-
91.67%
-
22 / 24
+
96.30%
+
26 / 27
@@ -88,15 +88,15 @@
91.67%
11 / 12
- 18.19 + 18
-
- 91.67% covered (success) +
+ 96.30% covered (success)
-
91.67%
-
22 / 24
+
96.30%
+
26 / 27
@@ -117,7 +117,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -138,7 +138,7 @@
100.00%
-
3 / 3
+
2 / 2
@@ -247,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) @@ -277,7 +256,7 @@
100.00%
1 / 1
- 4 + 2
100.00% covered (success) @@ -288,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()
@@ -411,10 +411,10 @@      */     public function __construct(AbstractServer $server)     { -         $this->server = $server; +         $this->server = $server; -         return $this; -     } +         return $this; +     }     /**      * Set session @@ -428,7 +428,7 @@         $this->session = $session;         return $this; -     } +     }     /**      * Set the expire time of the token @@ -439,10 +439,10 @@      */     public function setExpireTime($expireTime)     { -         $this->expireTime = $expireTime; +         $this->expireTime = $expireTime; -         return $this; -     } +         return $this; +     }     /**      * Return token expire time @@ -451,8 +451,8 @@      */     public function getExpireTime()     { -         return $this->expireTime; -     } +         return $this->expireTime; +     }     /**      * Is the token expired? @@ -462,7 +462,7 @@     public function isExpired()     {         return ((time() - $this->expireTime) > 0); -     } +     }     /**      * Set token ID @@ -473,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 @@ -485,8 +485,8 @@      */     public function getId()     { -         return $this->id; -     } +         return $this->id; +     }     /**      * Associate a scope @@ -497,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 @@ -513,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; -             } -         } +         foreach ($unformatted as $scope) { +             if ($scope instanceof ScopeEntity) { +                 $scopes[$scope->getId()] = $scope; +             } +         }         return $scopes; -     } +     }     /**      * Returns the token as a string if the object is cast as a string @@ -534,12 +534,12 @@      */     public function __toString()     { -         if ($this->id === null) { +         if ($this->id === null) {             return ''; -         } +         }         return $this->id; -     } +     }     /**      * Expire the token @@ -567,7 +567,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Entity/AccessTokenEntity.php.html b/master/Entity/AccessTokenEntity.php.html index d9e500e7..3862a4b7 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) { +         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 @@ -258,12 +268,12 @@     {         if ($this->scopes === null) {             $this->scopes = $this->formatScopes( -                 $this->server->getAccessTokenStorage()->getScopes($this) -             ); -         } +                 $this->server->getAccessTokenStorage()->getScopes($this) +             ); +         }         return $this->scopes; -     } +     }     /**      * {@inheritdoc} @@ -273,24 +283,24 @@         $this->server->getAccessTokenStorage()->create(             $this->getId(),             $this->getExpireTime(), -             $this->getSession()->getId() -         ); +             $this->getSession()->getId() +         );         // Associate the scope with the token         foreach ($this->getScopes() as $scope) { -             $this->server->getAccessTokenStorage()->associateScope($this, $scope); -         } +             $this->server->getAccessTokenStorage()->associateScope($this, $scope); +         }         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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Entity/AuthCodeEntity.php.html b/master/Entity/AuthCodeEntity.php.html index d94cca86..1df93b06 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
@@ -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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Entity/ClientEntity.php.html b/master/Entity/ClientEntity.php.html index cb11ddb1..c4ee8f35 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Entity/EntityTrait.php.html b/master/Entity/EntityTrait.php.html index 807e78d6..580219ae 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Entity/RefreshTokenEntity.php.html b/master/Entity/RefreshTokenEntity.php.html index d9929a80..efc92e98 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Entity/ScopeEntity.php.html b/master/Entity/ScopeEntity.php.html index 79d35d36..5530518c 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Entity/SessionEntity.php.html b/master/Entity/SessionEntity.php.html index 8488f03b..565c14cd 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 @@ -539,7 +539,7 @@     public function getId()     {         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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Entity/dashboard.html b/master/Entity/dashboard.html index 38cf3a24..0aa8b07d 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.666666666667,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 36706bb5..b73fbabd 100644 --- a/master/Entity/index.html +++ b/master/Entity/index.html @@ -44,41 +44,41 @@ Total
-
- 90.58% covered (success) +
+ 97.08% covered (success)
-
90.58%
-
125 / 138
+
97.08%
+
166 / 171
+
+
+ 96.15% covered (success) +
+
+ +
96.15%
+
50 / 52
-
- 87.23% covered (warning) +
+ 75.00% covered (warning)
-
87.23%
-
41 / 47
-
-
- 50.00% covered (warning) -
-
- -
50.00%
-
4 / 8
+
75.00%
+
6 / 8
AbstractTokenEntity.php
-
- 91.67% covered (success) +
+ 96.30% covered (success)
-
91.67%
-
22 / 24
+
96.30%
+
26 / 27
90.00% covered (success) @@ -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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Event/ClientAuthenticationFailedEvent.php.html b/master/Event/ClientAuthenticationFailedEvent.php.html index afb03fec..479dfa93 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Event/SessionOwnerEvent.php.html b/master/Event/SessionOwnerEvent.php.html index 107686ab..5d669171 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Event/UserAuthenticationFailedEvent.php.html b/master/Event/UserAuthenticationFailedEvent.php.html index 024c26a8..cac29d85 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Event/dashboard.html b/master/Event/dashboard.html index 0d36ddbd..05858f60 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 82872d72..d01ea698 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/AccessDeniedException.php.html b/master/Exception/AccessDeniedException.php.html index 160834ab..40990fb3 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/InvalidClientException.php.html b/master/Exception/InvalidClientException.php.html index 2bea773d..9fc79ff8 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/InvalidCredentialsException.php.html b/master/Exception/InvalidCredentialsException.php.html index 3e0bb8a9..8821714e 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/InvalidGrantException.php.html b/master/Exception/InvalidGrantException.php.html index 9c653f75..36911d5c 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/InvalidRefreshException.php.html b/master/Exception/InvalidRefreshException.php.html index 74e64148..ab5645b3 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/InvalidRequestException.php.html b/master/Exception/InvalidRequestException.php.html index ea5ea15b..4275e5b4 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/InvalidScopeException.php.html b/master/Exception/InvalidScopeException.php.html index eaaca35c..9237fe43 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/OAuthException.php.html b/master/Exception/OAuthException.php.html index 90af5321..1fdba2c3 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/ServerErrorException.php.html b/master/Exception/ServerErrorException.php.html index e56bff2e..0e1b5432 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/UnauthorizedClientException.php.html b/master/Exception/UnauthorizedClientException.php.html index 3ffe5ae5..cae64f1f 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/UnsupportedGrantTypeException.php.html b/master/Exception/UnsupportedGrantTypeException.php.html index 557ec9a7..23c4ac6e 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/UnsupportedResponseTypeException.php.html b/master/Exception/UnsupportedResponseTypeException.php.html index 85602396..d0d2b4ee 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Exception/dashboard.html b/master/Exception/dashboard.html index a96d95c6..209d7a78 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 f21fa988..74906484 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Grant/AbstractGrant.php.html b/master/Grant/AbstractGrant.php.html index b906e9c3..ee3057b1 100644 --- a/master/Grant/AbstractGrant.php.html +++ b/master/Grant/AbstractGrant.php.html @@ -67,7 +67,7 @@
100.00%
-
26 / 26
+
48 / 48
@@ -96,7 +96,7 @@
100.00%
-
26 / 26
+
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%
-
11 / 11
+
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]); +         for ($i = 0; $i < count($scopesList); $i++) { +             $scopesList[$i] = trim($scopesList[$i]);             if ($scopesList[$i] === '') { -                 unset($scopesList[$i]); // Remove any junk scopes -             } -         } +                 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 = []; -         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; -     } +     }     /**      * Format the local scopes array @@ -460,14 +460,14 @@     protected function formatScopes($unformated = [])     {         $scopes = []; -         foreach ($unformated as $scope) { -             if ($scope instanceof ScopeEntity) { -                 $scopes[$scope->getId()] = $scope; -             } -         } +         foreach ($unformated as $scope) { +             if ($scope instanceof ScopeEntity) { +                 $scopes[$scope->getId()] = $scope; +             } +         }         return $scopes; -     } +     } } @@ -481,7 +481,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Grant/AuthCodeGrant.php.html b/master/Grant/AuthCodeGrant.php.html index b5c85af0..15065e32 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Grant/ClientCredentialsGrant.php.html b/master/Grant/ClientCredentialsGrant.php.html index d1703ac4..b4427b8a 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Grant/GrantTypeInterface.php.html b/master/Grant/GrantTypeInterface.php.html index 4f1583b4..a02505d2 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Grant/PasswordGrant.php.html b/master/Grant/PasswordGrant.php.html index a67e2498..2512bb7d 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Grant/RefreshTokenGrant.php.html b/master/Grant/RefreshTokenGrant.php.html index fdc38f33..d5b0afd8 100644 --- a/master/Grant/RefreshTokenGrant.php.html +++ b/master/Grant/RefreshTokenGrant.php.html @@ -67,7 +67,7 @@
100.00%
-
15 / 15
+
60 / 60
@@ -96,7 +96,7 @@
100.00%
-
15 / 15
+
60 / 60
@@ -159,7 +159,7 @@
100.00%
-
12 / 12
+
57 / 57
@@ -224,111 +224,111 @@     public function getRefreshTokenTTL()     {         return $this->refreshTokenTTL; -     } +     }     /**      * {@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, +             $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(); +         } -         $oldRefreshTokenParam = $this->server->getRequest()->request->get('refresh_token', null); +         $oldRefreshTokenParam = $this->server->getRequest()->request->get('refresh_token', null);         if ($oldRefreshTokenParam === null) { -             throw new Exception\InvalidRequestException('refresh_token'); -         } +             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(); -         } +             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) { +         if (count($requestedScopes) === 0) {             $newScopes = $scopes; -         } else { +         } 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());         // 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()); +         $this->server->getTokenType()->setParam('refresh_token', $newRefreshToken->getId()); -         return $this->server->getTokenType()->generateResponse(); -     } +         return $this->server->getTokenType()->generateResponse(); +     } } @@ -342,7 +342,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Grant/dashboard.html b/master/Grant/dashboard.html index 484b3089..52fcf0c6 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,17], "Method Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,19], "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,13,"RefreshTokenGrant<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[100,21,"AbstractGrant<\/a>"],[100,25,"AuthCodeGrant<\/a>"],[100,6,"ClientCredentialsGrant<\/a>"],[100,15,"PasswordGrant<\/a>"],[100,13,"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,11,"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,11,"RefreshTokenGrant::completeFlow<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/master/Grant/index.html b/master/Grant/index.html index ebea5fd1..6cc7e81f 100644 --- a/master/Grant/index.html +++ b/master/Grant/index.html @@ -44,29 +44,29 @@ Total
-
- 92.50% covered (success) +
+ 100.00% covered (success)
-
92.50%
-
74 / 80
-
-
- 89.47% covered (warning) +
100.00%
+
311 / 311
+
+
+ 100.00% covered (success)
-
89.47%
-
17 / 19
-
-
- 60.00% covered (warning) +
100.00%
+
19 / 19
+
+
+ 100.00% covered (success)
-
60.00%
-
3 / 5
+
100.00%
+
5 / 5
@@ -78,7 +78,7 @@
100.00%
-
26 / 26
+
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%
-
15 / 15
+
60 / 60
100.00% covered (success) @@ -234,7 +234,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/ResourceServer.php.html b/master/ResourceServer.php.html index ea0337ab..02d42621 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
@@ -268,18 +268,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. @@ -293,7 +293,7 @@         $this->tokenKey = $key;         return $this; -     } +     }     /**      * Gets the access token @@ -303,7 +303,7 @@     public function getAccessToken()     {         return $this->accessToken; -     } +     }     /**      * Checks if the access token is valid or not @@ -318,25 +318,25 @@     public function isValidRequest($headersOnly = true, $accessToken = null)     {         $accessTokenString = ($accessToken !== null) -                                 ? $accessToken -                                 : $this->determineAccessToken($headersOnly); +                                 ? $accessToken +                                 : $this->determineAccessToken($headersOnly);         // 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 Exception\AccessDeniedException(); -         } +             throw new Exception\AccessDeniedException(); +         }         // Check the access token hasn't expired         // Ensure the auth code hasn't expired -         if ($this->accessToken->isExpired() === true) { -             throw new Exception\AccessDeniedException(); -         } +         if ($this->accessToken->isExpired() === true) { +             throw new Exception\AccessDeniedException(); +         }         return true; -     } +     }     /**      * Reads in the access token from the headers @@ -349,20 +349,20 @@      */     public function determineAccessToken($headersOnly = false)     { -         if ($this->getRequest()->headers->get('Authorization') !== null) { -             $accessToken = $this->getTokenType()->determineAccessTokenInHeader($this->getRequest()); -         } elseif ($headersOnly === 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 ($headersOnly === 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 Exception\InvalidRequestException('access token'); -         } +             throw new Exception\InvalidRequestException('access token'); +         }         return $accessToken; -     } +     } } @@ -376,7 +376,7 @@ Dead Code

- Generated by PHP_CodeCoverage 2.0.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Storage/AbstractStorage.php.html b/master/Storage/AbstractStorage.php.html index 7c0d0215..8ff2b1f1 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Storage/AccessTokenInterface.php.html b/master/Storage/AccessTokenInterface.php.html index 62bb0ef4..9de7c74d 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Storage/AuthCodeInterface.php.html b/master/Storage/AuthCodeInterface.php.html index 89a7e236..599022ec 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Storage/ClientInterface.php.html b/master/Storage/ClientInterface.php.html index e36f6e79..2671968d 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Storage/RefreshTokenInterface.php.html b/master/Storage/RefreshTokenInterface.php.html index e925d3c8..01137413 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Storage/ScopeInterface.php.html b/master/Storage/ScopeInterface.php.html index 6da7d635..666e0ae7 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Storage/SessionInterface.php.html b/master/Storage/SessionInterface.php.html index ff990d62..5a92f523 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Storage/StorageInterface.php.html b/master/Storage/StorageInterface.php.html index 6d4df572..960d6c35 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Storage/dashboard.html b/master/Storage/dashboard.html index 84372b99..ad7d68a9 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 1d31910d..fab069b9 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) @@ -200,7 +200,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/TokenType/AbstractTokenType.php.html b/master/TokenType/AbstractTokenType.php.html index f6726b9b..de9a6e5a 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
@@ -225,7 +235,7 @@         $this->server = $server;         return $this; -     } +     }     /**      * {@inheritdoc} @@ -235,23 +245,23 @@         $this->session = $session;         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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/TokenType/Bearer.php.html b/master/TokenType/Bearer.php.html index d75b0637..48a3b788 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
@@ -172,25 +172,25 @@             '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; -     } +     }     /**      * {@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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/TokenType/TokenTypeInterface.php.html b/master/TokenType/TokenTypeInterface.php.html index 0100d56c..c36ee04f 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/TokenType/dashboard.html b/master/TokenType/dashboard.html index a59b9199..1abe5b76 100644 --- a/master/TokenType/dashboard.html +++ b/master/TokenType/dashboard.html @@ -137,7 +137,7 @@
diff --git a/master/TokenType/index.html b/master/TokenType/index.html index eea6f336..2287db93 100644 --- a/master/TokenType/index.html +++ b/master/TokenType/index.html @@ -50,7 +50,7 @@
100.00%
-
12 / 12
+
18 / 18
100.00% covered (success) @@ -58,7 +58,7 @@
100.00%
-
4 / 4
+
6 / 6
100.00% covered (success) @@ -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) @@ -150,7 +150,7 @@ High: 90% to 100%

- Generated by PHP_CodeCoverage 2.0.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html b/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html index 4f03450a..9c381a30 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html b/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html index fd9a4d31..a112ebcb 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Util/KeyAlgorithm/dashboard.html b/master/Util/KeyAlgorithm/dashboard.html index b7101efd..d2c7a18c 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 cbe736b1..cb1be0ce 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Util/RedirectUri.php.html b/master/Util/RedirectUri.php.html index 70f67f92..19b1d89c 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Util/SecureKey.php.html b/master/Util/SecureKey.php.html index dd58eed9..48fcef42 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/Util/dashboard.html b/master/Util/dashboard.html index 5e1509d2..e9ed135b 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 c275fd1a..433493c6 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.

diff --git a/master/dashboard.html b/master/dashboard.html index bfe13f0d..1691cc20 100644 --- a/master/dashboard.html +++ b/master/dashboard.html @@ -58,31 +58,9 @@ - ServerErrorException33% - RedirectUri33% - DefaultAlgorithm33% - SecureKey50% - UnsupportedGrantTypeException50% - UnauthorizedClientException50% - AccessDeniedException50% - InvalidClientException50% - InvalidCredentialsException50% - InvalidGrantException50% - InvalidRefreshException50% - InvalidRequestException60% - EntityTrait60% - InvalidScopeException60% - UserAuthenticationFailedEvent66% - UnsupportedResponseTypeException66% - ClientAuthenticationFailedEvent66% - ResourceServer70% - AccessTokenEntity71% - ClientCredentialsGrant72% - AuthorizationServer73% - SessionOwnerEvent75% - PasswordGrant76% - AbstractServer85% - AuthCodeEntity86% + UserAuthenticationFailedEvent75% + ClientAuthenticationFailedEvent75% + AccessTokenEntity84% @@ -99,18 +77,7 @@ - AuthorizationServer29 - AbstractServer23 - PasswordGrant17 - ResourceServer15 - AuthCodeEntity11 - AccessTokenEntity10 - DefaultAlgorithm8 - ClientCredentialsGrant6 - SecureKey6 - EntityTrait3 - ServerErrorException3 - RedirectUri3 + AccessTokenEntity9 @@ -148,41 +115,10 @@ - addEventListener0% - hasGrantType0% - __construct25% - make33% - getAlgorithm33% - __construct33% - __construct33% - generate33% - addGrantType37% - generateRedirectUri40% - __construct50% - __construct50% - __construct50% - __construct50% - __construct50% - generate50% - __construct50% - __construct50% - __construct50% - associateScope50% - __construct50% - __construct50% - __construct50% - __construct50% - setEventEmitter60% - hydrate60% - __construct60% - __construct60% - getScopes66% - getRequest66% - __construct66% - save70% - completeFlow72% - completeFlow72% - getSession80% + getRequest0% + getRequest0% + hasScope0% + formatScopes88% @@ -199,21 +135,8 @@ - completeFlow13 - generate8 - completeFlow6 - addGrantType5 - hydrate3 - __construct3 - make3 - getAlgorithm3 - generateRedirectUri2 - associateScope2 - setEventEmitter2 - getRequest2 - getScopes2 - save2 - getSession2 + hasScope6 + formatScopes4 @@ -223,7 +146,7 @@
@@ -244,7 +167,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#classCoverageDistribution svg') - .datum(getCoverageDistributionData([0,0,0,0,3,0,8,6,6,2,2,10], "Class Coverage")) + .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,1,1,33], "Class Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -262,7 +185,7 @@ $(document).ready(function() { .yAxis.tickFormat(d3.format('d')); d3.select('#methodCoverageDistribution svg') - .datum(getCoverageDistributionData([2,0,0,1,6,1,14,7,3,1,0,116], "Method Coverage")) + .datum(getCoverageDistributionData([3,0,0,0,0,0,0,0,0,1,0,147], "Method Coverage")) .transition().duration(500).call(chart); nv.utils.windowResize(chart.update); @@ -313,7 +236,7 @@ $(document).ready(function() { chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[85.365853658537,22,"AbstractServer<\/a>"],[73.333333333333,21,"AuthorizationServer<\/a>"],[91.666666666667,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,13,"RefreshTokenGrant<\/a>"],[70,12,"ResourceServer<\/a>"],[100,2,"AbstractStorage<\/a>"],[100,5,"AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[33.333333333333,4,"DefaultAlgorithm<\/a>"],[33.333333333333,2,"RedirectUri<\/a>"],[50,4,"SecureKey<\/a>"],[60,3,"EntityTrait<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[100,22,"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,13,"RefreshTokenGrant<\/a>"],[100,12,"ResourceServer<\/a>"],[100,2,"AbstractStorage<\/a>"],[100,5,"AbstractTokenType<\/a>"],[100,4,"Bearer<\/a>"],[100,4,"DefaultAlgorithm<\/a>"],[100,2,"RedirectUri<\/a>"],[100,4,"SecureKey<\/a>"],[100,3,"EntityTrait<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -338,7 +261,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>"],[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,11,"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>"],[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,"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,11,"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,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 3e05c09a..e34b8cff 100644 --- a/master/index.html +++ b/master/index.html @@ -41,143 +41,143 @@ - Total + Total +
+
+ 99.01% covered (success) +
+
+ +
99.01%
+
702 / 709
+
+
+ 97.32% covered (success) +
+
+ +
97.32%
+
145 / 149
-
- 82.96% covered (warning) +
+ 89.19% covered (warning)
-
82.96%
-
331 / 399
-
-
- 74.64% covered (warning) -
-
- -
74.64%
-
103 / 138
-
-
- 27.03% covered (danger) -
-
- -
27.03%
-
10 / 37
+
89.19%
+
33 / 37
Entity
-
- 90.58% covered (success) +
+ 97.08% covered (success)
-
90.58%
-
125 / 138
+
97.08%
+
166 / 171
+
+
+ 96.15% covered (success) +
+
+ +
96.15%
+
50 / 52
-
- 87.23% covered (warning) +
+ 75.00% covered (warning)
-
87.23%
-
41 / 47
-
-
- 50.00% covered (warning) -
-
- -
50.00%
-
4 / 8
+
75.00%
+
6 / 8
Event
-
- 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
- Exception -
-
- 65.31% covered (warning) + Exception +
+
+ 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
Grant
-
- 92.50% covered (success) +
+ 100.00% covered (success)
-
92.50%
-
74 / 80
-
-
- 89.47% covered (warning) +
100.00%
+
311 / 311
+
+
+ 100.00% covered (success)
-
89.47%
-
17 / 19
-
-
- 60.00% covered (warning) +
100.00%
+
19 / 19
+
+
+ 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) @@ -217,7 +217,7 @@
100.00%
-
12 / 12
+
18 / 18
100.00% covered (success) @@ -225,7 +225,7 @@
100.00%
-
4 / 4
+
6 / 6
100.00% covered (success) @@ -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 -
-
- 85.37% covered (warning) + AbstractServer.php +
+
+ 100.00% covered (success)
-
85.37%
-
35 / 41
-
-
- 80.00% covered (warning) +
100.00%
+
44 / 44
+
+
+ 100.00% covered (success)
-
80.00%
-
16 / 20
-
-
- 0.00% covered (danger) +
100.00%
+
20 / 20
+
+
+ 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.13 using HHVM 3.4.0 and PHPUnit 4.3.5 at Mon Dec 15 17:58:08 UTC 2014. + Generated by PHP_CodeCoverage 2.0.13 using PHP 5.5.19 and PHPUnit 4.3.5 at Tue Dec 16 19:51:02 UTC 2014.