Passed
Push — develop ( e667b3...9fc062 )
by nguereza
18:34
created
src/Grant/AuthorizationServerAwareInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
  * @class AuthorizationServerAwareInterface
41 41
  * @package Platine\OAuth2\Grant
42 42
  */
43
-interface AuthorizationServerAwareInterface
44
-{
43
+interface AuthorizationServerAwareInterface {
45 44
     /**
46 45
      * Set the authorization server to be used
47 46
      * @param AuthorizationServerInterface $authorizationServer
Please login to merge, or discard this patch.
src/Grant/AuthorizationGrant.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@
 block discarded – undo
46 46
  * @class AuthorizationGrant
47 47
  * @package Platine\OAuth2\Grant
48 48
  */
49
-class AuthorizationGrant extends BaseGrant implements AuthorizationServerAwareInterface
50
-{
49
+class AuthorizationGrant extends BaseGrant implements AuthorizationServerAwareInterface {
51 50
     public const GRANT_TYPE = 'authorization_code';
52 51
     public const GRANT_RESPONSE_TYPE = 'code';
53 52
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,9 +59,9 @@
 block discarded – undo
59 59
     ) {
60 60
     }
61 61
 
62
-     /**
63
-     * {@inheritdoc}
64
-     */
62
+        /**
63
+         * {@inheritdoc}
64
+         */
65 65
     public function createAuthorizationResponse(
66 66
         ServerRequestInterface $request,
67 67
         Client $client,
Please login to merge, or discard this patch.
src/Grant/RefreshTokenGrant.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@
 block discarded – undo
92 92
     }
93 93
 
94 94
         /**
95
-     * {@inheritdoc}
96
-     */
95
+         * {@inheritdoc}
96
+         */
97 97
     public function createAuthorizationResponse(
98 98
         ServerRequestInterface $request,
99 99
         Client $client,
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@
 block discarded – undo
45 45
  * @class RefreshTokenGrant
46 46
  * @package Platine\OAuth2\Grant
47 47
  */
48
-class RefreshTokenGrant extends BaseGrant
49
-{
48
+class RefreshTokenGrant extends BaseGrant {
50 49
     public const GRANT_TYPE = 'refresh_token';
51 50
     public const GRANT_RESPONSE_TYPE = '';
52 51
 
Please login to merge, or discard this patch.
src/Grant/PasswordGrant.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@
 block discarded – undo
92 92
     }
93 93
 
94 94
         /**
95
-     * {@inheritdoc}
96
-     */
95
+         * {@inheritdoc}
96
+         */
97 97
     public function createAuthorizationResponse(
98 98
         ServerRequestInterface $request,
99 99
         Client $client,
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@
 block discarded – undo
49 49
  * @class PasswordGrant
50 50
  * @package Platine\OAuth2\Grant
51 51
  */
52
-class PasswordGrant extends BaseGrant implements AuthorizationServerAwareInterface
53
-{
52
+class PasswordGrant extends BaseGrant implements AuthorizationServerAwareInterface {
54 53
     public const GRANT_TYPE = 'password';
55 54
     public const GRANT_RESPONSE_TYPE = '';
56 55
 
Please login to merge, or discard this patch.
src/Grant/ClientCredentialsGrant.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@
 block discarded – undo
45 45
  * @class ClientCredentialsGrant
46 46
  * @package Platine\OAuth2\Grant
47 47
  */
48
-class ClientCredentialsGrant extends BaseGrant
49
-{
48
+class ClientCredentialsGrant extends BaseGrant {
50 49
     public const GRANT_TYPE = 'client_credentials';
51 50
     public const GRANT_RESPONSE_TYPE = '';
52 51
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,9 +59,9 @@
 block discarded – undo
59 59
     ) {
60 60
     }
61 61
 
62
-     /**
63
-     * {@inheritdoc}
64
-     */
62
+        /**
63
+         * {@inheritdoc}
64
+         */
65 65
     public function createAuthorizationResponse(
66 66
         ServerRequestInterface $request,
67 67
         Client $client,
Please login to merge, or discard this patch.
src/Entity/UserAuthenticationInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
  * @class TokenOwnerInterface
39 39
  * @package Platine\OAuth2\Entity
40 40
  */
41
-interface UserAuthenticationInterface
42
-{
41
+interface UserAuthenticationInterface {
43 42
     /**
44 43
      * Validate the user
45 44
      * this MUST return an object that implement the TokenOwnerInterface, or
Please login to merge, or discard this patch.
src/AuthorizationServerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
  * @class AuthorizationServerInterface
43 43
  * @package Platine\OAuth2
44 44
  */
45
-interface AuthorizationServerInterface
46
-{
45
+interface AuthorizationServerInterface {
47 46
     /**
48 47
      * Whether the authorization server has support the given grant
49 48
      * @param string $grant
Please login to merge, or discard this patch.
src/ResourceServerInterface.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@
 block discarded – undo
45 45
  * @class ResourceServerInterface
46 46
  * @package Platine\OAuth2
47 47
  */
48
-interface ResourceServerInterface
49
-{
48
+interface ResourceServerInterface {
50 49
     /**
51 50
      * Return the access token
52 51
      * @param ServerRequestInterface $request
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,6 +55,6 @@
 block discarded – undo
55 55
      */
56 56
     public function getAccessToken(
57 57
         ServerRequestInterface $request,
58
-        string|array $scopes = []
58
+        string | array $scopes = []
59 59
     ): ?AccessToken;
60 60
 }
Please login to merge, or discard this patch.
src/Configuration.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
  * @class Configuration
53 53
  * @package Platine\OAuth2
54 54
  */
55
-class Configuration extends AbstractConfiguration
56
-{
55
+class Configuration extends AbstractConfiguration {
57 56
     /**
58 57
      * Return the authorization code TTL value
59 58
      * @return int
Please login to merge, or discard this patch.