Passed
Push — develop ( 20f62f...e667b3 )
by nguereza
02:00
created
src/Grant/GrantInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Grant/BaseGrant.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Exception/InvalidAccessTokenException.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,15 +38,13 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Exception/OAuth2Exception.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,15 +38,13 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Entity/TokenOwnerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Entity/AccessToken.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Entity/RefreshToken.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Entity/Client.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      */
88 88
     public static function createNewClient(
89 89
         string $name,
90
-        string|array $redirectUris = null,
90
+        string | array $redirectUris = null,
91 91
         ?array $scopes = null
92 92
     ): self {
93 93
         if (is_string($redirectUris)) {
Please login to merge, or discard this patch.
src/Entity/AuthorizationCode.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
36 36
  * @class AuthorizationCode
37 37
  * @package Platine\OAuth2\Entity
38 38
  */
39
-class AuthorizationCode extends BaseToken
40
-{
39
+class AuthorizationCode extends BaseToken {
41 40
     /**
42 41
      * The redirect URI
43 42
      * @var string
Please login to merge, or discard this patch.