Passed
Push — develop ( 6dba9e...7e7fdc )
by nguereza
01:48
created
src/Service/BaseTokenService.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 BaseTokenService
43 43
  * @package Platine\OAuth2\Service
44 44
  */
45
-class BaseTokenService
46
-{
45
+class BaseTokenService {
47 46
     /**
48 47
      * The TokenRepository instance
49 48
      * @var TokenRepositoryInterface
Please login to merge, or discard this patch.
src/Service/AuthorizationCodeService.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 AuthorizationCodeService
43 43
  * @package Platine\OAuth2\Service
44 44
  */
45
-class AuthorizationCodeService extends BaseTokenService
46
-{
45
+class AuthorizationCodeService extends BaseTokenService {
47 46
     /**
48 47
      * The AuthorizationCodeRepositoryInterface instance
49 48
      * @var AuthorizationCodeRepositoryInterface
Please login to merge, or discard this patch.
src/Service/ClientService.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@  discard block
 block discarded – undo
39 39
  * @class ClientService
40 40
  * @package Platine\OAuth2\Service
41 41
  */
42
-class ClientService
43
-{
42
+class ClientService {
44 43
     /**
45 44
      * The ClientRepositoryInterface instance
46 45
      * @var ClientRepositoryInterface
@@ -51,8 +50,7 @@  discard block
 block discarded – undo
51 50
      * Create new instance
52 51
      * @param ClientRepositoryInterface $clientRepository
53 52
      */
54
-    public function __construct(ClientRepositoryInterface $clientRepository)
55
-    {
53
+    public function __construct(ClientRepositoryInterface $clientRepository) {
56 54
         $this->clientRepository = $clientRepository;
57 55
     }
58 56
 
Please login to merge, or discard this patch.
src/Service/RefreshTokenService.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 RefreshTokenService
43 43
  * @package Platine\OAuth2\Service
44 44
  */
45
-class RefreshTokenService extends BaseTokenService
46
-{
45
+class RefreshTokenService extends BaseTokenService {
47 46
     /**
48 47
      * The RefreshTokenRepositoryInterface instance
49 48
      * @var RefreshTokenRepositoryInterface
Please login to merge, or discard this patch.
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
@@ -92,9 +92,9 @@
 block discarded – undo
92 92
         $this->refreshTokenService = $refreshTokenService;
93 93
     }
94 94
 
95
-     /**
96
-     * {@inheritdoc}
97
-     */
95
+        /**
96
+         * {@inheritdoc}
97
+         */
98 98
     public function createAuthorizationResponse(
99 99
         ServerRequestInterface $request,
100 100
         Client $client,
Please login to merge, or discard this patch.
src/Response/RedirectResponse.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,14 +38,12 @@
 block discarded – undo
38 38
  * @class RedirectResponse
39 39
  * @package Platine\OAuth2\Response
40 40
  */
41
-class RedirectResponse extends Response
42
-{
41
+class RedirectResponse extends Response {
43 42
     /**
44 43
      * Create new instance
45 44
      * @param string $uri
46 45
      */
47
-    public function __construct(string $uri = '/')
48
-    {
46
+    public function __construct(string $uri = '/') {
49 47
         parent::__construct(302);
50 48
         $this->headers['location'] = [$uri];
51 49
     }
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.