@@ -47,8 +47,7 @@  | 
                                                    ||
| 47 | 47 | * @package Platine\OAuth2\Grant  | 
                                                        
| 48 | 48 | * @link http://tools.ietf.org/html/rfc6749#section-1.3  | 
                                                        
| 49 | 49 | */  | 
                                                        
| 50 | -interface GrantInterface  | 
                                                        |
| 51 | -{ | 
                                                        |
| 50 | +interface GrantInterface { | 
                                                        |
| 52 | 51 | /**  | 
                                                        
| 53 | 52 | * Need to be overwrite by each grant  | 
                                                        
| 54 | 53 | */  | 
                                                        
@@ -41,8 +41,7 @@  | 
                                                    ||
| 41 | 41 | * @class BaseGrant  | 
                                                        
| 42 | 42 | * @package Platine\OAuth2\Grant  | 
                                                        
| 43 | 43 | */  | 
                                                        
| 44 | -abstract class BaseGrant implements GrantInterface  | 
                                                        |
| 45 | -{ | 
                                                        |
| 44 | +abstract class BaseGrant implements GrantInterface { | 
                                                        |
| 46 | 45 | /**  | 
                                                        
| 47 | 46 |       * {@inheritdoc} | 
                                                        
| 48 | 47 | */  | 
                                                        
@@ -39,8 +39,7 @@  | 
                                                    ||
| 39 | 39 | * @class JsonResponse  | 
                                                        
| 40 | 40 | * @package Platine\OAuth2\Response  | 
                                                        
| 41 | 41 | */  | 
                                                        
| 42 | -class JsonResponse extends Response  | 
                                                        |
| 43 | -{ | 
                                                        |
| 42 | +class JsonResponse extends Response { | 
                                                        |
| 44 | 43 | /**  | 
                                                        
| 45 | 44 | * Create new instance  | 
                                                        
| 46 | 45 | * @param mixed $data  | 
                                                        
@@ -38,15 +38,13 @@  | 
                                                    ||
| 38 | 38 | * @class InvalidAccessTokenException  | 
                                                        
| 39 | 39 | * @package Platine\OAuth2\Exception  | 
                                                        
| 40 | 40 | */  | 
                                                        
| 41 | -class InvalidAccessTokenException extends InvalidArgumentException  | 
                                                        |
| 42 | -{ | 
                                                        |
| 41 | +class InvalidAccessTokenException extends InvalidArgumentException { | 
                                                        |
| 43 | 42 | /**  | 
                                                        
| 44 | 43 | * Create new instance  | 
                                                        
| 45 | 44 | * @param string $message  | 
                                                        
| 46 | 45 | * @param string $code  | 
                                                        
| 47 | 46 | */  | 
                                                        
| 48 | - public function __construct(string $message, string $code)  | 
                                                        |
| 49 | -    { | 
                                                        |
| 47 | +    public function __construct(string $message, string $code) { | 
                                                        |
| 50 | 48 | parent::__construct($message);  | 
                                                        
| 51 | 49 | $this->code = $code;  | 
                                                        
| 52 | 50 | }  | 
                                                        
@@ -38,15 +38,13 @@  | 
                                                    ||
| 38 | 38 | * @class OAuth2Exception  | 
                                                        
| 39 | 39 | * @package Platine\OAuth2\Exception  | 
                                                        
| 40 | 40 | */  | 
                                                        
| 41 | -class OAuth2Exception extends Exception  | 
                                                        |
| 42 | -{ | 
                                                        |
| 41 | +class OAuth2Exception extends Exception { | 
                                                        |
| 43 | 42 | /**  | 
                                                        
| 44 | 43 | * Create new instance  | 
                                                        
| 45 | 44 | * @param string $message  | 
                                                        
| 46 | 45 | * @param string $code  | 
                                                        
| 47 | 46 | */  | 
                                                        
| 48 | - public function __construct(string $message, string $code)  | 
                                                        |
| 49 | -    { | 
                                                        |
| 47 | +    public function __construct(string $message, string $code) { | 
                                                        |
| 50 | 48 | parent::__construct($message);  | 
                                                        
| 51 | 49 | $this->code = $code;  | 
                                                        
| 52 | 50 | }  | 
                                                        
@@ -39,8 +39,7 @@  | 
                                                    ||
| 39 | 39 | * @class TokenOwnerInterface  | 
                                                        
| 40 | 40 | * @package Platine\OAuth2\Entity  | 
                                                        
| 41 | 41 | */  | 
                                                        
| 42 | -interface TokenOwnerInterface  | 
                                                        |
| 43 | -{ | 
                                                        |
| 42 | +interface TokenOwnerInterface { | 
                                                        |
| 44 | 43 | /**  | 
                                                        
| 45 | 44 | * Return the token owner id  | 
                                                        
| 46 | 45 | * @return mixed  | 
                                                        
@@ -36,8 +36,7 @@  | 
                                                    ||
| 36 | 36 | * @class AccessToken  | 
                                                        
| 37 | 37 | * @package Platine\OAuth2\Entity  | 
                                                        
| 38 | 38 | */  | 
                                                        
| 39 | -class AccessToken extends BaseToken  | 
                                                        |
| 40 | -{ | 
                                                        |
| 39 | +class AccessToken extends BaseToken { | 
                                                        |
| 41 | 40 | /**  | 
                                                        
| 42 | 41 | * Create new access token  | 
                                                        
| 43 | 42 | * @param int $ttl  | 
                                                        
@@ -36,8 +36,7 @@  | 
                                                    ||
| 36 | 36 | * @class RefreshToken  | 
                                                        
| 37 | 37 | * @package Platine\OAuth2\Entity  | 
                                                        
| 38 | 38 | */  | 
                                                        
| 39 | -class RefreshToken extends BaseToken  | 
                                                        |
| 40 | -{ | 
                                                        |
| 39 | +class RefreshToken extends BaseToken { | 
                                                        |
| 41 | 40 | /**  | 
                                                        
| 42 | 41 | * Create new refresh token  | 
                                                        
| 43 | 42 | * @param int $ttl  | 
                                                        
@@ -38,8 +38,7 @@ discard block  | 
                                                    ||
| 38 | 38 | * @class Client  | 
                                                        
| 39 | 39 | * @package Platine\OAuth2\Entity  | 
                                                        
| 40 | 40 | */  | 
                                                        
| 41 | -class Client  | 
                                                        |
| 42 | -{ | 
                                                        |
| 41 | +class Client { | 
                                                        |
| 43 | 42 | /**  | 
                                                        
| 44 | 43 | * The client id  | 
                                                        
| 45 | 44 | * @var string  | 
                                                        
@@ -73,8 +72,7 @@ discard block  | 
                                                    ||
| 73 | 72 | /**  | 
                                                        
| 74 | 73 | * Can not rewrite the constructor in child classes  | 
                                                        
| 75 | 74 | */  | 
                                                        
| 76 | - final public function __construct()  | 
                                                        |
| 77 | -    { | 
                                                        |
| 75 | +    final public function __construct() { | 
                                                        |
| 78 | 76 | }  | 
                                                        
| 79 | 77 | |
| 80 | 78 | /**  |