@@ -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 | } |
@@ -36,6 +36,5 @@ |
||
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 | } |
@@ -36,6 +36,5 @@ |
||
36 | 36 | * @class Client |
37 | 37 | * @package Platine\OAuth2\Entity |
38 | 38 | */ |
39 | -class Client |
|
40 | -{ |
|
39 | +class Client { |
|
41 | 40 | } |
@@ -36,8 +36,7 @@ |
||
36 | 36 | * @class Scope |
37 | 37 | * @package Platine\OAuth2\Entity |
38 | 38 | */ |
39 | -class Scope |
|
40 | -{ |
|
39 | +class Scope { |
|
41 | 40 | /** |
42 | 41 | * The scope name |
43 | 42 | * @var string |
@@ -36,6 +36,5 @@ |
||
36 | 36 | * @class AuthorizationCode |
37 | 37 | * @package Platine\OAuth2\Entity |
38 | 38 | */ |
39 | -class AuthorizationCode |
|
40 | -{ |
|
39 | +class AuthorizationCode { |
|
41 | 40 | } |