Passed
Push — develop ( 3f3e75...907aec )
by nguereza
03:12
created
src/OAuth2/Entity/OauthScope.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
 class OauthScope extends Entity
15 15
 {
16 16
     /**
17
-    * {@inheritdoc}
18
-    */
17
+     * {@inheritdoc}
18
+     */
19 19
     public static function mapEntity(EntityMapperInterface $mapper): void
20 20
     {
21
-         $mapper->useTimestamp();
22
-         $mapper->casts([
21
+            $mapper->useTimestamp();
22
+            $mapper->casts([
23 23
             'created_at' => 'date',
24 24
             'updated_at' => '?date',
25
-         ]);
25
+            ]);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 * @class OauthScope
12 12
 * @package Platine\Framework\OAuth2\Entity
13 13
 */
14
-class OauthScope extends Entity
15
-{
14
+class OauthScope extends Entity {
16 15
     /**
17 16
     * {@inheritdoc}
18 17
     */
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthRefreshToken.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,16 +14,16 @@
 block discarded – undo
14 14
 class OauthRefreshToken extends Entity
15 15
 {
16 16
     /**
17
-    * {@inheritdoc}
18
-    */
17
+     * {@inheritdoc}
18
+     */
19 19
     public static function mapEntity(EntityMapperInterface $mapper): void
20 20
     {
21
-         $mapper->primaryKey('refresh_token');
22
-         $mapper->useTimestamp();
23
-         $mapper->casts([
21
+            $mapper->primaryKey('refresh_token');
22
+            $mapper->useTimestamp();
23
+            $mapper->casts([
24 24
             'expires' => 'date',
25 25
             'created_at' => 'date',
26 26
             'updated_at' => '?date',
27
-         ]);
27
+            ]);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 * @class OauthRefreshToken
12 12
 * @package Platine\Framework\OAuth2\Entity
13 13
 */
14
-class OauthRefreshToken extends Entity
15
-{
14
+class OauthRefreshToken extends Entity {
16 15
     /**
17 16
     * {@inheritdoc}
18 17
     */
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthAccessToken.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,16 +14,16 @@
 block discarded – undo
14 14
 class OauthAccessToken extends Entity
15 15
 {
16 16
     /**
17
-    * {@inheritdoc}
18
-    */
17
+     * {@inheritdoc}
18
+     */
19 19
     public static function mapEntity(EntityMapperInterface $mapper): void
20 20
     {
21
-         $mapper->primaryKey('access_token');
22
-         $mapper->useTimestamp();
23
-         $mapper->casts([
21
+            $mapper->primaryKey('access_token');
22
+            $mapper->useTimestamp();
23
+            $mapper->casts([
24 24
             'expires' => 'date',
25 25
             'created_at' => 'date',
26 26
             'updated_at' => '?date',
27
-         ]);
27
+            ]);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
11 11
 * @class OauthAccessToken
12 12
 * @package Platine\Framework\OAuth2\Entity
13 13
 */
14
-class OauthAccessToken extends Entity
15
-{
14
+class OauthAccessToken extends Entity {
16 15
     /**
17 16
     * {@inheritdoc}
18 17
     */
Please login to merge, or discard this patch.
src/OAuth2/Handler/TokenRevocationRequestHandler.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@  discard block
 block discarded – undo
42 42
  * @class TokenRevocationRequestHandler
43 43
  * @package Platine\Framework\OAuth2\Handler
44 44
  */
45
-class TokenRevocationRequestHandler implements RequestHandlerInterface
46
-{
45
+class TokenRevocationRequestHandler implements RequestHandlerInterface {
47 46
     /**
48 47
      * The Authorization Server
49 48
      * @var AuthorizationServerInterface
@@ -54,8 +53,7 @@  discard block
 block discarded – undo
54 53
      * Create new instance
55 54
      * @param AuthorizationServerInterface $authorizationServer
56 55
      */
57
-    public function __construct(AuthorizationServerInterface $authorizationServer)
58
-    {
56
+    public function __construct(AuthorizationServerInterface $authorizationServer) {
59 57
         $this->authorizationServer = $authorizationServer;
60 58
     }
61 59
 
Please login to merge, or discard this patch.
src/OAuth2/Handler/AccessTokenRequestHandler.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
43 43
  * @class AccessTokenRequestHandler
44 44
  * @package Platine\Framework\OAuth2\Handler
45 45
  */
46
-class AccessTokenRequestHandler implements RequestHandlerInterface
47
-{
46
+class AccessTokenRequestHandler implements RequestHandlerInterface {
48 47
     /**
49 48
      * The Authorization Server
50 49
      * @var AuthorizationServerInterface
@@ -55,8 +54,7 @@  discard block
 block discarded – undo
55 54
      * Create new instance
56 55
      * @param AuthorizationServerInterface $authorizationServer
57 56
      */
58
-    public function __construct(AuthorizationServerInterface $authorizationServer)
59
-    {
57
+    public function __construct(AuthorizationServerInterface $authorizationServer) {
60 58
         $this->authorizationServer = $authorizationServer;
61 59
     }
62 60
 
Please login to merge, or discard this patch.
src/OAuth2/Handler/AuthorizationRequestHandler.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
43 43
  * @class AuthorizationRequestHandler
44 44
  * @package Platine\Framework\OAuth2\Handler
45 45
  */
46
-class AuthorizationRequestHandler implements RequestHandlerInterface
47
-{
46
+class AuthorizationRequestHandler implements RequestHandlerInterface {
48 47
     /**
49 48
      * The Authorization Server
50 49
      * @var AuthorizationServerInterface
@@ -55,8 +54,7 @@  discard block
 block discarded – undo
55 54
      * Create new instance
56 55
      * @param AuthorizationServerInterface $authorizationServer
57 56
      */
58
-    public function __construct(AuthorizationServerInterface $authorizationServer)
59
-    {
57
+    public function __construct(AuthorizationServerInterface $authorizationServer) {
60 58
         $this->authorizationServer = $authorizationServer;
61 59
     }
62 60
 
Please login to merge, or discard this patch.
src/OAuth2/Middleware/OauthResourceMiddleware.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
      */
121 121
     protected function shouldBeProcessed(ServerRequestInterface $request): bool
122 122
     {
123
-       //If no route has been match no need check
123
+        //If no route has been match no need check
124 124
         /** @var Route|null $route */
125 125
         $route = $request->getAttribute(Route::class);
126 126
         if ($route === null) {
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
  * @package Platine\Framework\OAuth2\Middleware
50 50
  * @template T
51 51
  */
52
-class OauthResourceMiddleware implements MiddlewareInterface
53
-{
52
+class OauthResourceMiddleware implements MiddlewareInterface {
54 53
     /**
55 54
      * The Resource Server
56 55
      * @var ResourceServerInterface
Please login to merge, or discard this patch.