From 28614d172d1190f0f28ff67cca5a7f2a7a018d8e Mon Sep 17 00:00:00 2001
From: TravisCI
Date: Sat, 27 Dec 2014 22:27:46 +0000
Subject: [PATCH] Travis pushed coverage of
707c85b0d634f72da5c7ebe20d394c78c0dbf43b@master to gh-pages
---
master/AbstractServer.php.html | 1002 +++++++++--------
master/AuthorizationServer.php.html | 241 ++--
master/Entity/AbstractTokenEntity.php.html | 132 +--
master/Entity/AccessTokenEntity.php.html | 194 ++--
master/Entity/AuthCodeEntity.php.html | 155 +--
master/Entity/ClientEntity.php.html | 24 +-
master/Entity/EntityTrait.php.html | 108 +-
master/Entity/RefreshTokenEntity.php.html | 47 +-
master/Entity/ScopeEntity.php.html | 41 +-
master/Entity/SessionEntity.php.html | 116 +-
master/Entity/dashboard.html | 34 +-
master/Entity/index.html | 136 +--
.../ClientAuthenticationFailedEvent.php.html | 87 +-
master/Event/SessionOwnerEvent.php.html | 100 +-
.../UserAuthenticationFailedEvent.php.html | 87 +-
master/Event/dashboard.html | 20 +-
master/Event/index.html | 98 +-
.../Exception/AccessDeniedException.php.html | 96 +-
.../Exception/InvalidClientException.php.html | 96 +-
.../InvalidCredentialsException.php.html | 96 +-
.../Exception/InvalidGrantException.php.html | 102 +-
.../InvalidRefreshException.php.html | 96 +-
.../InvalidRequestException.php.html | 104 +-
.../Exception/InvalidScopeException.php.html | 104 +-
master/Exception/OAuthException.php.html | 163 +--
.../Exception/ServerErrorException.php.html | 98 +-
.../UnauthorizedClientException.php.html | 96 +-
.../UnsupportedGrantTypeException.php.html | 102 +-
.../UnsupportedResponseTypeException.php.html | 96 +-
master/Exception/dashboard.html | 35 +-
master/Exception/index.html | 414 +++----
master/Grant/AbstractGrant.php.html | 112 +-
master/Grant/AuthCodeGrant.php.html | 228 ++--
master/Grant/ClientCredentialsGrant.php.html | 166 +--
master/Grant/GrantTypeInterface.php.html | 2 +-
master/Grant/PasswordGrant.php.html | 224 ++--
master/Grant/RefreshTokenGrant.php.html | 126 +--
master/Grant/dashboard.html | 18 +-
master/Grant/index.html | 100 +-
master/ResourceServer.php.html | 154 +--
master/Storage/AbstractStorage.php.html | 12 +-
master/Storage/AccessTokenInterface.php.html | 2 +-
master/Storage/AuthCodeInterface.php.html | 2 +-
master/Storage/ClientInterface.php.html | 2 +-
master/Storage/MacTokenInterface.php.html | 142 +++
master/Storage/RefreshTokenInterface.php.html | 2 +-
master/Storage/ScopeInterface.php.html | 2 +-
master/Storage/SessionInterface.php.html | 2 +-
master/Storage/StorageInterface.php.html | 2 +-
master/Storage/dashboard.html | 2 +-
master/Storage/index.html | 19 +-
master/TokenType/AbstractTokenType.php.html | 50 +-
master/TokenType/Bearer.php.html | 26 +-
master/TokenType/MAC.php.html | 384 +++++++
master/TokenType/TokenTypeInterface.php.html | 2 +-
master/TokenType/dashboard.html | 12 +-
master/TokenType/index.html | 62 +-
.../KeyAlgorithm/DefaultAlgorithm.php.html | 110 +-
.../KeyAlgorithmInterface.php.html | 2 +-
master/Util/KeyAlgorithm/dashboard.html | 14 +-
master/Util/KeyAlgorithm/index.html | 66 +-
master/Util/RedirectUri.php.html | 100 +-
master/Util/SecureKey.php.html | 154 +--
master/Util/dashboard.html | 23 +-
master/Util/index.html | 130 +--
master/dashboard.html | 109 +-
master/index.html | 326 +++---
67 files changed, 3879 insertions(+), 3330 deletions(-)
create mode 100644 master/Storage/MacTokenInterface.php.html
create mode 100644 master/TokenType/MAC.php.html
diff --git a/master/AbstractServer.php.html b/master/AbstractServer.php.html
index 14bee33d..2c66b733 100644
--- a/master/AbstractServer.php.html
+++ b/master/AbstractServer.php.html
@@ -41,128 +41,7 @@
- Total
-
-
- 0.00% covered (danger)
-
-
-
- 0.00%
- 0 / 1
-
-
- 80.00% covered (warning)
-
-
-
- 80.00%
- 16 / 20
- CRAP
-
-
- 85.37% covered (warning)
-
-
-
- 85.37%
- 35 / 41
-
-
-
- AbstractServer
-
-
- 0.00% covered (danger)
-
-
-
- 0.00%
- 0 / 1
-
-
- 80.00% covered (warning)
-
-
-
- 80.00%
- 16 / 20
- 23.52
-
-
- 85.37% covered (warning)
-
-
-
- 85.37%
- 35 / 41
-
-
-
- __construct()
-
-
- 0.00% covered (danger)
-
-
-
- 0.00%
- 0 / 1
- 1.12
-
-
- 50.00% covered (warning)
-
-
-
- 50.00%
- 1 / 2
-
-
-
- setEventEmitter($emitter = null)
-
-
- 0.00% covered (danger)
-
-
-
- 0.00%
- 0 / 1
- 2.26
-
-
- 60.00% covered (warning)
-
-
-
- 60.00%
- 3 / 5
-
-
-
- addEventListener($eventName, callable $listener)
-
-
- 0.00% covered (danger)
-
-
-
- 0.00%
- 0 / 1
- 2
-
-
- 0.00% covered (danger)
-
-
-
- 0.00%
- 0 / 2
-
-
-
- getEventEmitter()
+ Total
100.00% covered (success)
@@ -171,7 +50,27 @@
100.00%
1 / 1
- 1
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 22 / 22
+ CRAP
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 47 / 47
+
+
+
+ AbstractServer
100.00% covered (success)
@@ -180,10 +79,27 @@
100.00%
1 / 1
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 22 / 22
+ 24
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 47 / 47
- setRequest($request)
+ __construct()
100.00% covered (success)
@@ -204,28 +120,112 @@
- getRequest()
-
-
-
0.00% covered (danger)
+
setEventEmitter($emitter = null)
+
+
+ 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%
+
5 / 5
- setClientStorage(ClientInterface $storage)
+ addEventListener($eventName, callable $listener)
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+ 1
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 2 / 2
+
+
+
+ getEventEmitter()
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+ 1
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+
+
+
+ setRequest($request)
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+ 1
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 2 / 2
+
+
+
+ getRequest()
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+ 2
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 4 / 4
+
+
+
+ setClientStorage(ClientInterface $storage)
100.00% covered (success)
@@ -246,7 +246,7 @@
- setSessionStorage(SessionInterface $storage)
+ setSessionStorage(SessionInterface $storage)
100.00% covered (success)
@@ -267,7 +267,7 @@
- setAccessTokenStorage(AccessTokenInterface $storage)
+ setAccessTokenStorage(AccessTokenInterface $storage)
100.00% covered (success)
@@ -288,7 +288,7 @@
- setRefreshTokenStorage(RefreshTokenInterface $storage)
+ setRefreshTokenStorage(RefreshTokenInterface $storage)
100.00% covered (success)
@@ -309,7 +309,7 @@
- setAuthCodeStorage(AuthCodeInterface $storage)
+ setAuthCodeStorage(AuthCodeInterface $storage)
100.00% covered (success)
@@ -330,7 +330,7 @@
- setScopeStorage(ScopeInterface $storage)
+ setScopeStorage(ScopeInterface $storage)
100.00% covered (success)
@@ -351,7 +351,7 @@
- getClientStorage()
+ getClientStorage()
100.00% covered (success)
@@ -372,7 +372,7 @@
- getScopeStorage()
+ getScopeStorage()
100.00% covered (success)
@@ -393,7 +393,7 @@
- getSessionStorage()
+ getSessionStorage()
100.00% covered (success)
@@ -414,7 +414,7 @@
- getRefreshTokenStorage()
+ getRefreshTokenStorage()
100.00% covered (success)
@@ -435,7 +435,7 @@
- getAccessTokenStorage()
+ getAccessTokenStorage()
100.00% covered (success)
@@ -456,7 +456,7 @@
- getAuthCodeStorage()
+ getAuthCodeStorage()
100.00% covered (success)
@@ -477,7 +477,28 @@
- setTokenType(TokenTypeInterface $tokenType)
+ setTokenType(TokenTypeInterface $tokenType)
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+ 1
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 3 / 3
+
+
+
+ getTokenType()
100.00% covered (success)
@@ -498,7 +519,7 @@
- getTokenType()
+ getMacStorage()
100.00% covered (success)
@@ -518,6 +539,27 @@
1 / 1
+
+ setMacStorage(MacTokenInterface $macStorage)
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+ 1
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 2 / 2
+
+
@@ -540,324 +582,346 @@
use League \ OAuth2 \ Server \ Storage \ AccessTokenInterface ;
use League \ OAuth2 \ Server \ Storage \ AuthCodeInterface ;
use League \ OAuth2 \ Server \ Storage \ ClientInterface ;
- use League \ OAuth2 \ Server \ Storage \ RefreshTokenInterface ;
- use League \ OAuth2 \ Server \ Storage \ ScopeInterface ;
- use League \ OAuth2 \ Server \ Storage \ SessionInterface ;
- use League \ OAuth2 \ Server \ TokenType \ TokenTypeInterface ;
- use Symfony \ Component \ HttpFoundation \ Request ;
-
-
-
-
- abstract class AbstractServer
- {
-
-
-
-
-
- protected $request ;
-
-
-
-
-
-
- protected $sessionStorage ;
-
-
-
-
-
-
- protected $accessTokenStorage ;
-
-
-
-
-
-
- protected $refreshTokenStorage ;
-
-
-
-
-
-
- protected $authCodeStorage ;
-
-
-
-
-
-
- protected $scopeStorage ;
-
-
-
-
-
-
- protected $clientStorage ;
-
-
-
-
-
-
- protected $tokenType ;
-
-
-
-
-
-
- protected $eventEmitter ;
-
-
-
-
- public function __construct ( )
- {
- $this -> setEventEmitter ( ) ;
- }
-
-
-
-
-
-
- public function setEventEmitter ( $emitter = null )
- {
- if ( $emitter === null ) {
- $this -> eventEmitter = new Emitter ( ) ;
- } else {
- $this -> eventEmitter = $emitter ;
- }
- }
-
-
-
-
-
-
-
- public function addEventListener ( $eventName , callable $listener )
- {
- $this -> eventEmitter -> addListener ( $eventName , $listener ) ;
- }
-
-
-
-
-
-
- public function getEventEmitter ( )
- {
- return $this -> eventEmitter ;
- }
-
-
-
-
-
-
-
-
- public function setRequest ( $request )
- {
- $this -> request = $request ;
-
- return $this ;
- }
-
-
-
-
-
-
- public function getRequest ( )
- {
- if ( $this -> request === null ) {
- $this -> request = Request :: createFromGlobals ( ) ;
- }
-
- return $this -> request ;
- }
-
-
-
-
-
-
-
-
- public function setClientStorage ( ClientInterface $storage )
- {
- $storage -> setServer ( $this ) ;
- $this -> clientStorage = $storage ;
-
- return $this ;
- }
-
-
-
-
-
-
-
-
- public function setSessionStorage ( SessionInterface $storage )
- {
- $storage -> setServer ( $this ) ;
- $this -> sessionStorage = $storage ;
-
- return $this ;
- }
-
-
-
-
-
-
-
-
- public function setAccessTokenStorage ( AccessTokenInterface $storage )
- {
- $storage -> setServer ( $this ) ;
- $this -> accessTokenStorage = $storage ;
-
- return $this ;
- }
-
-
-
-
-
-
-
-
- public function setRefreshTokenStorage ( RefreshTokenInterface $storage )
- {
- $storage -> setServer ( $this ) ;
- $this -> refreshTokenStorage = $storage ;
-
- return $this ;
- }
-
-
-
-
-
-
-
-
- public function setAuthCodeStorage ( AuthCodeInterface $storage )
- {
- $storage -> setServer ( $this ) ;
- $this -> authCodeStorage = $storage ;
-
- return $this ;
- }
-
-
-
-
-
-
-
-
- public function setScopeStorage ( ScopeInterface $storage )
- {
- $storage -> setServer ( $this ) ;
- $this -> scopeStorage = $storage ;
-
- return $this ;
- }
-
-
-
-
-
-
- public function getClientStorage ( )
- {
- return $this -> clientStorage ;
- }
-
-
-
-
-
-
- public function getScopeStorage ( )
- {
- return $this -> scopeStorage ;
- }
-
-
-
-
-
-
- public function getSessionStorage ( )
- {
- return $this -> sessionStorage ;
- }
-
-
-
-
-
-
- public function getRefreshTokenStorage ( )
- {
- return $this -> refreshTokenStorage ;
- }
-
-
-
-
-
-
- public function getAccessTokenStorage ( )
- {
- return $this -> accessTokenStorage ;
- }
-
-
-
-
-
-
- public function getAuthCodeStorage ( )
- {
- return $this -> authCodeStorage ;
- }
-
-
-
-
-
-
-
-
- public function setTokenType ( TokenTypeInterface $tokenType )
- {
- $tokenType -> setServer ( $this ) ;
- $this -> tokenType = $tokenType ;
- }
-
-
-
-
-
-
- public function getTokenType ( )
- {
- return $this -> tokenType ;
- }
- }
+ use League \ OAuth2 \ Server \ Storage \ MacTokenInterface ;
+ use League \ OAuth2 \ Server \ Storage \ RefreshTokenInterface ;
+ use League \ OAuth2 \ Server \ Storage \ ScopeInterface ;
+ use League \ OAuth2 \ Server \ Storage \ SessionInterface ;
+ use League \ OAuth2 \ Server \ TokenType \ TokenTypeInterface ;
+ use Symfony \ Component \ HttpFoundation \ Request ;
+
+
+
+
+ abstract class AbstractServer
+ {
+
+
+
+
+
+ protected $request ;
+
+
+
+
+
+
+ protected $sessionStorage ;
+
+
+
+
+
+
+ protected $accessTokenStorage ;
+
+
+
+
+
+
+ protected $refreshTokenStorage ;
+
+
+
+
+
+
+ protected $authCodeStorage ;
+
+
+
+
+
+
+ protected $scopeStorage ;
+
+
+
+
+
+
+ protected $clientStorage ;
+
+
+
+
+ protected $macStorage ;
+
+
+
+
+
+
+ protected $tokenType ;
+
+
+
+
+
+
+ protected $eventEmitter ;
+
+
+
+
+ public function __construct ( )
+ {
+ $this -> setEventEmitter ( ) ;
+ }
+
+
+
+
+
+
+ public function setEventEmitter ( $emitter = null )
+ {
+ if ( $emitter === null ) {
+ $this -> eventEmitter = new Emitter ( ) ;
+ } else {
+ $this -> eventEmitter = $emitter ;
+ }
+ }
+
+
+
+
+
+
+
+ public function addEventListener ( $eventName , callable $listener )
+ {
+ $this -> eventEmitter -> addListener ( $eventName , $listener ) ;
+ }
+
+
+
+
+
+
+ public function getEventEmitter ( )
+ {
+ return $this -> eventEmitter ;
+ }
+
+
+
+
+
+
+
+
+ public function setRequest ( $request )
+ {
+ $this -> request = $request ;
+
+ return $this ;
+ }
+
+
+
+
+
+
+ public function getRequest ( )
+ {
+ if ( $this -> request === null ) {
+ $this -> request = Request :: createFromGlobals ( ) ;
+ }
+
+ return $this -> request ;
+ }
+
+
+
+
+
+
+
+
+ public function setClientStorage ( ClientInterface $storage )
+ {
+ $storage -> setServer ( $this ) ;
+ $this -> clientStorage = $storage ;
+
+ return $this ;
+ }
+
+
+
+
+
+
+
+
+ public function setSessionStorage ( SessionInterface $storage )
+ {
+ $storage -> setServer ( $this ) ;
+ $this -> sessionStorage = $storage ;
+
+ return $this ;
+ }
+
+
+
+
+
+
+
+
+ public function setAccessTokenStorage ( AccessTokenInterface $storage )
+ {
+ $storage -> setServer ( $this ) ;
+ $this -> accessTokenStorage = $storage ;
+
+ return $this ;
+ }
+
+
+
+
+
+
+
+
+ public function setRefreshTokenStorage ( RefreshTokenInterface $storage )
+ {
+ $storage -> setServer ( $this ) ;
+ $this -> refreshTokenStorage = $storage ;
+
+ return $this ;
+ }
+
+
+
+
+
+
+
+
+ public function setAuthCodeStorage ( AuthCodeInterface $storage )
+ {
+ $storage -> setServer ( $this ) ;
+ $this -> authCodeStorage = $storage ;
+
+ return $this ;
+ }
+
+
+
+
+
+
+
+
+ public function setScopeStorage ( ScopeInterface $storage )
+ {
+ $storage -> setServer ( $this ) ;
+ $this -> scopeStorage = $storage ;
+
+ return $this ;
+ }
+
+
+
+
+
+
+ public function getClientStorage ( )
+ {
+ return $this -> clientStorage ;
+ }
+
+
+
+
+
+
+ public function getScopeStorage ( )
+ {
+ return $this -> scopeStorage ;
+ }
+
+
+
+
+
+
+ public function getSessionStorage ( )
+ {
+ return $this -> sessionStorage ;
+ }
+
+
+
+
+
+
+ public function getRefreshTokenStorage ( )
+ {
+ return $this -> refreshTokenStorage ;
+ }
+
+
+
+
+
+
+ public function getAccessTokenStorage ( )
+ {
+ return $this -> accessTokenStorage ;
+ }
+
+
+
+
+
+
+ public function getAuthCodeStorage ( )
+ {
+ return $this -> authCodeStorage ;
+ }
+
+
+
+
+
+
+
+
+ public function setTokenType ( TokenTypeInterface $tokenType )
+ {
+ $tokenType -> setServer ( $this ) ;
+ $this -> tokenType = $tokenType ;
+ }
+
+
+
+
+
+
+ public function getTokenType ( )
+ {
+ return $this -> tokenType ;
+ }
+
+
+
+
+ public function getMacStorage ( )
+ {
+ return $this -> macStorage ;
+ }
+
+
+
+
+ public function setMacStorage ( MacTokenInterface $macStorage )
+ {
+ $this -> macStorage = $macStorage ;
+ }
+ }
@@ -870,7 +934,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/AuthorizationServer.php.html b/master/AuthorizationServer.php.html
index 0046e3cf..36b0c616 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%
+
38 / 38
- 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%
+
38 / 38
- __construct()
-
-
-
0.00% covered (danger)
+
__construct()
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
1.30
-
-
-
33.33% covered (danger)
+
100.00%
+
1 / 1
+
1
+
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
+
100.00%
+
3 / 3
- addGrantType(GrantTypeInterface $grantType, $identifier = null)
-
- hasGrantType($identifier)
-
-
-
0.00% covered (danger)
+
hasGrantType($identifier)
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
2
-
-
-
0.00% covered (danger)
+
100.00%
+
1 / 1
+
1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
+
100.00%
+
1 / 1
@@ -403,9 +403,14 @@
100.00%
1 / 1
3
-
-
-
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 6 / 6
@@ -426,7 +431,7 @@
100.00%
- 2 / 2
+ 3 / 3
@@ -513,12 +518,12 @@
public function __construct ( )
{
- $this -> setTokenType ( new Bearer ( ) ) ;
+ $this -> setTokenType ( new Bearer ( ) ) ;
- parent :: __construct ( ) ;
+ parent :: __construct ( ) ;
- return $this ;
- }
+ return $this ;
+ }
@@ -530,21 +535,21 @@
public function addGrantType ( GrantTypeInterface $grantType , $identifier = null )
{
- if ( is_null ( $identifier ) ) {
- $identifier = $grantType -> getIdentifier ( ) ;
- }
+ if ( is_null ( $identifier ) ) {
+ $identifier = $grantType -> getIdentifier ( ) ;
+ }
- $grantType -> setAuthorizationServer ( $this ) ;
+ $grantType -> setAuthorizationServer ( $this ) ;
- $this -> grantTypes [ $identifier ] = $grantType ;
+ $this -> grantTypes [ $identifier ] = $grantType ;
- if ( ! is_null ( $grantType -> getResponseType ( ) ) ) {
- $this -> responseTypes [ ] = $grantType -> getResponseType ( ) ;
- }
+ if ( ! is_null ( $grantType -> getResponseType ( ) ) ) {
+ $this -> responseTypes [ ] = $grantType -> getResponseType ( ) ;
+ }
- return $this ;
- }
+ return $this ;
+ }
@@ -555,8 +560,8 @@
public function hasGrantType ( $identifier )
{
- return ( array_key_exists ( $identifier , $this -> grantTypes ) ) ;
- }
+ return ( array_key_exists ( $identifier , $this -> grantTypes ) ) ;
+ }
@@ -566,7 +571,7 @@
public function getResponseTypes ( )
{
return $this -> responseTypes ;
- }
+ }
@@ -580,7 +585,7 @@
$this -> requireScopeParam = $require ;
return $this ;
- }
+ }
@@ -590,7 +595,7 @@
public function scopeParamRequired ( )
{
return $this -> requireScopeParam ;
- }
+ }
@@ -604,7 +609,7 @@
$this -> defaultScope = $default ;
return $this ;
- }
+ }
@@ -613,8 +618,8 @@
public function getDefaultScope ( )
{
- return $this -> defaultScope ;
- }
+ return $this -> defaultScope ;
+ }
@@ -624,7 +629,7 @@
public function stateParamRequired ( )
{
return $this -> requireStateParam ;
- }
+ }
@@ -638,7 +643,7 @@
$this -> requireStateParam = $require ;
return $this ;
- }
+ }
@@ -648,7 +653,7 @@
public function getScopeDelimiter ( )
{
return $this -> scopeDelimiter ;
- }
+ }
@@ -662,7 +667,7 @@
$this -> scopeDelimiter = $scopeDelimiter ;
return $this ;
- }
+ }
@@ -671,8 +676,8 @@
public function getAccessTokenTTL ( )
{
- return $this -> accessTokenTTL ;
- }
+ return $this -> accessTokenTTL ;
+ }
@@ -686,7 +691,7 @@
$this -> accessTokenTTL = $accessTokenTTL ;
return $this ;
- }
+ }
@@ -697,19 +702,19 @@
public function issueAccessToken ( )
{
- $grantType = $this -> getRequest ( ) -> request -> get ( 'grant_type' ) ;
- if ( is_null ( $grantType ) ) {
- throw new Exception \ InvalidRequestException ( 'grant_type' ) ;
- }
+ $grantType = $this -> getRequest ( ) -> request -> get ( 'grant_type' ) ;
+ if ( is_null ( $grantType ) ) {
+ throw new Exception \ InvalidRequestException ( 'grant_type' ) ;
+ }
- if ( ! in_array ( $grantType , array_keys ( $this -> grantTypes ) ) ) {
- throw new Exception \ UnsupportedGrantTypeException ( $grantType ) ;
- }
+ if ( ! in_array ( $grantType , array_keys ( $this -> grantTypes ) ) ) {
+ throw new Exception \ UnsupportedGrantTypeException ( $grantType ) ;
+ }
- return $this -> getGrantType ( $grantType ) -> completeFlow ( ) ;
- }
+ return $this -> getGrantType ( $grantType ) -> completeFlow ( ) ;
+ }
@@ -722,12 +727,12 @@
public function getGrantType ( $grantType )
{
- if ( isset ( $this -> grantTypes [ $grantType ] ) ) {
- return $this -> grantTypes [ $grantType ] ;
- }
+ if ( isset ( $this -> grantTypes [ $grantType ] ) ) {
+ return $this -> grantTypes [ $grantType ] ;
+ }
- throw new Exception \ InvalidGrantException ( $grantType ) ;
- }
+ throw new Exception \ InvalidGrantException ( $grantType ) ;
+ }
}
@@ -741,7 +746,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Entity/AbstractTokenEntity.php.html b/master/Entity/AbstractTokenEntity.php.html
index b6cdab06..e018298d 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 ;
+
}
@@ -428,7 +428,7 @@
$this -> session = $session ;
return $this ;
-
}
+
}
@@ -439,10 +439,10 @@
public function setExpireTime ( $expireTime )
{
-
$this -> expireTime = $expireTime ;
+
$this -> expireTime = $expireTime ;
-
return $this ;
-
}
+
return $this ;
+
}
@@ -451,8 +451,8 @@
public function getExpireTime ( )
{
-
return $this -> expireTime ;
-
}
+
return $this -> expireTime ;
+
}
@@ -462,7 +462,7 @@
public function isExpired ( )
{
return ( ( time ( ) - $this -> expireTime ) > 0 ) ;
-
}
+
}
@@ -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 ;
+
}
@@ -485,8 +485,8 @@
public function getId ( )
{
-
return $this -> id ;
-
}
+
return $this -> id ;
+
}
@@ -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 ;
-
}
+
}
@@ -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 ;
-
}
+
}
@@ -534,12 +534,12 @@
public function __toString ( )
{
-
if ( $this -> id === null ) {
+
if ( $this -> id === null ) {
return '' ;
-
}
+
}
return $this -> id ;
-
}
+
}
@@ -567,7 +567,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Entity/AccessTokenEntity.php.html b/master/Entity/AccessTokenEntity.php.html
index 3d1623ec..f36aa8cb 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 ;
- }
+ }
@@ -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 ] ) ;
+ }
@@ -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 ;
- }
+ }
@@ -273,24 +283,24 @@
$this -> server -> getAccessTokenStorage ( ) -> create (
$this -> getId ( ) ,
$this -> getExpireTime ( ) ,
- $this -> getSession ( ) -> getId ( )
- ) ;
+ $this -> getSession ( ) -> getId ( )
+ ) ;
foreach ( $this -> getScopes ( ) as $scope ) {
- $this -> server -> getAccessTokenStorage ( ) -> associateScope ( $this , $scope ) ;
- }
+ $this -> server -> getAccessTokenStorage ( ) -> associateScope ( $this , $scope ) ;
+ }
return $this ;
- }
+ }
public function expire ( )
{
- $this -> server -> getAccessTokenStorage ( ) -> delete ( $this ) ;
- }
+ $this -> server -> getAccessTokenStorage ( ) -> delete ( $this ) ;
+ }
}
@@ -304,7 +314,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Entity/AuthCodeEntity.php.html b/master/Entity/AuthCodeEntity.php.html
index d78717f1..e76cbf01 100644
--- a/master/Entity/AuthCodeEntity.php.html
+++ b/master/Entity/AuthCodeEntity.php.html
@@ -42,61 +42,61 @@
- Total
-
-
-
0.00% covered (danger)
+
Total
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
83.33% covered (warning)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
83.33%
-
5 / 6
-
CRAP
-
-
-
86.96% covered (warning)
+
100.00%
+
7 / 7
+
CRAP
+
+
+ 100.00% covered (success)
-
86.96%
-
20 / 23
+
100.00%
+
31 / 31
- AuthCodeEntity
-
-
-
0.00% covered (danger)
+
AuthCodeEntity
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
85.71% covered (warning)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
85.71%
-
6 / 7
-
11.27
-
-
-
86.96% covered (warning)
+
100.00%
+
7 / 7
+
11
+
+
+ 100.00% covered (success)
-
86.96%
-
20 / 23
+
100.00%
+
31 / 31
@@ -142,24 +142,24 @@
- generateRedirectUri($state = null, $queryDelimeter = '?')
-
@@ -201,7 +201,7 @@
100.00%
- 4 / 4
+ 6 / 6
@@ -222,7 +222,7 @@
100.00%
- 7 / 7
+ 10 / 10
@@ -236,9 +236,14 @@
100.00%
1 / 1
1
-
-
-
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 2 / 2
@@ -283,7 +288,7 @@
$this -> redirectUri = $redirectUri ;
return $this ;
- }
+ }
@@ -292,8 +297,8 @@
public function getRedirectUri ( )
{
- return $this -> redirectUri ;
- }
+ return $this -> redirectUri ;
+ }
@@ -305,14 +310,14 @@
public function generateRedirectUri ( $state = null , $queryDelimeter = '?' )
{
- $uri = $this -> getRedirectUri ( ) ;
- $uri .= ( strstr ( $this -> getRedirectUri ( ) , $queryDelimeter ) === false ) ? $queryDelimeter : '&' ;
+ $uri = $this -> getRedirectUri ( ) ;
+ $uri .= ( strstr ( $this -> getRedirectUri ( ) , $queryDelimeter ) === false ) ? $queryDelimeter : '&' ;
- return $uri . http_build_query ( [
+ return $uri . http_build_query ( [
'code' => $this -> getId ( ) ,
- 'state' => $state ,
- ] ) ;
- }
+ 'state' => $state ,
+ ] ) ;
+ }
@@ -323,12 +328,12 @@
{
if ( $this -> session instanceof SessionEntity ) {
return $this -> session ;
- }
+ }
- $this -> session = $this -> server -> getSessionStorage ( ) -> getByAuthCode ( $this ) ;
+ $this -> session = $this -> server -> getSessionStorage ( ) -> getByAuthCode ( $this ) ;
return $this -> session ;
- }
+ }
@@ -339,12 +344,12 @@
{
if ( $this -> scopes === null ) {
$this -> scopes = $this -> formatScopes (
- $this -> server -> getAuthCodeStorage ( ) -> getScopes ( $this )
- ) ;
- }
+ $this -> server -> getAuthCodeStorage ( ) -> getScopes ( $this )
+ ) ;
+ }
return $this -> scopes ;
- }
+ }
@@ -354,25 +359,25 @@
$this -> server -> getAuthCodeStorage ( ) -> create (
$this -> getId ( ) ,
$this -> getExpireTime ( ) ,
- $this -> getSession ( ) -> getId ( ) ,
+ $this -> getSession ( ) -> getId ( ) ,
$this -> getRedirectUri ( )
- ) ;
+ ) ;
foreach ( $this -> getScopes ( ) as $scope ) {
- $this -> server -> getAuthCodeStorage ( ) -> associateScope ( $this , $scope ) ;
- }
+ $this -> server -> getAuthCodeStorage ( ) -> associateScope ( $this , $scope ) ;
+ }
return $this ;
- }
+ }
public function expire ( )
{
- $this -> server -> getAuthCodeStorage ( ) -> delete ( $this ) ;
- }
+ $this -> server -> getAuthCodeStorage ( ) -> delete ( $this ) ;
+ }
}
@@ -386,7 +391,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Entity/ClientEntity.php.html b/master/Entity/ClientEntity.php.html
index f46502be..4e50875c 100644
--- a/master/Entity/ClientEntity.php.html
+++ b/master/Entity/ClientEntity.php.html
@@ -67,7 +67,7 @@
100.00%
- 7 / 7
+ 6 / 6
@@ -96,7 +96,7 @@
100.00%
- 7 / 7
+ 6 / 6
@@ -117,7 +117,7 @@
100.00%
- 3 / 3
+ 2 / 2
@@ -275,10 +275,10 @@
public function __construct ( AbstractServer $server )
{
- $this -> server = $server ;
+ $this -> server = $server ;
- return $this ;
- }
+ return $this ;
+ }
@@ -287,8 +287,8 @@
public function getId ( )
{
- return $this -> id ;
- }
+ return $this -> id ;
+ }
@@ -298,7 +298,7 @@
public function getSecret ( )
{
return $this -> secret ;
- }
+ }
@@ -308,7 +308,7 @@
public function getName ( )
{
return $this -> name ;
- }
+ }
@@ -318,7 +318,7 @@
public function getRedirectUri ( )
{
return $this -> redirectUri ;
- }
+ }
}
@@ -332,7 +332,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Entity/EntityTrait.php.html b/master/Entity/EntityTrait.php.html
index 05d24591..56510241 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Entity/RefreshTokenEntity.php.html b/master/Entity/RefreshTokenEntity.php.html
index d2dc29fc..4fc43ae6 100644
--- a/master/Entity/RefreshTokenEntity.php.html
+++ b/master/Entity/RefreshTokenEntity.php.html
@@ -58,7 +58,7 @@
100.00%
- 4 / 4
+ 5 / 5
CRAP
100.00%
- 11 / 11
+ 16 / 16
@@ -96,7 +96,7 @@
100.00%
- 11 / 11
+ 16 / 16
@@ -138,7 +138,7 @@
100.00%
- 3 / 3
+ 2 / 2
@@ -159,7 +159,7 @@
100.00%
- 2 / 2
+ 4 / 4
@@ -180,7 +180,7 @@
100.00%
- 4 / 4
+ 6 / 6
@@ -194,9 +194,14 @@
100.00%
1 / 1
1
-
-
-
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 2 / 2
@@ -248,7 +253,7 @@
$this -> accessTokenId = $accessTokenId ;
return $this ;
- }
+ }
@@ -262,7 +267,7 @@
$this -> accessTokenEntity = $accessTokenEntity ;
return $this ;
- }
+ }
@@ -271,12 +276,12 @@
public function getAccessToken ( )
{
- if ( ! $this -> accessTokenEntity instanceof AccessTokenEntity ) {
- $this -> accessTokenEntity = $this -> server -> getAccessTokenStorage ( ) -> get ( $this -> accessTokenId ) ;
- }
+ if ( ! $this -> accessTokenEntity instanceof AccessTokenEntity ) {
+ $this -> accessTokenEntity = $this -> server -> getAccessTokenStorage ( ) -> get ( $this -> accessTokenId ) ;
+ }
- return $this -> accessTokenEntity ;
- }
+ return $this -> accessTokenEntity ;
+ }
@@ -286,8 +291,8 @@
$this -> server -> getRefreshTokenStorage ( ) -> create (
$this -> getId ( ) ,
$this -> getExpireTime ( ) ,
- $this -> getAccessToken ( ) -> getId ( )
- ) ;
+ $this -> getAccessToken ( ) -> getId ( )
+ ) ;
}
@@ -295,8 +300,8 @@
public function expire ( )
{
- $this -> server -> getRefreshTokenStorage ( ) -> delete ( $this ) ;
- }
+ $this -> server -> getRefreshTokenStorage ( ) -> delete ( $this ) ;
+ }
}
@@ -310,7 +315,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Entity/ScopeEntity.php.html b/master/Entity/ScopeEntity.php.html
index e945ad9e..03db14a2 100644
--- a/master/Entity/ScopeEntity.php.html
+++ b/master/Entity/ScopeEntity.php.html
@@ -58,7 +58,7 @@
100.00%
- 3 / 3
+ 4 / 4
CRAP
100.00%
- 6 / 6
+ 7 / 7
@@ -96,7 +96,7 @@
100.00%
- 6 / 6
+ 7 / 7
@@ -117,7 +117,7 @@
100.00%
- 3 / 3
+ 2 / 2
@@ -152,9 +152,14 @@
100.00%
1 / 1
1
-
-
-
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
@@ -175,7 +180,7 @@
100.00%
- 2 / 2
+ 3 / 3
@@ -235,10 +240,10 @@
public function __construct ( AbstractServer $server )
{
- $this -> server = $server ;
+ $this -> server = $server ;
- return $this ;
- }
+ return $this ;
+ }
@@ -247,8 +252,8 @@
public function getId ( )
{
- return $this -> id ;
- }
+ return $this -> id ;
+ }
@@ -257,8 +262,8 @@
public function getDescription ( )
{
- return $this -> description ;
- }
+ return $this -> description ;
+ }
@@ -270,8 +275,8 @@
return [
'id' => $this -> getId ( ) ,
'description' => $this -> getDescription ( )
- ] ;
- }
+ ] ;
+ }
}
@@ -285,7 +290,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Entity/SessionEntity.php.html b/master/Entity/SessionEntity.php.html
index bfb3af65..c81eb43c 100644
--- a/master/Entity/SessionEntity.php.html
+++ b/master/Entity/SessionEntity.php.html
@@ -67,7 +67,7 @@
100.00%
- 41 / 41
+ 53 / 53
@@ -96,7 +96,7 @@
100.00%
- 41 / 41
+ 53 / 53
@@ -117,7 +117,7 @@
100.00%
- 3 / 3
+ 2 / 2
@@ -180,7 +180,7 @@
100.00%
- 2 / 2
+ 4 / 4
@@ -201,7 +201,7 @@
100.00%
- 2 / 2
+ 4 / 4
@@ -222,7 +222,7 @@
100.00%
- 3 / 3
+ 4 / 4
@@ -243,7 +243,7 @@
100.00%
- 4 / 4
+ 9 / 9
@@ -264,7 +264,7 @@
100.00%
- 3 / 3
+ 2 / 2
@@ -285,7 +285,7 @@
100.00%
- 3 / 3
+ 2 / 2
@@ -306,7 +306,7 @@
100.00%
- 3 / 3
+ 2 / 2
@@ -411,7 +411,7 @@
100.00%
- 5 / 5
+ 11 / 11
@@ -512,10 +512,10 @@
public function __construct ( AbstractServer $server )
{
- $this -> server = $server ;
+ $this -> server = $server ;
- return $this ;
- }
+ return $this ;
+ }
@@ -526,10 +526,10 @@
public function setId ( $id )
{
- $this -> id = $id ;
+ $this -> id = $id ;
- return $this ;
- }
+ return $this ;
+ }
@@ -539,7 +539,7 @@
public function getId ( )
{
return $this -> id ;
- }
+ }
@@ -550,12 +550,12 @@
public function associateScope ( ScopeEntity $scope )
{
- if ( ! isset ( $this -> scopes [ $scope -> getId ( ) ] ) ) {
- $this -> scopes [ $scope -> getId ( ) ] = $scope ;
- }
+ if ( ! isset ( $this -> scopes [ $scope -> getId ( ) ] ) ) {
+ $this -> scopes [ $scope -> getId ( ) ] = $scope ;
+ }
return $this ;
- }
+ }
@@ -567,11 +567,11 @@
public function hasScope ( $scope )
{
if ( $this -> scopes === null ) {
- $this -> getScopes ( ) ;
- }
+ $this -> getScopes ( ) ;
+ }
return isset ( $this -> scopes [ $scope ] ) ;
- }
+ }
@@ -580,12 +580,12 @@
public function getScopes ( )
{
- if ( $this -> scopes === null ) {
- $this -> scopes = $this -> formatScopes ( $this -> server -> getSessionStorage ( ) -> getScopes ( $this ) ) ;
- }
+ if ( $this -> scopes === null ) {
+ $this -> scopes = $this -> formatScopes ( $this -> server -> getSessionStorage ( ) -> getScopes ( $this ) ) ;
+ }
- return $this -> scopes ;
- }
+ return $this -> scopes ;
+ }
@@ -597,16 +597,16 @@
private function formatScopes ( $unformatted = [ ] )
{
$scopes = [ ] ;
- if ( is_array ( $unformatted ) ) {
- foreach ( $unformatted as $scope ) {
- if ( $scope instanceof ScopeEntity ) {
- $scopes [ $scope -> getId ( ) ] = $scope ;
- }
- }
- }
+ if ( is_array ( $unformatted ) ) {
+ foreach ( $unformatted as $scope ) {
+ if ( $scope instanceof ScopeEntity ) {
+ $scopes [ $scope -> getId ( ) ] = $scope ;
+ }
+ }
+ }
return $scopes ;
- }
+ }
@@ -620,7 +620,7 @@
$this -> accessToken = $accessToken ;
return $this ;
- }
+ }
@@ -634,7 +634,7 @@
$this -> refreshToken = $refreshToken ;
return $this ;
- }
+ }
@@ -648,7 +648,7 @@
$this -> client = $client ;
return $this ;
- }
+ }
@@ -657,14 +657,14 @@
public function getClient ( )
{
- if ( $this -> client instanceof ClientEntity ) {
- return $this -> client ;
- }
+ if ( $this -> client instanceof ClientEntity ) {
+ return $this -> client ;
+ }
- $this -> client = $this -> server -> getClientStorage ( ) -> getBySession ( $this ) ;
+ $this -> client = $this -> server -> getClientStorage ( ) -> getBySession ( $this ) ;
return $this -> client ;
- }
+ }
@@ -679,10 +679,10 @@
$this -> ownerType = $type ;
$this -> ownerId = $id ;
- $this -> server -> getEventEmitter ( ) -> emit ( new SessionOwnerEvent ( $this ) ) ;
+ $this -> server -> getEventEmitter ( ) -> emit ( new SessionOwnerEvent ( $this ) ) ;
return $this ;
- }
+ }
@@ -692,7 +692,7 @@
public function getOwnerId ( )
{
return $this -> ownerId ;
- }
+ }
@@ -702,7 +702,7 @@
public function getOwnerType ( )
{
return $this -> ownerType ;
- }
+ }
@@ -715,17 +715,17 @@
$id = $this -> server -> getSessionStorage ( ) -> create (
$this -> getOwnerType ( ) ,
$this -> getOwnerId ( ) ,
- $this -> getClient ( ) -> getId ( ) ,
- $this -> getClient ( ) -> getRedirectUri ( )
- ) ;
+ $this -> getClient ( ) -> getId ( ) ,
+ $this -> getClient ( ) -> getRedirectUri ( )
+ ) ;
- $this -> setId ( $id ) ;
+ $this -> setId ( $id ) ;
foreach ( $this -> getScopes ( ) as $scope ) {
- $this -> server -> getSessionStorage ( ) -> associateScope ( $this , $scope ) ;
- }
- }
+ $this -> server -> getSessionStorage ( ) -> associateScope ( $this , $scope ) ;
+ }
+ }
}
@@ -739,7 +739,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Entity/dashboard.html b/master/Entity/dashboard.html
index b8243a89..1bcd79a4 100644
--- a/master/Entity/dashboard.html
+++ b/master/Entity/dashboard.html
@@ -59,9 +59,7 @@
- EntityTrait 60%
- AccessTokenEntity 71%
- AuthCodeEntity 86%
+ AccessTokenEntity 84%
@@ -78,9 +76,7 @@
- AuthCodeEntity 11
- AccessTokenEntity 10
- EntityTrait 3
+ AccessTokenEntity 9
@@ -118,12 +114,8 @@
- generateRedirectUri 40%
- associateScope 50%
- hydrate 60%
- getScopes 66%
- save 70%
- getSession 80%
+ hasScope 0%
+ formatScopes 88%
@@ -140,12 +132,8 @@
- hydrate 3
- generateRedirectUri 2
- associateScope 2
- getScopes 2
- save 2
- getSession 2
+ hasScope 6
+ formatScopes 4
@@ -155,7 +143,7 @@
@@ -176,7 +164,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,1,1,1,1,4], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,1,6], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -194,7 +182,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,1,1,2,1,1,0,48], "Method Coverage"))
+ .datum(getCoverageDistributionData([1,0,0,0,0,0,0,0,0,1,0,52], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -245,7 +233,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[91.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 b5ff8a02..12023c2f 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
diff --git a/master/Event/ClientAuthenticationFailedEvent.php.html b/master/Event/ClientAuthenticationFailedEvent.php.html
index 889c48fb..63e8a1c4 100644
--- a/master/Event/ClientAuthenticationFailedEvent.php.html
+++ b/master/Event/ClientAuthenticationFailedEvent.php.html
@@ -51,15 +51,6 @@
0.00%
0 / 1
-
-
- 50.00% covered (warning)
-
-
-
- 50.00%
- 1 / 2
- CRAP
66.67% covered (warning)
@@ -68,6 +59,15 @@
66.67%
2 / 3
+ CRAP
+
+
+ 75.00% covered (warning)
+
+
+
+ 75.00%
+ 3 / 4
@@ -88,36 +88,36 @@
66.67%
2 / 3
- 3.33
+ 3.14
-
-
66.67% covered (warning)
+
+ 75.00% covered (warning)
- 66.67%
- 2 / 3
+ 75.00%
+ 3 / 4
- __construct(Request $request)
-
-
-
0.00% covered (danger)
+
__construct(Request $request)
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
1.12
-
-
-
50.00% covered (warning)
+
100.00%
+
1 / 1
+
1
+
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
@@ -142,19 +142,24 @@
- getRequest()
-
-
-
100.00% covered (success)
+
getRequest()
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
1
-
-
-
+
0.00%
+
0 / 1
+
2
+
+
+ 0.00% covered (danger)
+
+
+
+
0.00%
+
0 / 1
@@ -195,7 +200,7 @@
public function __construct ( Request $request )
{
$this -> request = $request ;
-
}
+
}
@@ -205,7 +210,7 @@
public function getName ( )
{
return 'error.auth.client' ;
-
}
+
}
@@ -214,8 +219,8 @@
public function getRequest ( )
{
-
return $this -> request ;
-
}
+
return $this -> request ;
+
}
}
@@ -229,7 +234,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Event/SessionOwnerEvent.php.html b/master/Event/SessionOwnerEvent.php.html
index 23286b7e..64e39138 100644
--- a/master/Event/SessionOwnerEvent.php.html
+++ b/master/Event/SessionOwnerEvent.php.html
@@ -42,82 +42,82 @@
- Total
-
-
-
0.00% covered (danger)
+
Total
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
66.67% covered (warning)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
-
CRAP
-
-
-
75.00% covered (warning)
+
100.00%
+
3 / 3
+
CRAP
+
+
+ 100.00% covered (success)
-
75.00%
-
3 / 4
+
100.00%
+
4 / 4
- SessionOwnerEvent
-
-
-
0.00% covered (danger)
+
SessionOwnerEvent
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
66.67% covered (warning)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
-
3.14
-
-
-
75.00% covered (warning)
+
100.00%
+
3 / 3
+
3
+
+
+ 100.00% covered (success)
-
75.00%
-
3 / 4
+
100.00%
+
4 / 4
- __construct(SessionEntity $session)
-
-
-
0.00% covered (danger)
+
__construct(SessionEntity $session)
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
1.12
-
-
-
50.00% covered (warning)
+
100.00%
+
1 / 1
+
1
+
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
@@ -200,7 +200,7 @@
public function __construct ( SessionEntity $session )
{
$this -> session = $session ;
- }
+ }
@@ -210,7 +210,7 @@
public function getName ( )
{
return 'session.owner' ;
- }
+ }
@@ -220,7 +220,7 @@
public function getSession ( )
{
return $this -> session ;
- }
+ }
}
@@ -234,7 +234,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Event/UserAuthenticationFailedEvent.php.html b/master/Event/UserAuthenticationFailedEvent.php.html
index ebda515a..36203fc4 100644
--- a/master/Event/UserAuthenticationFailedEvent.php.html
+++ b/master/Event/UserAuthenticationFailedEvent.php.html
@@ -51,15 +51,6 @@
0.00%
0 / 1
-
-
- 50.00% covered (warning)
-
-
-
- 50.00%
- 1 / 2
- CRAP
66.67% covered (warning)
@@ -68,6 +59,15 @@
66.67%
2 / 3
+ CRAP
+
+
+ 75.00% covered (warning)
+
+
+
+ 75.00%
+ 3 / 4
@@ -88,36 +88,36 @@
66.67%
2 / 3
- 3.33
+ 3.14
-
-
66.67% covered (warning)
+
+ 75.00% covered (warning)
- 66.67%
- 2 / 3
+ 75.00%
+ 3 / 4
- __construct(Request $request)
-
-
-
0.00% covered (danger)
+
__construct(Request $request)
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
1.12
-
-
-
50.00% covered (warning)
+
100.00%
+
1 / 1
+
1
+
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
@@ -142,19 +142,24 @@
- getRequest()
-
-
-
100.00% covered (success)
+
getRequest()
+
+
+ 0.00% covered (danger)
-
100.00%
-
1 / 1
-
1
-
-
-
+
0.00%
+
0 / 1
+
2
+
+
+ 0.00% covered (danger)
+
+
+
+
0.00%
+
0 / 1
@@ -195,7 +200,7 @@
public function __construct ( Request $request )
{
$this -> request = $request ;
- }
+ }
@@ -205,7 +210,7 @@
public function getName ( )
{
return 'error.auth.user' ;
- }
+ }
@@ -214,8 +219,8 @@
public function getRequest ( )
{
- return $this -> request ;
- }
+ return $this -> request ;
+ }
}
@@ -229,7 +234,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Event/dashboard.html b/master/Event/dashboard.html
index 9f5255f9..f2385df7 100644
--- a/master/Event/dashboard.html
+++ b/master/Event/dashboard.html
@@ -59,9 +59,8 @@
- ClientAuthenticationFailedEvent 66%
- UserAuthenticationFailedEvent 66%
- SessionOwnerEvent 75%
+ UserAuthenticationFailedEvent 75%
+ ClientAuthenticationFailedEvent 75%
@@ -115,9 +114,8 @@
- __construct 50%
- __construct 50%
- __construct 50%
+ getRequest 0%
+ getRequest 0%
@@ -143,7 +141,7 @@
@@ -164,7 +162,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,2,1,0,0,0], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,0,0,1], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -182,7 +180,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,3,0,0,0,0,6], "Method Coverage"))
+ .datum(getCoverageDistributionData([2,0,0,0,0,0,0,0,0,0,0,7], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -233,7 +231,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[66.666666666667,3,"ClientAuthenticationFailedEvent<\/a>"],[75,3," SessionOwnerEvent<\/a>"],[66.666666666667,3," UserAuthenticationFailedEvent<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[75,3," ClientAuthenticationFailedEvent<\/a>"],[100,3," SessionOwnerEvent<\/a>"],[75,3," UserAuthenticationFailedEvent<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -258,7 +256,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[50,1," ClientAuthenticationFailedEvent::__construct<\/a>"],[100,1," ClientAuthenticationFailedEvent::getName<\/a>"],[100,1," ClientAuthenticationFailedEvent::getRequest<\/a>"],[50,1," SessionOwnerEvent::__construct<\/a>"],[100,1," SessionOwnerEvent::getName<\/a>"],[100,1," SessionOwnerEvent::getSession<\/a>"],[50,1," UserAuthenticationFailedEvent::__construct<\/a>"],[100,1," UserAuthenticationFailedEvent::getName<\/a>"],[100,1," UserAuthenticationFailedEvent::getRequest<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,1," ClientAuthenticationFailedEvent::__construct<\/a>"],[100,1," ClientAuthenticationFailedEvent::getName<\/a>"],[0,1," ClientAuthenticationFailedEvent::getRequest<\/a>"],[100,1," SessionOwnerEvent::__construct<\/a>"],[100,1," SessionOwnerEvent::getName<\/a>"],[100,1," SessionOwnerEvent::getSession<\/a>"],[100,1," UserAuthenticationFailedEvent::__construct<\/a>"],[100,1," UserAuthenticationFailedEvent::getName<\/a>"],[0,1," UserAuthenticationFailedEvent::getRequest<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/Event/index.html b/master/Event/index.html
index 9aa5970e..0ad24146 100644
--- a/master/Event/index.html
+++ b/master/Event/index.html
@@ -44,61 +44,33 @@
Total
-
-
70.00% covered (warning)
+
+ 83.33% covered (warning)
- 70.00%
- 7 / 10
+ 83.33%
+ 10 / 12
-
-
57.14% covered (warning)
+
+ 77.78% covered (warning)
- 57.14%
- 4 / 7
+ 77.78%
+ 7 / 9
-
-
0.00% covered (danger)
+
+ 33.33% covered (danger)
- 0.00%
- 0 / 3
+ 33.33%
+ 1 / 3
ClientAuthenticationFailedEvent.php
-
-
- 66.67% covered (warning)
-
-
-
- 66.67%
- 2 / 3
-
-
- 50.00% covered (warning)
-
-
-
- 50.00%
- 1 / 2
-
-
- 0.00% covered (danger)
-
-
-
- 0.00%
- 0 / 1
-
-
-
- SessionOwnerEvent.php
75.00% covered (warning)
@@ -125,8 +97,44 @@
0 / 1
+
+ SessionOwnerEvent.php
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 4 / 4
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 3 / 3
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+
+
UserAuthenticationFailedEvent.php
+
+
+ 75.00% covered (warning)
+
+
+
+ 75.00%
+ 3 / 4
66.67% covered (warning)
@@ -135,14 +143,6 @@
66.67%
2 / 3
-
-
- 50.00% covered (warning)
-
-
-
- 50.00%
- 1 / 2
diff --git a/master/Exception/AccessDeniedException.php.html b/master/Exception/AccessDeniedException.php.html
index 1694f080..71e8420a 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/InvalidClientException.php.html b/master/Exception/InvalidClientException.php.html
index 17555d64..a85bda93 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/InvalidCredentialsException.php.html b/master/Exception/InvalidCredentialsException.php.html
index 3f249c7c..fd377418 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/InvalidGrantException.php.html b/master/Exception/InvalidGrantException.php.html
index 6c419cd6..18887a1b 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/InvalidRefreshException.php.html b/master/Exception/InvalidRefreshException.php.html
index ec880b14..8ff8064e 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/InvalidRequestException.php.html b/master/Exception/InvalidRequestException.php.html
index 8fe8b928..6e4e13c6 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/InvalidScopeException.php.html b/master/Exception/InvalidScopeException.php.html
index 6299f529..da891737 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/OAuthException.php.html b/master/Exception/OAuthException.php.html
index 847cc73f..cc2936a2 100644
--- a/master/Exception/OAuthException.php.html
+++ b/master/Exception/OAuthException.php.html
@@ -42,82 +42,82 @@
- Total
-
-
- 0.00% covered (danger)
-
-
-
- 0.00%
- 0 / 1
-
-
- 66.67% covered (warning)
-
-
-
- 66.67%
- 2 / 3
- CRAP
+ Total
-
-
93.33% covered (success)
+
+ 100.00% covered (success)
- 93.33%
- 14 / 15
+ 100.00%
+ 1 / 1
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 4 / 4
+ CRAP
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 25 / 25
- OAuthException
-
-
- 0.00% covered (danger)
-
-
-
- 0.00%
- 0 / 1
-
-
- 75.00% covered (warning)
-
-
-
- 75.00%
- 3 / 4
- 15.07
+ OAuthException
-
-
93.33% covered (success)
+
+ 100.00% covered (success)
- 93.33%
- 14 / 15
+ 100.00%
+ 1 / 1
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 4 / 4
+ 15
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 25 / 25
- __construct($msg = 'An error occured')
-
-
-
0.00% covered (danger)
+
__construct($msg = 'An error occured')
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
1.12
-
-
-
50.00% covered (warning)
+
100.00%
+
1 / 1
+
1
+
+
+ 100.00% covered (success)
-
50.00%
-
1 / 2
+
100.00%
+
2 / 2
@@ -131,9 +131,14 @@
100.00%
1 / 1
2
-
-
-
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
@@ -154,7 +159,7 @@
100.00%
- 4 / 4
+ 5 / 5
@@ -175,7 +180,7 @@
100.00%
- 9 / 9
+ 17 / 17
@@ -228,8 +233,8 @@
public function __construct ( $msg = 'An error occured' )
{
- parent :: __construct ( $msg ) ;
- }
+ parent :: __construct ( $msg ) ;
+ }
@@ -238,8 +243,8 @@
public function shouldRedirect ( )
{
- return is_null ( $this -> redirectUri ) ? false : true ;
- }
+ return is_null ( $this -> redirectUri ) ? false : true ;
+ }
@@ -248,14 +253,14 @@
public function getRedirectUri ( )
{
- return RedirectUri :: make (
+ return RedirectUri :: make (
$this -> redirectUri ,
[
'error' => $this -> errorType ,
'message' => $this -> getMessage ( ) ,
- ]
- ) ;
- }
+ ]
+ ) ;
+ }
@@ -264,22 +269,22 @@
public function getHttpHeaders ( )
{
- $headers = [ ] ;
- switch ( $this -> httpStatusCode ) {
- case 401 :
+ $headers = [ ] ;
+ switch ( $this -> httpStatusCode ) {
+ case 401 :
$headers [ ] = 'HTTP/1.1 401 Unauthorized' ;
break ;
- case 500 :
+ case 500 :
$headers [ ] = 'HTTP/1.1 500 Internal Server Error' ;
break ;
- case 501 :
+ case 501 :
$headers [ ] = 'HTTP/1.1 501 Not Implemented' ;
break ;
case 400 :
- default :
+ default :
$headers [ ] = 'HTTP/1.1 400 Bad Request' ;
break ;
- }
+ }
@@ -310,8 +315,8 @@
}
}
- return $headers ;
- }
+ return $headers ;
+ }
}
@@ -325,7 +330,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/ServerErrorException.php.html b/master/Exception/ServerErrorException.php.html
index be6dc5c7..4642ceb1 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/UnauthorizedClientException.php.html b/master/Exception/UnauthorizedClientException.php.html
index b62a489b..804d3001 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/UnsupportedGrantTypeException.php.html b/master/Exception/UnsupportedGrantTypeException.php.html
index 6b77ac7b..7b2b995e 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/UnsupportedResponseTypeException.php.html b/master/Exception/UnsupportedResponseTypeException.php.html
index 78297649..b0361bc2 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Exception/dashboard.html b/master/Exception/dashboard.html
index 9f44a518..a1ad9a23 100644
--- a/master/Exception/dashboard.html
+++ b/master/Exception/dashboard.html
@@ -59,17 +59,6 @@
- ServerErrorException 33%
- AccessDeniedException 50%
- InvalidClientException 50%
- InvalidCredentialsException 50%
- InvalidGrantException 50%
- InvalidRefreshException 50%
- UnauthorizedClientException 50%
- UnsupportedGrantTypeException 50%
- InvalidRequestException 60%
- InvalidScopeException 60%
- UnsupportedResponseTypeException 66%
@@ -86,7 +75,6 @@
- ServerErrorException 3
@@ -124,18 +112,6 @@
- __construct 33%
- __construct 50%
- __construct 50%
- __construct 50%
- __construct 50%
- __construct 50%
- __construct 50%
- __construct 50%
- __construct 50%
- __construct 60%
- __construct 60%
- __construct 66%
@@ -152,7 +128,6 @@
- __construct 3
@@ -162,7 +137,7 @@
@@ -183,7 +158,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,1,0,7,3,0,0,1,0], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,12], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -201,7 +176,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,1,0,8,3,0,0,0,3], "Method Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,15], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -252,7 +227,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[50,1," AccessDeniedException<\/a>"],[50,1," InvalidClientException<\/a>"],[50,1," InvalidCredentialsException<\/a>"],[50,1," InvalidGrantException<\/a>"],[50,1," InvalidRefreshException<\/a>"],[60,1," InvalidRequestException<\/a>"],[60,1," InvalidScopeException<\/a>"],[93.333333333333,15," OAuthException<\/a>"],[33.333333333333,2," ServerErrorException<\/a>"],[50,1," UnauthorizedClientException<\/a>"],[50,1," UnsupportedGrantTypeException<\/a>"],[66.666666666667,1," UnsupportedResponseTypeException<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[100,1," AccessDeniedException<\/a>"],[100,1," InvalidClientException<\/a>"],[100,1," InvalidCredentialsException<\/a>"],[100,1," InvalidGrantException<\/a>"],[100,1," InvalidRefreshException<\/a>"],[100,1," InvalidRequestException<\/a>"],[100,1," InvalidScopeException<\/a>"],[100,15," OAuthException<\/a>"],[100,2," ServerErrorException<\/a>"],[100,1," UnauthorizedClientException<\/a>"],[100,1," UnsupportedGrantTypeException<\/a>"],[100,1," UnsupportedResponseTypeException<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -277,7 +252,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[50,1," AccessDeniedException::__construct<\/a>"],[50,1," InvalidClientException::__construct<\/a>"],[50,1," InvalidCredentialsException::__construct<\/a>"],[50,1," InvalidGrantException::__construct<\/a>"],[50,1," InvalidRefreshException::__construct<\/a>"],[60,1," InvalidRequestException::__construct<\/a>"],[60,1," InvalidScopeException::__construct<\/a>"],[50,1," OAuthException::__construct<\/a>"],[100,2," OAuthException::shouldRedirect<\/a>"],[100,1," OAuthException::getRedirectUri<\/a>"],[100,11," OAuthException::getHttpHeaders<\/a>"],[33.333333333333,2," ServerErrorException::__construct<\/a>"],[50,1," UnauthorizedClientException::__construct<\/a>"],[50,1," UnsupportedGrantTypeException::__construct<\/a>"],[66.666666666667,1," UnsupportedResponseTypeException::__construct<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,1," AccessDeniedException::__construct<\/a>"],[100,1," InvalidClientException::__construct<\/a>"],[100,1," InvalidCredentialsException::__construct<\/a>"],[100,1," InvalidGrantException::__construct<\/a>"],[100,1," InvalidRefreshException::__construct<\/a>"],[100,1," InvalidRequestException::__construct<\/a>"],[100,1," InvalidScopeException::__construct<\/a>"],[100,1," OAuthException::__construct<\/a>"],[100,2," OAuthException::shouldRedirect<\/a>"],[100,1," OAuthException::getRedirectUri<\/a>"],[100,11," OAuthException::getHttpHeaders<\/a>"],[100,2," ServerErrorException::__construct<\/a>"],[100,1," UnauthorizedClientException::__construct<\/a>"],[100,1," UnsupportedGrantTypeException::__construct<\/a>"],[100,1," UnsupportedResponseTypeException::__construct<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/Exception/index.html b/master/Exception/index.html
index 18584a39..9e215a8b 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Grant/AbstractGrant.php.html b/master/Grant/AbstractGrant.php.html
index b24c60e0..a9963154 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 ;
+ }
@@ -346,15 +346,15 @@
$this -> identifier = $identifier ;
return $this ;
- }
+ }
public function getResponseType ( )
{
- return $this -> responseType ;
- }
+ return $this -> responseType ;
+ }
@@ -363,12 +363,12 @@
public function getAccessTokenTTL ( )
{
- if ( $this -> accessTokenTTL ) {
+ if ( $this -> accessTokenTTL ) {
return $this -> accessTokenTTL ;
- }
+ }
- return $this -> server -> getAccessTokenTTL ( ) ;
- }
+ return $this -> server -> getAccessTokenTTL ( ) ;
+ }
@@ -382,17 +382,17 @@
$this -> accessTokenTTL = $accessTokenTTL ;
return $this ;
- }
+ }
public function setAuthorizationServer ( AuthorizationServer $server )
{
- $this -> server = $server ;
+ $this -> server = $server ;
- return $this ;
- }
+ return $this ;
+ }
@@ -408,47 +408,47 @@
public function validateScopes ( $scopeParam = '' , ClientEntity $client , $redirectUri = null )
{
- $scopesList = explode ( $this -> server -> getScopeDelimiter ( ) , $scopeParam ) ;
+ $scopesList = explode ( $this -> server -> getScopeDelimiter ( ) , $scopeParam ) ;
- for ( $i = 0 ; $i < count ( $scopesList ) ; $i ++ ) {
- $scopesList [ $i ] = trim ( $scopesList [ $i ] ) ;
+ for ( $i = 0 ; $i < count ( $scopesList ) ; $i ++ ) {
+ $scopesList [ $i ] = trim ( $scopesList [ $i ] ) ;
if ( $scopesList [ $i ] === '' ) {
- unset ( $scopesList [ $i ] ) ;
- }
- }
+ unset ( $scopesList [ $i ] ) ;
+ }
+ }
if (
- $this -> server -> scopeParamRequired ( ) === true
- && $this -> server -> getDefaultScope ( ) === null
- && count ( $scopesList ) === 0
- ) {
- throw new Exception \ InvalidRequestException ( 'scope' ) ;
- } elseif ( count ( $scopesList ) === 0 && $this -> server -> getDefaultScope ( ) !== null ) {
- if ( is_array ( $this -> server -> getDefaultScope ( ) ) ) {
- $scopesList = $this -> server -> getDefaultScope ( ) ;
- } else {
- $scopesList = [ 0 => $this -> server -> getDefaultScope ( ) ] ;
- }
- }
+ $this -> server -> scopeParamRequired ( ) === true
+ && $this -> server -> getDefaultScope ( ) === null
+ && count ( $scopesList ) === 0
+ ) {
+ throw new Exception \ InvalidRequestException ( 'scope' ) ;
+ } elseif ( count ( $scopesList ) === 0 && $this -> server -> getDefaultScope ( ) !== null ) {
+ if ( is_array ( $this -> server -> getDefaultScope ( ) ) ) {
+ $scopesList = $this -> server -> getDefaultScope ( ) ;
+ } else {
+ $scopesList = [ 0 => $this -> server -> getDefaultScope ( ) ] ;
+ }
+ }
$scopes = [ ] ;
- 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 ;
- }
+ }
@@ -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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Grant/AuthCodeGrant.php.html b/master/Grant/AuthCodeGrant.php.html
index c031d22d..7b97d649 100644
--- a/master/Grant/AuthCodeGrant.php.html
+++ b/master/Grant/AuthCodeGrant.php.html
@@ -67,7 +67,7 @@
100.00%
- 15 / 15
+ 104 / 104
@@ -96,7 +96,7 @@
100.00%
- 15 / 15
+ 104 / 104
@@ -138,7 +138,7 @@
100.00%
- 6 / 6
+ 30 / 30
@@ -159,7 +159,7 @@
100.00%
- 1 / 1
+ 14 / 14
@@ -180,7 +180,7 @@
100.00%
- 6 / 6
+ 58 / 58
@@ -272,56 +272,56 @@
public function checkAuthorizeParams ( )
{
- $clientId = $this -> server -> getRequest ( ) -> query -> get ( 'client_id' , null ) ;
- if ( is_null ( $clientId ) ) {
- throw new Exception \ InvalidRequestException ( 'client_id' ) ;
- }
+ $clientId = $this -> server -> getRequest ( ) -> query -> get ( 'client_id' , null ) ;
+ if ( is_null ( $clientId ) ) {
+ throw new Exception \ InvalidRequestException ( 'client_id' ) ;
+ }
- $redirectUri = $this -> server -> getRequest ( ) -> query -> get ( 'redirect_uri' , null ) ;
- if ( is_null ( $redirectUri ) ) {
- throw new Exception \ InvalidRequestException ( 'redirect_uri' ) ;
- }
+ $redirectUri = $this -> server -> getRequest ( ) -> query -> get ( 'redirect_uri' , null ) ;
+ if ( is_null ( $redirectUri ) ) {
+ throw new Exception \ InvalidRequestException ( 'redirect_uri' ) ;
+ }
$client = $this -> server -> getClientStorage ( ) -> get (
- $clientId ,
+ $clientId ,
null ,
- $redirectUri ,
+ $redirectUri ,
$this -> getIdentifier ( )
- ) ;
+ ) ;
if ( ( $client instanceof ClientEntity ) === false ) {
- $this -> server -> getEventEmitter ( ) -> emit ( new Event \ ClientAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
- throw new Exception \ InvalidClientException ( ) ;
- }
+ $this -> server -> getEventEmitter ( ) -> emit ( new Event \ ClientAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
+ throw new Exception \ InvalidClientException ( ) ;
+ }
- $state = $this -> server -> getRequest ( ) -> query -> get ( 'state' , null ) ;
- if ( $this -> server -> stateParamRequired ( ) === true && is_null ( $state ) ) {
- throw new Exception \ InvalidRequestException ( 'state' , $redirectUri ) ;
- }
+ $state = $this -> server -> getRequest ( ) -> query -> get ( 'state' , null ) ;
+ if ( $this -> server -> stateParamRequired ( ) === true && is_null ( $state ) ) {
+ throw new Exception \ InvalidRequestException ( 'state' , $redirectUri ) ;
+ }
- $responseType = $this -> server -> getRequest ( ) -> query -> get ( 'response_type' , null ) ;
- if ( is_null ( $responseType ) ) {
- throw new Exception \ InvalidRequestException ( 'response_type' , $redirectUri ) ;
- }
+ $responseType = $this -> server -> getRequest ( ) -> query -> get ( 'response_type' , null ) ;
+ if ( is_null ( $responseType ) ) {
+ throw new Exception \ InvalidRequestException ( 'response_type' , $redirectUri ) ;
+ }
- if ( ! in_array ( $responseType , $this -> server -> getResponseTypes ( ) ) ) {
- throw new Exception \ UnsupportedResponseTypeException ( $responseType , $redirectUri ) ;
- }
+ if ( ! in_array ( $responseType , $this -> server -> getResponseTypes ( ) ) ) {
+ throw new Exception \ UnsupportedResponseTypeException ( $responseType , $redirectUri ) ;
+ }
- $scopeParam = $this -> server -> getRequest ( ) -> query -> get ( 'scope' , '' ) ;
- $scopes = $this -> validateScopes ( $scopeParam , $client , $redirectUri ) ;
+ $scopeParam = $this -> server -> getRequest ( ) -> query -> get ( 'scope' , '' ) ;
+ $scopes = $this -> validateScopes ( $scopeParam , $client , $redirectUri ) ;
return [
- 'client' => $client ,
- 'redirect_uri' => $redirectUri ,
- 'state' => $state ,
- 'response_type' => $responseType ,
+ 'client' => $client ,
+ 'redirect_uri' => $redirectUri ,
+ 'state' => $state ,
+ 'response_type' => $responseType ,
'scopes' => $scopes
] ;
- }
+ }
@@ -335,26 +335,26 @@
public function newAuthorizeRequest ( $type , $typeId , $authParams = [ ] )
{
- $session = new SessionEntity ( $this -> server ) ;
- $session -> setOwner ( $type , $typeId ) ;
- $session -> associateClient ( $authParams [ 'client' ] ) ;
- $session -> save ( ) ;
+ $session = new SessionEntity ( $this -> server ) ;
+ $session -> setOwner ( $type , $typeId ) ;
+ $session -> associateClient ( $authParams [ 'client' ] ) ;
+ $session -> save ( ) ;
- $authCode = new AuthCodeEntity ( $this -> server ) ;
- $authCode -> setId ( SecureKey :: generate ( ) ) ;
- $authCode -> setRedirectUri ( $authParams [ 'redirect_uri' ] ) ;
- $authCode -> setExpireTime ( time ( ) + $this -> authTokenTTL ) ;
+ $authCode = new AuthCodeEntity ( $this -> server ) ;
+ $authCode -> setId ( SecureKey :: generate ( ) ) ;
+ $authCode -> setRedirectUri ( $authParams [ 'redirect_uri' ] ) ;
+ $authCode -> setExpireTime ( time ( ) + $this -> authTokenTTL ) ;
foreach ( $authParams [ 'scopes' ] as $scope ) {
- $authCode -> associateScope ( $scope ) ;
- }
+ $authCode -> associateScope ( $scope ) ;
+ }
- $authCode -> setSession ( $session ) ;
- $authCode -> save ( ) ;
+ $authCode -> setSession ( $session ) ;
+ $authCode -> save ( ) ;
- return $authCode -> generateRedirectUri ( $authParams [ 'state' ] ) ;
- }
+ return $authCode -> generateRedirectUri ( $authParams [ 'state' ] ) ;
+ }
@@ -366,100 +366,100 @@
public function completeFlow ( )
{
- $clientId = $this -> server -> getRequest ( ) -> request -> get ( 'client_id' , $this -> server -> getRequest ( ) -> getUser ( ) ) ;
- if ( is_null ( $clientId ) ) {
- throw new Exception \ InvalidRequestException ( 'client_id' ) ;
- }
+ $clientId = $this -> server -> getRequest ( ) -> request -> get ( 'client_id' , $this -> server -> getRequest ( ) -> getUser ( ) ) ;
+ if ( is_null ( $clientId ) ) {
+ throw new Exception \ InvalidRequestException ( 'client_id' ) ;
+ }
- $clientSecret = $this -> server -> getRequest ( ) -> request -> get ( 'client_secret' ,
- $this -> server -> getRequest ( ) -> getPassword ( ) ) ;
- if ( is_null ( $clientSecret ) ) {
- throw new Exception \ InvalidRequestException ( 'client_secret' ) ;
- }
+ $clientSecret = $this -> server -> getRequest ( ) -> request -> get ( 'client_secret' ,
+ $this -> server -> getRequest ( ) -> getPassword ( ) ) ;
+ if ( is_null ( $clientSecret ) ) {
+ throw new Exception \ InvalidRequestException ( 'client_secret' ) ;
+ }
- $redirectUri = $this -> server -> getRequest ( ) -> request -> get ( 'redirect_uri' , null ) ;
- if ( is_null ( $redirectUri ) ) {
- throw new Exception \ InvalidRequestException ( 'redirect_uri' ) ;
- }
+ $redirectUri = $this -> server -> getRequest ( ) -> request -> get ( 'redirect_uri' , null ) ;
+ if ( is_null ( $redirectUri ) ) {
+ throw new Exception \ InvalidRequestException ( 'redirect_uri' ) ;
+ }
$client = $this -> server -> getClientStorage ( ) -> get (
- $clientId ,
- $clientSecret ,
- $redirectUri ,
+ $clientId ,
+ $clientSecret ,
+ $redirectUri ,
$this -> getIdentifier ( )
- ) ;
+ ) ;
if ( ( $client instanceof ClientEntity ) === false ) {
- $this -> server -> getEventEmitter ( ) -> emit ( new Event \ ClientAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
- throw new Exception \ InvalidClientException ( ) ;
- }
+ $this -> server -> getEventEmitter ( ) -> emit ( new Event \ ClientAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
+ throw new Exception \ InvalidClientException ( ) ;
+ }
- $authCode = $this -> server -> getRequest ( ) -> request -> get ( 'code' , null ) ;
- if ( is_null ( $authCode ) ) {
- throw new Exception \ InvalidRequestException ( 'code' ) ;
- }
+ $authCode = $this -> server -> getRequest ( ) -> request -> get ( 'code' , null ) ;
+ if ( is_null ( $authCode ) ) {
+ throw new Exception \ InvalidRequestException ( 'code' ) ;
+ }
- $code = $this -> server -> getAuthCodeStorage ( ) -> get ( $authCode ) ;
+ $code = $this -> server -> getAuthCodeStorage ( ) -> get ( $authCode ) ;
if ( ( $code instanceof AuthCodeEntity ) === false ) {
- throw new Exception \ InvalidRequestException ( 'code' ) ;
- }
+ throw new Exception \ InvalidRequestException ( 'code' ) ;
+ }
- if ( $code -> isExpired ( ) === true ) {
- throw new Exception \ InvalidRequestException ( 'code' ) ;
- }
+ if ( $code -> isExpired ( ) === true ) {
+ throw new Exception \ InvalidRequestException ( 'code' ) ;
+ }
- if ( $code -> getRedirectUri ( ) !== $redirectUri ) {
- throw new Exception \ InvalidRequestException ( 'redirect_uri' ) ;
- }
+ if ( $code -> getRedirectUri ( ) !== $redirectUri ) {
+ throw new Exception \ InvalidRequestException ( 'redirect_uri' ) ;
+ }
- $session = $code -> getSession ( ) ;
- $session -> associateClient ( $client ) ;
+ $session = $code -> getSession ( ) ;
+ $session -> associateClient ( $client ) ;
- $authCodeScopes = $code -> getScopes ( ) ;
+ $authCodeScopes = $code -> getScopes ( ) ;
- $accessToken = new AccessTokenEntity ( $this -> server ) ;
- $accessToken -> setId ( SecureKey :: generate ( ) ) ;
- $accessToken -> setExpireTime ( $this -> getAccessTokenTTL ( ) + time ( ) ) ;
+ $accessToken = new AccessTokenEntity ( $this -> server ) ;
+ $accessToken -> setId ( SecureKey :: generate ( ) ) ;
+ $accessToken -> setExpireTime ( $this -> getAccessTokenTTL ( ) + time ( ) ) ;
- foreach ( $authCodeScopes as $authCodeScope ) {
- $session -> associateScope ( $authCodeScope ) ;
- }
+ foreach ( $authCodeScopes as $authCodeScope ) {
+ $session -> associateScope ( $authCodeScope ) ;
+ }
foreach ( $session -> getScopes ( ) as $scope ) {
- $accessToken -> associateScope ( $scope ) ;
- }
+ $accessToken -> associateScope ( $scope ) ;
+ }
- $this -> server -> getTokenType ( ) -> setSession ( $session ) ;
- $this -> server -> getTokenType ( ) -> setParam ( 'access_token' , $accessToken -> getId ( ) ) ;
- $this -> server -> getTokenType ( ) -> setParam ( 'expires_in' , $this -> getAccessTokenTTL ( ) ) ;
+ $this -> server -> getTokenType ( ) -> setSession ( $session ) ;
+ $this -> server -> getTokenType ( ) -> setParam ( 'access_token' , $accessToken -> getId ( ) ) ;
+ $this -> server -> getTokenType ( ) -> setParam ( 'expires_in' , $this -> getAccessTokenTTL ( ) ) ;
- if ( $this -> server -> hasGrantType ( 'refresh_token' ) ) {
- $refreshToken = new RefreshTokenEntity ( $this -> server ) ;
- $refreshToken -> setId ( SecureKey :: generate ( ) ) ;
- $refreshToken -> setExpireTime ( $this -> server -> getGrantType ( 'refresh_token' ) -> getRefreshTokenTTL ( ) + time ( ) ) ;
- $this -> server -> getTokenType ( ) -> setParam ( 'refresh_token' , $refreshToken -> getId ( ) ) ;
- }
+ if ( $this -> server -> hasGrantType ( 'refresh_token' ) ) {
+ $refreshToken = new RefreshTokenEntity ( $this -> server ) ;
+ $refreshToken -> setId ( SecureKey :: generate ( ) ) ;
+ $refreshToken -> setExpireTime ( $this -> server -> getGrantType ( 'refresh_token' ) -> getRefreshTokenTTL ( ) + time ( ) ) ;
+ $this -> server -> getTokenType ( ) -> setParam ( 'refresh_token' , $refreshToken -> getId ( ) ) ;
+ }
- $code -> expire ( ) ;
+ $code -> expire ( ) ;
- $accessToken -> setSession ( $session ) ;
- $accessToken -> save ( ) ;
+ $accessToken -> setSession ( $session ) ;
+ $accessToken -> save ( ) ;
- if ( isset ( $refreshToken ) && $this -> server -> hasGrantType ( 'refresh_token' ) ) {
- $refreshToken -> setAccessToken ( $accessToken ) ;
- $refreshToken -> save ( ) ;
- }
+ if ( isset ( $refreshToken ) && $this -> server -> hasGrantType ( 'refresh_token' ) ) {
+ $refreshToken -> setAccessToken ( $accessToken ) ;
+ $refreshToken -> save ( ) ;
+ }
- return $this -> server -> getTokenType ( ) -> generateResponse ( ) ;
- }
+ return $this -> server -> getTokenType ( ) -> generateResponse ( ) ;
+ }
}
@@ -473,7 +473,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Grant/ClientCredentialsGrant.php.html b/master/Grant/ClientCredentialsGrant.php.html
index ed622c7d..733fc5ba 100644
--- a/master/Grant/ClientCredentialsGrant.php.html
+++ b/master/Grant/ClientCredentialsGrant.php.html
@@ -42,82 +42,82 @@
- Total
-
-
-
0.00% covered (danger)
+
Total
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
0.00% covered (danger)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
CRAP
-
-
-
72.73% covered (warning)
+
100.00%
+
1 / 1
+
CRAP
+
+
+ 100.00% covered (success)
-
72.73%
-
8 / 11
+
100.00%
+
37 / 37
- ClientCredentialsGrant
-
-
-
0.00% covered (danger)
+
ClientCredentialsGrant
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
0.00% covered (danger)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
6.73
-
-
-
72.73% covered (warning)
+
100.00%
+
1 / 1
+
6
+
+
+ 100.00% covered (success)
-
72.73%
-
8 / 11
+
100.00%
+
37 / 37
- completeFlow()
-
-
-
0.00% covered (danger)
+
completeFlow()
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
6.73
-
-
-
72.73% covered (warning)
+
100.00%
+
1 / 1
+
6
+
+
+ 100.00% covered (success)
-
72.73%
-
8 / 11
+
100.00%
+
37 / 37
@@ -188,64 +188,64 @@
public function completeFlow ( )
{
- $clientId = $this -> server -> getRequest ( ) -> request -> get ( 'client_id' , $this -> server -> getRequest ( ) -> getUser ( ) ) ;
- if ( is_null ( $clientId ) ) {
- throw new Exception \ InvalidRequestException ( 'client_id' ) ;
- }
+ $clientId = $this -> server -> getRequest ( ) -> request -> get ( 'client_id' , $this -> server -> getRequest ( ) -> getUser ( ) ) ;
+ if ( is_null ( $clientId ) ) {
+ throw new Exception \ InvalidRequestException ( 'client_id' ) ;
+ }
- $clientSecret = $this -> server -> getRequest ( ) -> request -> get ( 'client_secret' ,
- $this -> server -> getRequest ( ) -> getPassword ( ) ) ;
- if ( is_null ( $clientSecret ) ) {
- throw new Exception \ InvalidRequestException ( 'client_secret' ) ;
- }
+ $clientSecret = $this -> server -> getRequest ( ) -> request -> get ( 'client_secret' ,
+ $this -> server -> getRequest ( ) -> getPassword ( ) ) ;
+ if ( is_null ( $clientSecret ) ) {
+ throw new Exception \ InvalidRequestException ( 'client_secret' ) ;
+ }
$client = $this -> server -> getClientStorage ( ) -> get (
- $clientId ,
- $clientSecret ,
+ $clientId ,
+ $clientSecret ,
null ,
$this -> getIdentifier ( )
- ) ;
+ ) ;
if ( ( $client instanceof ClientEntity ) === false ) {
- $this -> server -> getEventEmitter ( ) -> emit ( new Event \ ClientAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
- throw new Exception \ InvalidClientException ( ) ;
- }
+ $this -> server -> getEventEmitter ( ) -> emit ( new Event \ ClientAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
+ throw new Exception \ InvalidClientException ( ) ;
+ }
- $scopeParam = $this -> server -> getRequest ( ) -> request -> get ( 'scope' , '' ) ;
- $scopes = $this -> validateScopes ( $scopeParam , $client ) ;
+ $scopeParam = $this -> server -> getRequest ( ) -> request -> get ( 'scope' , '' ) ;
+ $scopes = $this -> validateScopes ( $scopeParam , $client ) ;
- $session = new SessionEntity ( $this -> server ) ;
- $session -> setOwner ( 'client' , $client -> getId ( ) ) ;
- $session -> associateClient ( $client ) ;
+ $session = new SessionEntity ( $this -> server ) ;
+ $session -> setOwner ( 'client' , $client -> getId ( ) ) ;
+ $session -> associateClient ( $client ) ;
- $accessToken = new AccessTokenEntity ( $this -> server ) ;
- $accessToken -> setId ( SecureKey :: generate ( ) ) ;
- $accessToken -> setExpireTime ( $this -> getAccessTokenTTL ( ) + time ( ) ) ;
+ $accessToken = new AccessTokenEntity ( $this -> server ) ;
+ $accessToken -> setId ( SecureKey :: generate ( ) ) ;
+ $accessToken -> setExpireTime ( $this -> getAccessTokenTTL ( ) + time ( ) ) ;
- foreach ( $scopes as $scope ) {
- $session -> associateScope ( $scope ) ;
- }
+ foreach ( $scopes as $scope ) {
+ $session -> associateScope ( $scope ) ;
+ }
foreach ( $session -> getScopes ( ) as $scope ) {
- $accessToken -> associateScope ( $scope ) ;
- }
+ $accessToken -> associateScope ( $scope ) ;
+ }
- $session -> save ( ) ;
- $accessToken -> setSession ( $session ) ;
- $accessToken -> save ( ) ;
+ $session -> save ( ) ;
+ $accessToken -> setSession ( $session ) ;
+ $accessToken -> save ( ) ;
- $this -> server -> getTokenType ( ) -> setSession ( $session ) ;
- $this -> server -> getTokenType ( ) -> setParam ( 'access_token' , $accessToken -> getId ( ) ) ;
- $this -> server -> getTokenType ( ) -> setParam ( 'expires_in' , $this -> getAccessTokenTTL ( ) ) ;
+ $this -> server -> getTokenType ( ) -> setSession ( $session ) ;
+ $this -> server -> getTokenType ( ) -> setParam ( 'access_token' , $accessToken -> getId ( ) ) ;
+ $this -> server -> getTokenType ( ) -> setParam ( 'expires_in' , $this -> getAccessTokenTTL ( ) ) ;
- return $this -> server -> getTokenType ( ) -> generateResponse ( ) ;
- }
+ return $this -> server -> getTokenType ( ) -> generateResponse ( ) ;
+ }
}
@@ -259,7 +259,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Grant/GrantTypeInterface.php.html b/master/Grant/GrantTypeInterface.php.html
index d73d031a..8cd51368 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Grant/PasswordGrant.php.html b/master/Grant/PasswordGrant.php.html
index e19c6857..fa04ee5a 100644
--- a/master/Grant/PasswordGrant.php.html
+++ b/master/Grant/PasswordGrant.php.html
@@ -42,61 +42,61 @@
- Total
-
-
-
0.00% covered (danger)
+
Total
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
66.67% covered (warning)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
-
CRAP
-
-
-
76.92% covered (warning)
+
100.00%
+
3 / 3
+
CRAP
+
+
+ 100.00% covered (success)
-
76.92%
-
10 / 13
+
100.00%
+
62 / 62
- PasswordGrant
-
-
-
0.00% covered (danger)
+
PasswordGrant
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
66.67% covered (warning)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
66.67%
-
2 / 3
-
17.77
-
-
-
76.92% covered (warning)
+
100.00%
+
3 / 3
+
15
+
+
+ 100.00% covered (success)
-
76.92%
-
10 / 13
+
100.00%
+
62 / 62
@@ -117,7 +117,7 @@
100.00%
- 1 / 1
+ 2 / 2
@@ -138,28 +138,28 @@
100.00%
- 1 / 1
+ 3 / 3
- completeFlow()
-
-
-
0.00% covered (danger)
+
completeFlow()
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
13.45
-
-
-
72.73% covered (warning)
+
100.00%
+
1 / 1
+
11
+
+
+ 100.00% covered (success)
-
72.73%
-
8 / 11
+
100.00%
+
57 / 57
@@ -231,7 +231,7 @@
public function setVerifyCredentialsCallback ( callable $callback )
{
$this -> callback = $callback ;
- }
+ }
@@ -242,12 +242,12 @@
protected function getVerifyCredentialsCallback ( )
{
- if ( is_null ( $this -> callback ) || ! is_callable ( $this -> callback ) ) {
- throw new Exception \ ServerErrorException ( 'Null or non-callable callback set on Password grant' ) ;
- }
+ if ( is_null ( $this -> callback ) || ! is_callable ( $this -> callback ) ) {
+ throw new Exception \ ServerErrorException ( 'Null or non-callable callback set on Password grant' ) ;
+ }
return $this -> callback ;
- }
+ }
@@ -259,95 +259,95 @@
public function completeFlow ( )
{
- $clientId = $this -> server -> getRequest ( ) -> request -> get ( 'client_id' , $this -> server -> getRequest ( ) -> getUser ( ) ) ;
- if ( is_null ( $clientId ) ) {
- throw new Exception \ InvalidRequestException ( 'client_id' ) ;
- }
+ $clientId = $this -> server -> getRequest ( ) -> request -> get ( 'client_id' , $this -> server -> getRequest ( ) -> getUser ( ) ) ;
+ if ( is_null ( $clientId ) ) {
+ throw new Exception \ InvalidRequestException ( 'client_id' ) ;
+ }
- $clientSecret = $this -> server -> getRequest ( ) -> request -> get ( 'client_secret' ,
- $this -> server -> getRequest ( ) -> getPassword ( ) ) ;
- if ( is_null ( $clientSecret ) ) {
- throw new Exception \ InvalidRequestException ( 'client_secret' ) ;
- }
+ $clientSecret = $this -> server -> getRequest ( ) -> request -> get ( 'client_secret' ,
+ $this -> server -> getRequest ( ) -> getPassword ( ) ) ;
+ if ( is_null ( $clientSecret ) ) {
+ throw new Exception \ InvalidRequestException ( 'client_secret' ) ;
+ }
$client = $this -> server -> getClientStorage ( ) -> get (
- $clientId ,
- $clientSecret ,
+ $clientId ,
+ $clientSecret ,
null ,
$this -> getIdentifier ( )
- ) ;
+ ) ;
if ( ( $client instanceof ClientEntity ) === false ) {
- $this -> server -> getEventEmitter ( ) -> emit ( new Event \ ClientAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
- throw new Exception \ InvalidClientException ( ) ;
- }
+ $this -> server -> getEventEmitter ( ) -> emit ( new Event \ ClientAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
+ throw new Exception \ InvalidClientException ( ) ;
+ }
- $username = $this -> server -> getRequest ( ) -> request -> get ( 'username' , null ) ;
- if ( is_null ( $username ) ) {
- throw new Exception \ InvalidRequestException ( 'username' ) ;
- }
+ $username = $this -> server -> getRequest ( ) -> request -> get ( 'username' , null ) ;
+ if ( is_null ( $username ) ) {
+ throw new Exception \ InvalidRequestException ( 'username' ) ;
+ }
- $password = $this -> server -> getRequest ( ) -> request -> get ( 'password' , null ) ;
- if ( is_null ( $password ) ) {
- throw new Exception \ InvalidRequestException ( 'password' ) ;
- }
+ $password = $this -> server -> getRequest ( ) -> request -> get ( 'password' , null ) ;
+ if ( is_null ( $password ) ) {
+ throw new Exception \ InvalidRequestException ( 'password' ) ;
+ }
- $userId = call_user_func ( $this -> getVerifyCredentialsCallback ( ) , $username , $password ) ;
+ $userId = call_user_func ( $this -> getVerifyCredentialsCallback ( ) , $username , $password ) ;
if ( $userId === false ) {
- $this -> server -> getEventEmitter ( ) -> emit ( new Event \ UserAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
- throw new Exception \ InvalidCredentialsException ( ) ;
- }
+ $this -> server -> getEventEmitter ( ) -> emit ( new Event \ UserAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
+ throw new Exception \ InvalidCredentialsException ( ) ;
+ }
- $scopeParam = $this -> server -> getRequest ( ) -> request -> get ( 'scope' , '' ) ;
- $scopes = $this -> validateScopes ( $scopeParam , $client ) ;
+ $scopeParam = $this -> server -> getRequest ( ) -> request -> get ( 'scope' , '' ) ;
+ $scopes = $this -> validateScopes ( $scopeParam , $client ) ;
- $session = new SessionEntity ( $this -> server ) ;
- $session -> setOwner ( 'user' , $userId ) ;
- $session -> associateClient ( $client ) ;
+ $session = new SessionEntity ( $this -> server ) ;
+ $session -> setOwner ( 'user' , $userId ) ;
+ $session -> associateClient ( $client ) ;
- $accessToken = new AccessTokenEntity ( $this -> server ) ;
- $accessToken -> setId ( SecureKey :: generate ( ) ) ;
- $accessToken -> setExpireTime ( $this -> getAccessTokenTTL ( ) + time ( ) ) ;
+ $accessToken = new AccessTokenEntity ( $this -> server ) ;
+ $accessToken -> setId ( SecureKey :: generate ( ) ) ;
+ $accessToken -> setExpireTime ( $this -> getAccessTokenTTL ( ) + time ( ) ) ;
- foreach ( $scopes as $scope ) {
- $session -> associateScope ( $scope ) ;
- }
+ foreach ( $scopes as $scope ) {
+ $session -> associateScope ( $scope ) ;
+ }
foreach ( $session -> getScopes ( ) as $scope ) {
- $accessToken -> associateScope ( $scope ) ;
- }
+ $accessToken -> associateScope ( $scope ) ;
+ }
- $this -> server -> getTokenType ( ) -> setSession ( $session ) ;
- $this -> server -> getTokenType ( ) -> setParam ( 'access_token' , $accessToken -> getId ( ) ) ;
- $this -> server -> getTokenType ( ) -> setParam ( 'expires_in' , $this -> getAccessTokenTTL ( ) ) ;
+ $this -> server -> getTokenType ( ) -> setSession ( $session ) ;
+ $this -> server -> getTokenType ( ) -> setParam ( 'access_token' , $accessToken -> getId ( ) ) ;
+ $this -> server -> getTokenType ( ) -> setParam ( 'expires_in' , $this -> getAccessTokenTTL ( ) ) ;
- if ( $this -> server -> hasGrantType ( 'refresh_token' ) ) {
- $refreshToken = new RefreshTokenEntity ( $this -> server ) ;
- $refreshToken -> setId ( SecureKey :: generate ( ) ) ;
- $refreshToken -> setExpireTime ( $this -> server -> getGrantType ( 'refresh_token' ) -> getRefreshTokenTTL ( ) + time ( ) ) ;
- $this -> server -> getTokenType ( ) -> setParam ( 'refresh_token' , $refreshToken -> getId ( ) ) ;
- }
+ if ( $this -> server -> hasGrantType ( 'refresh_token' ) ) {
+ $refreshToken = new RefreshTokenEntity ( $this -> server ) ;
+ $refreshToken -> setId ( SecureKey :: generate ( ) ) ;
+ $refreshToken -> setExpireTime ( $this -> server -> getGrantType ( 'refresh_token' ) -> getRefreshTokenTTL ( ) + time ( ) ) ;
+ $this -> server -> getTokenType ( ) -> setParam ( 'refresh_token' , $refreshToken -> getId ( ) ) ;
+ }
- $session -> save ( ) ;
- $accessToken -> setSession ( $session ) ;
- $accessToken -> save ( ) ;
+ $session -> save ( ) ;
+ $accessToken -> setSession ( $session ) ;
+ $accessToken -> save ( ) ;
- if ( $this -> server -> hasGrantType ( 'refresh_token' ) ) {
- $refreshToken -> setAccessToken ( $accessToken ) ;
- $refreshToken -> save ( ) ;
- }
+ if ( $this -> server -> hasGrantType ( 'refresh_token' ) ) {
+ $refreshToken -> setAccessToken ( $accessToken ) ;
+ $refreshToken -> save ( ) ;
+ }
- return $this -> server -> getTokenType ( ) -> generateResponse ( ) ;
- }
+ return $this -> server -> getTokenType ( ) -> generateResponse ( ) ;
+ }
}
@@ -361,7 +361,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Grant/RefreshTokenGrant.php.html b/master/Grant/RefreshTokenGrant.php.html
index 2c483309..65f8f221 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 ;
- }
+ }
public function completeFlow ( )
{
- $clientId = $this -> server -> getRequest ( ) -> request -> get ( 'client_id' , $this -> server -> getRequest ( ) -> getUser ( ) ) ;
- if ( is_null ( $clientId ) ) {
- throw new Exception \ InvalidRequestException ( 'client_id' ) ;
- }
+ $clientId = $this -> server -> getRequest ( ) -> request -> get ( 'client_id' , $this -> server -> getRequest ( ) -> getUser ( ) ) ;
+ if ( is_null ( $clientId ) ) {
+ throw new Exception \ InvalidRequestException ( 'client_id' ) ;
+ }
- $clientSecret = $this -> server -> getRequest ( ) -> request -> get ( 'client_secret' ,
- $this -> server -> getRequest ( ) -> getPassword ( ) ) ;
- if ( is_null ( $clientSecret ) ) {
- throw new Exception \ InvalidRequestException ( 'client_secret' ) ;
- }
+ $clientSecret = $this -> server -> getRequest ( ) -> request -> get ( 'client_secret' ,
+ $this -> server -> getRequest ( ) -> getPassword ( ) ) ;
+ if ( is_null ( $clientSecret ) ) {
+ throw new Exception \ InvalidRequestException ( 'client_secret' ) ;
+ }
$client = $this -> server -> getClientStorage ( ) -> get (
- $clientId ,
- $clientSecret ,
+ $clientId ,
+ $clientSecret ,
null ,
$this -> getIdentifier ( )
- ) ;
+ ) ;
if ( ( $client instanceof ClientEntity ) === false ) {
- $this -> server -> getEventEmitter ( ) -> emit ( new Event \ ClientAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
- throw new Exception \ InvalidClientException ( ) ;
- }
+ $this -> server -> getEventEmitter ( ) -> emit ( new Event \ ClientAuthenticationFailedEvent ( $this -> server -> getRequest ( ) ) ) ;
+ throw new Exception \ InvalidClientException ( ) ;
+ }
- $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' ) ;
+ }
- $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 ( ) ;
+ }
- if ( $oldRefreshToken -> isExpired ( ) === true ) {
- throw new Exception \ InvalidRefreshException ( ) ;
- }
+ if ( $oldRefreshToken -> isExpired ( ) === true ) {
+ throw new Exception \ InvalidRefreshException ( ) ;
+ }
- $oldAccessToken = $oldRefreshToken -> getAccessToken ( ) ;
+ $oldAccessToken = $oldRefreshToken -> getAccessToken ( ) ;
- $session = $oldAccessToken -> getSession ( ) ;
- $scopes = $this -> formatScopes ( $session -> getScopes ( ) ) ;
+ $session = $oldAccessToken -> getSession ( ) ;
+ $scopes = $this -> formatScopes ( $session -> getScopes ( ) ) ;
- $requestedScopesString = $this -> server -> getRequest ( ) -> request -> get ( 'scope' , '' ) ;
- $requestedScopes = $this -> validateScopes ( $requestedScopesString , $client ) ;
+ $requestedScopesString = $this -> server -> getRequest ( ) -> request -> get ( 'scope' , '' ) ;
+ $requestedScopes = $this -> validateScopes ( $requestedScopesString , $client ) ;
- if ( count ( $requestedScopes ) === 0 ) {
+ if ( count ( $requestedScopes ) === 0 ) {
$newScopes = $scopes ;
- } else {
+ } else {
- foreach ( $requestedScopes as $requestedScope ) {
- if ( ! isset ( $scopes [ $requestedScope -> getId ( ) ] ) ) {
- throw new Exception \ InvalidScopeException ( $requestedScope -> getId ( ) ) ;
- }
- }
+ foreach ( $requestedScopes as $requestedScope ) {
+ if ( ! isset ( $scopes [ $requestedScope -> getId ( ) ] ) ) {
+ throw new Exception \ InvalidScopeException ( $requestedScope -> getId ( ) ) ;
+ }
+ }
$newScopes = $requestedScopes ;
- }
+ }
- $newAccessToken = new AccessTokenEntity ( $this -> server ) ;
- $newAccessToken -> setId ( SecureKey :: generate ( ) ) ;
- $newAccessToken -> setExpireTime ( $this -> getAccessTokenTTL ( ) + time ( ) ) ;
- $newAccessToken -> setSession ( $session ) ;
+ $newAccessToken = new AccessTokenEntity ( $this -> server ) ;
+ $newAccessToken -> setId ( SecureKey :: generate ( ) ) ;
+ $newAccessToken -> setExpireTime ( $this -> getAccessTokenTTL ( ) + time ( ) ) ;
+ $newAccessToken -> setSession ( $session ) ;
- foreach ( $newScopes as $newScope ) {
- $newAccessToken -> associateScope ( $newScope ) ;
- }
+ foreach ( $newScopes as $newScope ) {
+ $newAccessToken -> associateScope ( $newScope ) ;
+ }
- $oldAccessToken -> expire ( ) ;
- $newAccessToken -> save ( ) ;
+ $oldAccessToken -> expire ( ) ;
+ $newAccessToken -> save ( ) ;
- $this -> server -> getTokenType ( ) -> setSession ( $session ) ;
- $this -> server -> getTokenType ( ) -> setParam ( 'access_token' , $newAccessToken -> getId ( ) ) ;
- $this -> server -> getTokenType ( ) -> setParam ( 'expires_in' , $this -> getAccessTokenTTL ( ) ) ;
+ $this -> server -> getTokenType ( ) -> setSession ( $session ) ;
+ $this -> server -> getTokenType ( ) -> setParam ( 'access_token' , $newAccessToken -> getId ( ) ) ;
+ $this -> server -> getTokenType ( ) -> setParam ( 'expires_in' , $this -> getAccessTokenTTL ( ) ) ;
- $oldRefreshToken -> expire ( ) ;
+ $oldRefreshToken -> expire ( ) ;
- $newRefreshToken = new RefreshTokenEntity ( $this -> server ) ;
- $newRefreshToken -> setId ( SecureKey :: generate ( ) ) ;
- $newRefreshToken -> setExpireTime ( $this -> getRefreshTokenTTL ( ) + time ( ) ) ;
- $newRefreshToken -> setAccessToken ( $newAccessToken ) ;
- $newRefreshToken -> save ( ) ;
+ $newRefreshToken = new RefreshTokenEntity ( $this -> server ) ;
+ $newRefreshToken -> setId ( SecureKey :: generate ( ) ) ;
+ $newRefreshToken -> setExpireTime ( $this -> getRefreshTokenTTL ( ) + time ( ) ) ;
+ $newRefreshToken -> setAccessToken ( $newAccessToken ) ;
+ $newRefreshToken -> save ( ) ;
- $this -> server -> getTokenType ( ) -> setParam ( 'refresh_token' , $newRefreshToken -> getId ( ) ) ;
+ $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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Grant/dashboard.html b/master/Grant/dashboard.html
index fe67f001..c120932a 100644
--- a/master/Grant/dashboard.html
+++ b/master/Grant/dashboard.html
@@ -59,8 +59,6 @@
- ClientCredentialsGrant 72%
- PasswordGrant 76%
@@ -77,8 +75,6 @@
- PasswordGrant 17
- ClientCredentialsGrant 6
@@ -116,8 +112,6 @@
- completeFlow 72%
- completeFlow 72%
@@ -134,8 +128,6 @@
- completeFlow 13
- completeFlow 6
@@ -145,7 +137,7 @@
@@ -166,7 +158,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,0,0,3], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,5], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -184,7 +176,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,0,0,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 c74f0d1e..3051b2b4 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
diff --git a/master/ResourceServer.php.html b/master/ResourceServer.php.html
index 8a5f9c45..4dc1a8d6 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 ) ;
- $this -> setTokenType ( new Bearer ( ) ) ;
+ $this -> setTokenType ( new Bearer ( ) ) ;
- parent :: __construct ( ) ;
+ parent :: __construct ( ) ;
return $this ;
- }
+ }
@@ -293,7 +293,7 @@
$this -> tokenKey = $key ;
return $this ;
- }
+ }
@@ -303,7 +303,7 @@
public function getAccessToken ( )
{
return $this -> accessToken ;
- }
+ }
@@ -318,25 +318,25 @@
public function isValidRequest ( $headersOnly = true , $accessToken = null )
{
$accessTokenString = ( $accessToken !== null )
- ? $accessToken
- : $this -> determineAccessToken ( $headersOnly ) ;
+ ? $accessToken
+ : $this -> determineAccessToken ( $headersOnly ) ;
- $this -> accessToken = $this -> getAccessTokenStorage ( ) -> get ( $accessTokenString ) ;
+ $this -> accessToken = $this -> getAccessTokenStorage ( ) -> get ( $accessTokenString ) ;
if ( ! $this -> accessToken instanceof AccessTokenEntity ) {
- throw new Exception \ AccessDeniedException ( ) ;
- }
+ throw new Exception \ AccessDeniedException ( ) ;
+ }
- if ( $this -> accessToken -> isExpired ( ) === true ) {
- throw new Exception \ AccessDeniedException ( ) ;
- }
+ if ( $this -> accessToken -> isExpired ( ) === true ) {
+ throw new Exception \ AccessDeniedException ( ) ;
+ }
return true ;
- }
+ }
@@ -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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Storage/AbstractStorage.php.html b/master/Storage/AbstractStorage.php.html
index c087c33a..66c24c89 100644
--- a/master/Storage/AbstractStorage.php.html
+++ b/master/Storage/AbstractStorage.php.html
@@ -67,7 +67,7 @@
100.00%
- 4 / 4
+ 3 / 3
@@ -96,7 +96,7 @@
100.00%
- 4 / 4
+ 3 / 3
@@ -117,7 +117,7 @@
100.00%
- 3 / 3
+ 2 / 2
@@ -185,7 +185,7 @@
$this -> server = $server ;
return $this ;
- }
+ }
@@ -195,7 +195,7 @@
protected function getServer ( )
{
return $this -> server ;
- }
+ }
}
@@ -209,7 +209,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Storage/AccessTokenInterface.php.html b/master/Storage/AccessTokenInterface.php.html
index e8d3cdad..891e08c9 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Storage/AuthCodeInterface.php.html b/master/Storage/AuthCodeInterface.php.html
index b268ff6f..aceead4c 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Storage/ClientInterface.php.html b/master/Storage/ClientInterface.php.html
index 3e7babed..c882ceaa 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Storage/MacTokenInterface.php.html b/master/Storage/MacTokenInterface.php.html
new file mode 100644
index 00000000..6a10a8a4
--- /dev/null
+++ b/master/Storage/MacTokenInterface.php.html
@@ -0,0 +1,142 @@
+
+
+
+
+ Code Coverage for /home/travis/build/thephpleague/oauth2-server/src/Storage/MacTokenInterface.php
+
+
+
+
+
+
+
+
+
+
+
+
+ Code Coverage
+
+
+
+ Classes and Traits
+ Functions and Methods
+ Lines
+
+
+
+
+ Total
+
+
+
+
+
+
+ CRAP
+
+
+
+
+
+
+
+
+
+
+ <?php
+
+
+
+
+
+
+
+
+
+
+ namespace League \ OAuth2 \ Server \ Storage ;
+
+ use League \ OAuth2 \ Server \ Entity \ AccessTokenEntity ;
+
+
+
+
+ interface MacTokenInterface extends StorageInterface
+ {
+
+
+
+
+
+
+ public function create ( $macKey , $accessToken ) ;
+
+
+
+
+
+
+ public function getByAccessToken ( $accessToken ) ;
+ }
+
+
+
+
+
+
+
+
+
+
+
diff --git a/master/Storage/RefreshTokenInterface.php.html b/master/Storage/RefreshTokenInterface.php.html
index 304b6ad3..a0ba9486 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Storage/ScopeInterface.php.html b/master/Storage/ScopeInterface.php.html
index c5081f88..028413ae 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Storage/SessionInterface.php.html b/master/Storage/SessionInterface.php.html
index 2e5489ac..13fdcd13 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Storage/StorageInterface.php.html b/master/Storage/StorageInterface.php.html
index ec9becfe..4b2110c1 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Storage/dashboard.html b/master/Storage/dashboard.html
index d1ad7b5d..36d8016e 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 885a8937..ccc91b13 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)
@@ -136,6 +136,19 @@
+
+ MacTokenInterface.php
+
+
+
+
+
+
+
+
+
+
+
RefreshTokenInterface.php
@@ -200,7 +213,7 @@
High : 90% to 100%
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/TokenType/AbstractTokenType.php.html b/master/TokenType/AbstractTokenType.php.html
index 70496ff5..f113eced 100644
--- a/master/TokenType/AbstractTokenType.php.html
+++ b/master/TokenType/AbstractTokenType.php.html
@@ -58,7 +58,7 @@
100.00%
- 2 / 2
+ 4 / 4
CRAP
100.00%
- 6 / 6
+ 7 / 7
@@ -96,7 +96,7 @@
100.00%
- 6 / 6
+ 7 / 7
@@ -117,7 +117,7 @@
100.00%
- 3 / 3
+ 2 / 2
@@ -138,7 +138,7 @@
100.00%
- 3 / 3
+ 2 / 2
@@ -152,9 +152,14 @@
100.00%
1 / 1
1
-
-
-
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 2 / 2
@@ -168,9 +173,14 @@
100.00%
1 / 1
2
-
-
-
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
@@ -222,10 +232,10 @@
public function setServer ( AbstractServer $server )
{
-
$this -> server = $server ;
+
$this -> server = $server ;
-
return $this ;
-
}
+
return $this ;
+
}
@@ -235,23 +245,23 @@
$this -> session = $session ;
return $this ;
-
}
+
}
public function setParam ( $key , $value )
{
-
$this -> response [ $key ] = $value ;
-
}
+
$this -> response [ $key ] = $value ;
+
}
public function getParam ( $key )
{
-
return isset ( $this -> response [ $key ] ) ? $this -> response [ $key ] : null ;
-
}
+
return isset ( $this -> response [ $key ] ) ? $this -> response [ $key ] : null ;
+
}
}
@@ -265,7 +275,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/TokenType/Bearer.php.html b/master/TokenType/Bearer.php.html
index 8173f380..4a9bf7cf 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 ;
- }
+ }
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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/TokenType/MAC.php.html b/master/TokenType/MAC.php.html
new file mode 100644
index 00000000..b60feb4e
--- /dev/null
+++ b/master/TokenType/MAC.php.html
@@ -0,0 +1,384 @@
+
+
+
+
+ Code Coverage for /home/travis/build/thephpleague/oauth2-server/src/TokenType/MAC.php
+
+
+
+
+
+
+
+
+
+
+
+
+ Code Coverage
+
+
+
+ Classes and Traits
+ Functions and Methods
+ Lines
+
+
+
+
+ Total
+
+
+ 0.00% covered (danger)
+
+
+
+ 0.00%
+ 0 / 1
+
+
+ 75.00% covered (warning)
+
+
+
+ 75.00%
+ 3 / 4
+ CRAP
+
+
+ 98.21% covered (success)
+
+
+
+ 98.21%
+ 55 / 56
+
+
+
+ MAC
+
+
+ 0.00% covered (danger)
+
+
+
+ 0.00%
+ 0 / 1
+
+
+ 75.00% covered (warning)
+
+
+
+ 75.00%
+ 3 / 4
+ 20
+
+
+ 98.21% covered (success)
+
+
+
+ 98.21%
+ 55 / 56
+
+
+
+ generateResponse()
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+ 1
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 9 / 9
+
+
+
+ determineAccessTokenInHeader(Request $request)
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+ 13
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 7 / 7
+
+
+
+ anonymous function ($param) use (&$params)
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+ 3
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 8 / 8
+
+
+
+ hash_equals($knownString, $userString)
+
+
+ 0.00% covered (danger)
+
+
+
+ 0.00%
+ 0 / 1
+ 3.02
+
+
+ 87.50% covered (warning)
+
+
+
+ 87.50%
+ 7 / 8
+
+
+
+
+
+
+
+ <?php
+
+
+
+
+
+
+
+
+
+
+ namespace League \ OAuth2 \ Server \ TokenType ;
+
+ use League \ OAuth2 \ Server \ Util \ SecureKey ;
+ use Symfony \ Component \ HttpFoundation \ ParameterBag ;
+ use Symfony \ Component \ HttpFoundation \ Request ;
+
+
+
+
+ class MAC extends AbstractTokenType implements TokenTypeInterface
+ {
+
+
+
+ public function generateResponse ( )
+ {
+ $macKey = SecureKey :: generate ( ) ;
+ $this -> server -> getMacStorage ( ) -> create ( $macKey , $this -> getParam ( 'access_token' ) ) ;
+
+ $response = [
+ 'access_token' => $this -> getParam ( 'access_token' ) ,
+ 'token_type' => 'mac' ,
+ 'expires_in' => $this -> getParam ( 'expires_in' ) ,
+ 'mac_key' => $macKey ,
+ 'mac_algorithm' => 'hmac-sha-256' ,
+ ] ;
+
+ return $response ;
+ }
+
+
+
+
+ public function determineAccessTokenInHeader ( Request $request )
+ {
+ if ( $request -> headers -> has ( 'Authorization' ) === false ) {
+ return ;
+ }
+
+ $header = $request -> headers -> get ( 'Authorization' ) ;
+
+ if ( substr ( $header , 0 , 4 ) !== 'MAC ' ) {
+ return ;
+ }
+
+
+ $paramsRaw = explode ( ',' , substr ( $header , 4 ) ) ;
+ $params = new ParameterBag ( ) ;
+
+ array_map ( function ( $param ) use ( & $params ) {
+ $param = trim ( $param ) ;
+
+ preg_match_all ( '/([a-zA-Z]*)="([\w=]*)"/' , $param , $matches ) ;
+
+
+ if ( count ( $matches ) !== 3 ) {
+ return ;
+ }
+
+
+ $key = reset ( $matches [ 1 ] ) ;
+ $value = trim ( reset ( $matches [ 2 ] ) ) ;
+
+ if ( empty ( $value ) ) {
+ return ;
+ }
+
+ $params -> set ( $key , $value ) ;
+ } , $paramsRaw ) ;
+
+
+ if ( $params -> has ( 'id' ) === false || $params -> has ( 'ts' ) === false || $params -> has ( 'nonce' ) === false || $params -> has ( 'mac' ) === false ) {
+ return ;
+ }
+
+ if ( (int) $params -> get ( 'ts' ) !== time ( ) ) {
+ return ;
+ }
+
+ $accessToken = $params -> get ( 'id' ) ;
+ $timestamp = (int) $params -> get ( 'ts' ) ;
+ $nonce = $params -> get ( 'nonce' ) ;
+ $signature = $params -> get ( 'mac' ) ;
+
+
+ $macKey = $this -> server -> getMacStorage ( ) -> getByAccessToken ( $accessToken ) ;
+
+ if ( $macKey === null ) {
+ return ;
+ }
+
+
+ $calculatedSignatureParts = [
+ $timestamp ,
+ $nonce ,
+ strtoupper ( $request -> getMethod ( ) ) ,
+ $request -> getUri ( ) ,
+ $request -> getHost ( ) ,
+ $request -> getPort ( ) ,
+ ] ;
+
+ if ( $params -> has ( 'ext' ) ) {
+ $calculatedSignatureParts [ ] = $params -> get ( 'ext' ) ;
+ }
+
+ $calculatedSignature = base64_encode ( hash_hmac ( 'sha256' , implode ( "\n" , $calculatedSignatureParts ) , $macKey ) ) ;
+
+
+ return ( $this -> hash_equals ( $calculatedSignature , $signature ) ) ? $accessToken : null ;
+ }
+
+
+
+
+
+
+
+ private function hash_equals ( $knownString , $userString )
+ {
+ if ( ! function_exists ( 'hash_equals' ) ) {
+ function hash_equals ( $knownString , $userString )
+ {
+ if ( strlen ( $knownString ) !== strlen ( $userString ) ) {
+ return false ;
+ }
+ $len = strlen ( $knownString ) ;
+ $result = 0 ;
+ for ( $i = 0 ; $i < $len ; $i ++ ) {
+ $result |= ( ord ( $knownString [ $i ] ) ^ ord ( $userString [ $i ] ) ) ;
+ }
+
+ return 0 === $result ;
+ }
+ }
+
+ return hash_equals ( $knownString , $userString ) ;
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
diff --git a/master/TokenType/TokenTypeInterface.php.html b/master/TokenType/TokenTypeInterface.php.html
index 24d6af5c..87ae6115 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/TokenType/dashboard.html b/master/TokenType/dashboard.html
index c782a8ca..2c86f337 100644
--- a/master/TokenType/dashboard.html
+++ b/master/TokenType/dashboard.html
@@ -112,6 +112,7 @@
+ hash_equals 87%
@@ -128,6 +129,7 @@
+ hash_equals 3
@@ -137,7 +139,7 @@
@@ -158,7 +160,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,2], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,1,2], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -176,7 +178,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,6], "Method Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,0,9], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -227,7 +229,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[100,5,"AbstractTokenType<\/a>"],[100,4," Bearer<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[100,5," AbstractTokenType<\/a>"],[100,4," Bearer<\/a>"],[98.214285714286,20," MAC<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -252,7 +254,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[100,1," AbstractTokenType::setServer<\/a>"],[100,1," AbstractTokenType::setSession<\/a>"],[100,1," AbstractTokenType::setParam<\/a>"],[100,2," AbstractTokenType::getParam<\/a>"],[100,2," Bearer::generateResponse<\/a>"],[100,2," Bearer::determineAccessTokenInHeader<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,1," AbstractTokenType::setServer<\/a>"],[100,1," AbstractTokenType::setSession<\/a>"],[100,1," AbstractTokenType::setParam<\/a>"],[100,2," AbstractTokenType::getParam<\/a>"],[100,2," Bearer::generateResponse<\/a>"],[100,2," Bearer::determineAccessTokenInHeader<\/a>"],[100,1," MAC::generateResponse<\/a>"],[100,13," MAC::determineAccessTokenInHeader<\/a>"],[100,3," MAC::anonymous function<\/a>"],[87.5,3," MAC::hash_equals<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/TokenType/index.html b/master/TokenType/index.html
index af55f751..cc1a2c4d 100644
--- a/master/TokenType/index.html
+++ b/master/TokenType/index.html
@@ -44,29 +44,29 @@
Total
-
-
100.00% covered (success)
+
+ 98.65% covered (success)
- 100.00%
- 12 / 12
+ 98.65%
+ 73 / 74
-
-
100.00% covered (success)
+
+ 90.00% covered (success)
- 100.00%
- 4 / 4
-
-
-
100.00% covered (success)
+
90.00%
+
9 / 10
+
+
+ 66.67% covered (warning)
-
100.00%
-
2 / 2
+
66.67%
+
2 / 3
@@ -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)
@@ -125,6 +125,34 @@
1 / 1
+
+ MAC.php
+
+
+ 98.21% covered (success)
+
+
+
+ 98.21%
+ 55 / 56
+
+
+ 75.00% covered (warning)
+
+
+
+ 75.00%
+ 3 / 4
+
+
+ 0.00% covered (danger)
+
+
+
+ 0.00%
+ 0 / 1
+
+
TokenTypeInterface.php
@@ -150,7 +178,7 @@
High : 90% to 100%
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html b/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html
index d5b8ea0c..f1f1a8b0 100644
--- a/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html
+++ b/master/Util/KeyAlgorithm/DefaultAlgorithm.php.html
@@ -43,82 +43,82 @@
- Total
-
-
-
0.00% covered (danger)
+
Total
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
0.00% covered (danger)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
CRAP
-
-
-
33.33% covered (danger)
+
100.00%
+
1 / 1
+
CRAP
+
+
+ 100.00% covered (success)
-
33.33%
-
2 / 6
+
100.00%
+
6 / 6
- DefaultAlgorithm
-
-
-
0.00% covered (danger)
+
DefaultAlgorithm
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
0.00% covered (danger)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
8.74
-
-
-
33.33% covered (danger)
+
100.00%
+
1 / 1
+
4
+
+
+ 100.00% covered (success)
-
33.33%
-
2 / 6
+
100.00%
+
6 / 6
- generate($len = 40)
-
-
-
0.00% covered (danger)
+
generate($len = 40)
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
8.74
-
-
-
33.33% covered (danger)
+
100.00%
+
1 / 1
+
4
+
+
+ 100.00% covered (success)
-
33.33%
-
2 / 6
+
100.00%
+
6 / 6
@@ -146,21 +146,21 @@
public function generate ( $len = 40 )
{
- $stripped = '' ;
+ $stripped = '' ;
do {
- $bytes = openssl_random_pseudo_bytes ( $len , $strong ) ;
+ $bytes = openssl_random_pseudo_bytes ( $len , $strong ) ;
- if ( $bytes === false || $strong === false ) {
+ if ( $bytes === false || $strong === false ) {
throw new \ Exception ( 'Error Generating Key' ) ;
- }
- $stripped .= str_replace ( [ '/' , '+' , '=' ] , '' , base64_encode ( $bytes ) ) ;
- } while ( strlen ( $stripped ) < $len ) ;
+ }
+ $stripped .= str_replace ( [ '/' , '+' , '=' ] , '' , base64_encode ( $bytes ) ) ;
+ } while ( strlen ( $stripped ) < $len ) ;
- return substr ( $stripped , 0 , $len ) ;
- }
+ return substr ( $stripped , 0 , $len ) ;
+ }
}
@@ -174,7 +174,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html b/master/Util/KeyAlgorithm/KeyAlgorithmInterface.php.html
index 86dd00c3..938fa4ef 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Util/KeyAlgorithm/dashboard.html b/master/Util/KeyAlgorithm/dashboard.html
index 353ed7a8..f8472539 100644
--- a/master/Util/KeyAlgorithm/dashboard.html
+++ b/master/Util/KeyAlgorithm/dashboard.html
@@ -60,7 +60,6 @@
- DefaultAlgorithm 33%
@@ -77,7 +76,6 @@
- DefaultAlgorithm 8
@@ -115,7 +113,6 @@
- generate 33%
@@ -132,7 +129,6 @@
- generate 8
@@ -142,7 +138,7 @@
@@ -163,7 +159,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,1,0,0,0,0,0,0,0], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,1], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -181,7 +177,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,1,0,0,0,0,0,0,0], "Method Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,1], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -232,7 +228,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[33.333333333333,4,"DefaultAlgorithm<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[100,4," DefaultAlgorithm<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -257,7 +253,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[33.333333333333,4," DefaultAlgorithm::generate<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,4," DefaultAlgorithm::generate<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/Util/KeyAlgorithm/index.html b/master/Util/KeyAlgorithm/index.html
index c3dab51f..577b2d67 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Util/RedirectUri.php.html b/master/Util/RedirectUri.php.html
index 020fd06d..6112cdaf 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Util/SecureKey.php.html b/master/Util/SecureKey.php.html
index 7ed6352f..337e5401 100644
--- a/master/Util/SecureKey.php.html
+++ b/master/Util/SecureKey.php.html
@@ -42,86 +42,65 @@
- Total
-
-
-
0.00% covered (danger)
+
Total
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
33.33% covered (danger)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
-
CRAP
-
-
-
50.00% covered (warning)
+
100.00%
+
3 / 3
+
CRAP
+
+
+ 100.00% covered (success)
-
50.00%
-
3 / 6
+
100.00%
+
7 / 7
- SecureKey
-
-
-
0.00% covered (danger)
+
SecureKey
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
33.33% covered (danger)
+
100.00%
+
1 / 1
+
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
-
6.00
-
-
-
50.00% covered (warning)
+
100.00%
+
3 / 3
+
4
+
+
+ 100.00% covered (success)
-
50.00%
-
3 / 6
+
100.00%
+
7 / 7
- generate($len = 40)
-
-
- 0.00% covered (danger)
-
-
-
- 0.00%
- 0 / 1
- 1.12
-
-
- 50.00% covered (warning)
-
-
-
- 50.00%
- 1 / 2
-
-
-
- setAlgorithm(KeyAlgorithmInterface $algorithm)
+ generate($len = 40)
100.00% covered (success)
@@ -142,24 +121,45 @@
- getAlgorithm()
-
-
-
0.00% covered (danger)
+
setAlgorithm(KeyAlgorithmInterface $algorithm)
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
3.19
-
-
-
33.33% covered (danger)
+
100.00%
+
1 / 1
+
1
+
+
+ 100.00% covered (success)
-
33.33%
-
1 / 3
+
100.00%
+
2 / 2
+
+
+
+ getAlgorithm()
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 1 / 1
+ 2
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 4 / 4
@@ -199,8 +199,8 @@
public static function generate ( $len = 40 )
{
- return self :: getAlgorithm ( ) -> generate ( $len ) ;
- }
+ return self :: getAlgorithm ( ) -> generate ( $len ) ;
+ }
@@ -208,19 +208,19 @@
public static function setAlgorithm ( KeyAlgorithmInterface $algorithm )
{
self :: $algorithm = $algorithm ;
- }
+ }
public static function getAlgorithm ( )
{
- if ( is_null ( self :: $algorithm ) ) {
- self :: $algorithm = new DefaultAlgorithm ( ) ;
- }
+ if ( is_null ( self :: $algorithm ) ) {
+ self :: $algorithm = new DefaultAlgorithm ( ) ;
+ }
- return self :: $algorithm ;
- }
+ return self :: $algorithm ;
+ }
}
@@ -234,7 +234,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/Util/dashboard.html b/master/Util/dashboard.html
index da6db5ff..172d820c 100644
--- a/master/Util/dashboard.html
+++ b/master/Util/dashboard.html
@@ -59,9 +59,6 @@
- DefaultAlgorithm 33%
- RedirectUri 33%
- SecureKey 50%
@@ -78,9 +75,6 @@
- DefaultAlgorithm 8
- SecureKey 6
- RedirectUri 3
@@ -118,10 +112,6 @@
- generate 33%
- make 33%
- getAlgorithm 33%
- generate 50%
@@ -138,9 +128,6 @@
- generate 8
- make 3
- getAlgorithm 3
@@ -150,7 +137,7 @@
@@ -171,7 +158,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,2,0,1,0,0,0,0,0], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,3], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -189,7 +176,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,3,0,1,0,0,0,0,1], "Method Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,0,5], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -240,7 +227,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
- .datum(getComplexityData([[33.333333333333,4,"DefaultAlgorithm<\/a>"],[33.333333333333,2," RedirectUri<\/a>"],[50,4," SecureKey<\/a>"]], 'Class Complexity'))
+ .datum(getComplexityData([[100,4," DefaultAlgorithm<\/a>"],[100,2," RedirectUri<\/a>"],[100,4," SecureKey<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -265,7 +252,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[33.333333333333,4," DefaultAlgorithm::generate<\/a>"],[33.333333333333,2," RedirectUri::make<\/a>"],[50,1," SecureKey::generate<\/a>"],[100,1," SecureKey::setAlgorithm<\/a>"],[33.333333333333,2," SecureKey::getAlgorithm<\/a>"]], 'Method Complexity'))
+ .datum(getComplexityData([[100,4," DefaultAlgorithm::generate<\/a>"],[100,2," RedirectUri::make<\/a>"],[100,1," SecureKey::generate<\/a>"],[100,1," SecureKey::setAlgorithm<\/a>"],[100,2," SecureKey::getAlgorithm<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/Util/index.html b/master/Util/index.html
index c278f035..277733a7 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.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.
diff --git a/master/dashboard.html b/master/dashboard.html
index 54299720..18359318 100644
--- a/master/dashboard.html
+++ b/master/dashboard.html
@@ -58,31 +58,9 @@
- ServerErrorException 33%
- RedirectUri 33%
- DefaultAlgorithm 33%
- SecureKey 50%
- UnsupportedGrantTypeException 50%
- UnauthorizedClientException 50%
- AccessDeniedException 50%
- InvalidClientException 50%
- InvalidCredentialsException 50%
- InvalidGrantException 50%
- InvalidRefreshException 50%
- InvalidRequestException 60%
- EntityTrait 60%
- InvalidScopeException 60%
- UserAuthenticationFailedEvent 66%
- UnsupportedResponseTypeException 66%
- ClientAuthenticationFailedEvent 66%
- ResourceServer 70%
- AccessTokenEntity 71%
- ClientCredentialsGrant 72%
- AuthorizationServer 73%
- SessionOwnerEvent 75%
- PasswordGrant 76%
- AbstractServer 85%
- AuthCodeEntity 86%
+ UserAuthenticationFailedEvent 75%
+ ClientAuthenticationFailedEvent 75%
+ AccessTokenEntity 84%
@@ -99,18 +77,7 @@
- AuthorizationServer 29
- AbstractServer 23
- PasswordGrant 17
- ResourceServer 15
- AuthCodeEntity 11
- AccessTokenEntity 10
- DefaultAlgorithm 8
- ClientCredentialsGrant 6
- SecureKey 6
- EntityTrait 3
- ServerErrorException 3
- RedirectUri 3
+ AccessTokenEntity 9
@@ -148,41 +115,11 @@
- addEventListener 0%
- hasGrantType 0%
- __construct 25%
- make 33%
- getAlgorithm 33%
- __construct 33%
- __construct 33%
- generate 33%
- addGrantType 37%
- generateRedirectUri 40%
- __construct 50%
- __construct 50%
- __construct 50%
- __construct 50%
- __construct 50%
- generate 50%
- __construct 50%
- __construct 50%
- __construct 50%
- associateScope 50%
- __construct 50%
- __construct 50%
- __construct 50%
- __construct 50%
- setEventEmitter 60%
- hydrate 60%
- __construct 60%
- __construct 60%
- getScopes 66%
- getRequest 66%
- __construct 66%
- save 70%
- completeFlow 72%
- completeFlow 72%
- getSession 80%
+ getRequest 0%
+ getRequest 0%
+ hasScope 0%
+ hash_equals 87%
+ formatScopes 88%
@@ -199,21 +136,9 @@
- completeFlow 13
- generate 8
- completeFlow 6
- addGrantType 5
- hydrate 3
- __construct 3
- make 3
- getAlgorithm 3
- generateRedirectUri 2
- associateScope 2
- setEventEmitter 2
- getRequest 2
- getScopes 2
- save 2
- getSession 2
+ hasScope 6
+ formatScopes 4
+ hash_equals 3
@@ -223,7 +148,7 @@
@@ -244,7 +169,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
- .datum(getCoverageDistributionData([0,0,0,0,3,0,8,6,6,2,2,10], "Class Coverage"))
+ .datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,2,1,2,33], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -262,7 +187,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,2,0,152], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@@ -313,7 +238,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,24," AbstractServer<\/a>"],[100,21," AuthorizationServer<\/a>"],[96.296296296296,18," AbstractTokenEntity<\/a>"],[84,9," AccessTokenEntity<\/a>"],[100,11," AuthCodeEntity<\/a>"],[100,5," ClientEntity<\/a>"],[100,6," RefreshTokenEntity<\/a>"],[100,4," ScopeEntity<\/a>"],[100,23," SessionEntity<\/a>"],[75,3," ClientAuthenticationFailedEvent<\/a>"],[100,3," SessionOwnerEvent<\/a>"],[75,3," UserAuthenticationFailedEvent<\/a>"],[100,1," AccessDeniedException<\/a>"],[100,1," InvalidClientException<\/a>"],[100,1," InvalidCredentialsException<\/a>"],[100,1," InvalidGrantException<\/a>"],[100,1," InvalidRefreshException<\/a>"],[100,1," InvalidRequestException<\/a>"],[100,1," InvalidScopeException<\/a>"],[100,15," OAuthException<\/a>"],[100,2," ServerErrorException<\/a>"],[100,1," UnauthorizedClientException<\/a>"],[100,1," UnsupportedGrantTypeException<\/a>"],[100,1," UnsupportedResponseTypeException<\/a>"],[100,21," AbstractGrant<\/a>"],[100,25," AuthCodeGrant<\/a>"],[100,6," ClientCredentialsGrant<\/a>"],[100,15," PasswordGrant<\/a>"],[100,13," RefreshTokenGrant<\/a>"],[100,12," ResourceServer<\/a>"],[100,2," AbstractStorage<\/a>"],[100,5," AbstractTokenType<\/a>"],[100,4," Bearer<\/a>"],[98.214285714286,20," MAC<\/a>"],[100,4," DefaultAlgorithm<\/a>"],[100,2," RedirectUri<\/a>"],[100,4," SecureKey<\/a>"],[100,3," EntityTrait<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@@ -338,7 +263,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
- .datum(getComplexityData([[50,1," AbstractServer::__construct<\/a>"],[60,2," AbstractServer::setEventEmitter<\/a>"],[0,1," AbstractServer::addEventListener<\/a>"],[100,1," AbstractServer::getEventEmitter<\/a>"],[100,1," AbstractServer::setRequest<\/a>"],[66.666666666667,2," AbstractServer::getRequest<\/a>"],[100,1," AbstractServer::setClientStorage<\/a>"],[100,1," AbstractServer::setSessionStorage<\/a>"],[100,1," AbstractServer::setAccessTokenStorage<\/a>"],[100,1," AbstractServer::setRefreshTokenStorage<\/a>"],[100,1," AbstractServer::setAuthCodeStorage<\/a>"],[100,1," AbstractServer::setScopeStorage<\/a>"],[100,1," AbstractServer::getClientStorage<\/a>"],[100,1," AbstractServer::getScopeStorage<\/a>"],[100,1," AbstractServer::getSessionStorage<\/a>"],[100,1," AbstractServer::getRefreshTokenStorage<\/a>"],[100,1," AbstractServer::getAccessTokenStorage<\/a>"],[100,1," AbstractServer::getAuthCodeStorage<\/a>"],[100,1," AbstractServer::setTokenType<\/a>"],[100,1," AbstractServer::getTokenType<\/a>"],[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," AbstractServer::getMacStorage<\/a>"],[100,1," AbstractServer::setMacStorage<\/a>"],[100,1," AuthorizationServer::__construct<\/a>"],[100,3," AuthorizationServer::addGrantType<\/a>"],[100,1," AuthorizationServer::hasGrantType<\/a>"],[100,1," AuthorizationServer::getResponseTypes<\/a>"],[100,1," AuthorizationServer::requireScopeParam<\/a>"],[100,1," AuthorizationServer::scopeParamRequired<\/a>"],[100,1," AuthorizationServer::setDefaultScope<\/a>"],[100,1," AuthorizationServer::getDefaultScope<\/a>"],[100,1," AuthorizationServer::stateParamRequired<\/a>"],[100,1," AuthorizationServer::requireStateParam<\/a>"],[100,1," AuthorizationServer::getScopeDelimiter<\/a>"],[100,1," AuthorizationServer::setScopeDelimiter<\/a>"],[100,1," AuthorizationServer::getAccessTokenTTL<\/a>"],[100,1," AuthorizationServer::setAccessTokenTTL<\/a>"],[100,3," AuthorizationServer::issueAccessToken<\/a>"],[100,2," AuthorizationServer::getGrantType<\/a>"],[100,1," AbstractTokenEntity::__construct<\/a>"],[100,1," AbstractTokenEntity::setSession<\/a>"],[100,1," AbstractTokenEntity::setExpireTime<\/a>"],[100,1," AbstractTokenEntity::getExpireTime<\/a>"],[100,1," AbstractTokenEntity::isExpired<\/a>"],[100,2," AbstractTokenEntity::setId<\/a>"],[100,1," AbstractTokenEntity::getId<\/a>"],[100,2," AbstractTokenEntity::associateScope<\/a>"],[88.888888888889,4," AbstractTokenEntity::formatScopes<\/a>"],[100,2," AbstractTokenEntity::__toString<\/a>"],[100,1," AbstractTokenEntity::expire<\/a>"],[100,1," AbstractTokenEntity::save<\/a>"],[100,2," AccessTokenEntity::getSession<\/a>"],[0,2," AccessTokenEntity::hasScope<\/a>"],[100,2," AccessTokenEntity::getScopes<\/a>"],[100,2," AccessTokenEntity::save<\/a>"],[100,1," AccessTokenEntity::expire<\/a>"],[100,1," AuthCodeEntity::setRedirectUri<\/a>"],[100,1," AuthCodeEntity::getRedirectUri<\/a>"],[100,2," AuthCodeEntity::generateRedirectUri<\/a>"],[100,2," AuthCodeEntity::getSession<\/a>"],[100,2," AuthCodeEntity::getScopes<\/a>"],[100,2," AuthCodeEntity::save<\/a>"],[100,1," AuthCodeEntity::expire<\/a>"],[100,1," ClientEntity::__construct<\/a>"],[100,1," ClientEntity::getId<\/a>"],[100,1," ClientEntity::getSecret<\/a>"],[100,1," ClientEntity::getName<\/a>"],[100,1," ClientEntity::getRedirectUri<\/a>"],[100,1," RefreshTokenEntity::setAccessTokenId<\/a>"],[100,1," RefreshTokenEntity::setAccessToken<\/a>"],[100,2," RefreshTokenEntity::getAccessToken<\/a>"],[100,1," RefreshTokenEntity::save<\/a>"],[100,1," RefreshTokenEntity::expire<\/a>"],[100,1," ScopeEntity::__construct<\/a>"],[100,1," ScopeEntity::getId<\/a>"],[100,1," ScopeEntity::getDescription<\/a>"],[100,1," ScopeEntity::jsonSerialize<\/a>"],[100,1," SessionEntity::__construct<\/a>"],[100,1," SessionEntity::setId<\/a>"],[100,1," SessionEntity::getId<\/a>"],[100,2," SessionEntity::associateScope<\/a>"],[100,2," SessionEntity::hasScope<\/a>"],[100,2," SessionEntity::getScopes<\/a>"],[100,4," SessionEntity::formatScopes<\/a>"],[100,1," SessionEntity::associateAccessToken<\/a>"],[100,1," SessionEntity::associateRefreshToken<\/a>"],[100,1," SessionEntity::associateClient<\/a>"],[100,2," SessionEntity::getClient<\/a>"],[100,1," SessionEntity::setOwner<\/a>"],[100,1," SessionEntity::getOwnerId<\/a>"],[100,1," SessionEntity::getOwnerType<\/a>"],[100,2," SessionEntity::save<\/a>"],[100,1," ClientAuthenticationFailedEvent::__construct<\/a>"],[100,1," ClientAuthenticationFailedEvent::getName<\/a>"],[0,1," ClientAuthenticationFailedEvent::getRequest<\/a>"],[100,1," SessionOwnerEvent::__construct<\/a>"],[100,1," SessionOwnerEvent::getName<\/a>"],[100,1," SessionOwnerEvent::getSession<\/a>"],[100,1," UserAuthenticationFailedEvent::__construct<\/a>"],[100,1," UserAuthenticationFailedEvent::getName<\/a>"],[0,1," UserAuthenticationFailedEvent::getRequest<\/a>"],[100,1," AccessDeniedException::__construct<\/a>"],[100,1," InvalidClientException::__construct<\/a>"],[100,1," InvalidCredentialsException::__construct<\/a>"],[100,1," InvalidGrantException::__construct<\/a>"],[100,1," InvalidRefreshException::__construct<\/a>"],[100,1," InvalidRequestException::__construct<\/a>"],[100,1," InvalidScopeException::__construct<\/a>"],[100,1," OAuthException::__construct<\/a>"],[100,2," OAuthException::shouldRedirect<\/a>"],[100,1," OAuthException::getRedirectUri<\/a>"],[100,11," OAuthException::getHttpHeaders<\/a>"],[100,2," ServerErrorException::__construct<\/a>"],[100,1," UnauthorizedClientException::__construct<\/a>"],[100,1," UnsupportedGrantTypeException::__construct<\/a>"],[100,1," UnsupportedResponseTypeException::__construct<\/a>"],[100,1," AbstractGrant::getIdentifier<\/a>"],[100,1," AbstractGrant::setIdentifier<\/a>"],[100,1," AbstractGrant::getResponseType<\/a>"],[100,2," AbstractGrant::getAccessTokenTTL<\/a>"],[100,1," AbstractGrant::setAccessTokenTTL<\/a>"],[100,1," AbstractGrant::setAuthorizationServer<\/a>"],[100,11," AbstractGrant::validateScopes<\/a>"],[100,3," AbstractGrant::formatScopes<\/a>"],[100,1," AuthCodeGrant::setAuthTokenTTL<\/a>"],[100,8," AuthCodeGrant::checkAuthorizeParams<\/a>"],[100,2," AuthCodeGrant::newAuthorizeRequest<\/a>"],[100,14," AuthCodeGrant::completeFlow<\/a>"],[100,6," ClientCredentialsGrant::completeFlow<\/a>"],[100,1," PasswordGrant::setVerifyCredentialsCallback<\/a>"],[100,3," PasswordGrant::getVerifyCredentialsCallback<\/a>"],[100,11," PasswordGrant::completeFlow<\/a>"],[100,1," RefreshTokenGrant::setRefreshTokenTTL<\/a>"],[100,1," RefreshTokenGrant::getRefreshTokenTTL<\/a>"],[100,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,1," MAC::generateResponse<\/a>"],[100,13," MAC::determineAccessTokenInHeader<\/a>"],[100,3," MAC::anonymous function<\/a>"],[87.5,3," MAC::hash_equals<\/a>"],[100,4," DefaultAlgorithm::generate<\/a>"],[100,2," RedirectUri::make<\/a>"],[100,1," SecureKey::generate<\/a>"],[100,1," SecureKey::setAlgorithm<\/a>"],[100,2," SecureKey::getAlgorithm<\/a>"],[100,3," EntityTrait::hydrate<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);
diff --git a/master/index.html b/master/index.html
index 5d0cca21..2008176a 100644
--- a/master/index.html
+++ b/master/index.html
@@ -41,143 +41,143 @@
- Total
+ Total
+
+
+ 98.96% covered (success)
+
+
+
+ 98.96%
+ 759 / 767
+
+
+ 96.77% covered (success)
+
+
+
+ 96.77%
+ 150 / 155
-
-
82.96% covered (warning)
+
+ 86.84% covered (warning)
- 82.96%
- 331 / 399
-
-
- 74.64% covered (warning)
-
-
-
- 74.64%
- 103 / 138
-
-
- 27.03% covered (danger)
-
-
-
- 27.03%
- 10 / 37
+ 86.84%
+ 33 / 38
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)
@@ -211,13 +211,33 @@
TokenType
-
-
100.00% covered (success)
+
+ 98.65% covered (success)
- 100.00%
- 12 / 12
+ 98.65%
+ 73 / 74
+
+
+ 90.00% covered (success)
+
+
+
+ 90.00%
+ 9 / 10
+
+
+ 66.67% covered (warning)
+
+
+
+ 66.67%
+ 2 / 3
+
+
+
+ Util
100.00% covered (success)
@@ -225,7 +245,7 @@
100.00%
- 4 / 4
+ 15 / 15
100.00% covered (success)
@@ -233,119 +253,99 @@
100.00%
- 2 / 2
+ 5 / 5
+
+
+ 100.00% covered (success)
+
+
+
+ 100.00%
+ 3 / 3
- Util
-
-
-
40.00% covered (danger)
+
AbstractServer.php
+
+
+ 100.00% covered (success)
-
40.00%
-
6 / 15
-
-
-
20.00% covered (danger)
+
100.00%
+
47 / 47
+
+
+ 100.00% covered (success)
-
20.00%
-
1 / 5
-
-
-
0.00% covered (danger)
+
100.00%
+
22 / 22
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 3
+
100.00%
+
1 / 1
- AbstractServer.php
-
-
-
85.37% covered (warning)
+
AuthorizationServer.php
+
+
+ 100.00% covered (success)
-
85.37%
-
35 / 41
-
-
-
80.00% covered (warning)
+
100.00%
+
38 / 38
+
+
+ 100.00% covered (success)
-
80.00%
-
16 / 20
-
-
-
0.00% covered (danger)
+
100.00%
+
16 / 16
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
+
100.00%
+
1 / 1
- AuthorizationServer.php
-
-
-
73.33% covered (warning)
+
ResourceServer.php
+
+
+ 100.00% covered (success)
-
73.33%
-
22 / 30
-
-
-
80.00% covered (warning)
+
100.00%
+
29 / 29
+
+
+ 100.00% covered (success)
-
80.00%
-
12 / 15
-
-
-
0.00% covered (danger)
+
100.00%
+
5 / 5
+
+
+ 100.00% covered (success)
-
0.00%
-
0 / 1
-
-
-
- ResourceServer.php
-
-
- 70.00% covered (warning)
-
-
-
- 70.00%
- 14 / 20
-
-
- 80.00% covered (warning)
-
-
-
- 80.00%
- 4 / 5
-
-
- 0.00% covered (danger)
-
-
-
- 0.00%
- 0 / 1
+ 100.00%
+ 1 / 1
@@ -360,7 +360,7 @@
High : 90% to 100%
- Generated by PHP_CodeCoverage 2.0.14 using HHVM 3.4.0 and PHPUnit 4.3.5 at Fri Dec 26 17:06:21 UTC 2014.
+ Generated by PHP_CodeCoverage 2.0.14 using PHP 5.4.35 and PHPUnit 4.3.5 at Sat Dec 27 22:27:34 UTC 2014.