Passed
Push — develop ( 5ddd41...5412c0 )
by nguereza
03:01
created
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.
src/OAuth2/User/TokenOwner.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
  * @class TokenOwner
54 54
  * @package Platine\Framework\OAuth2\User
55 55
  */
56
-class TokenOwner implements TokenOwnerInterface
57
-{
56
+class TokenOwner implements TokenOwnerInterface {
58 57
     /**
59 58
      * The owner id
60 59
      * @var mixed
@@ -65,16 +64,14 @@  discard block
 block discarded – undo
65 64
      * Create new instance
66 65
      * @param mixed|null $id
67 66
      */
68
-    public function __construct($id = null)
69
-    {
67
+    public function __construct($id = null) {
70 68
         $this->id = $id;
71 69
     }
72 70
 
73 71
     /**
74 72
      * {@inheritdoc}
75 73
      */
76
-    public function getOwnerId()
77
-    {
74
+    public function getOwnerId() {
78 75
         return $this->id;
79 76
     }
80 77
 }
Please login to merge, or discard this patch.
src/OAuth2/User/UserAuthentication.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@  discard block
 block discarded – undo
56 56
  * @class UserAuthentication
57 57
  * @package Platine\Framework\OAuth2\User
58 58
  */
59
-class UserAuthentication implements UserAuthenticationInterface
60
-{
59
+class UserAuthentication implements UserAuthenticationInterface {
61 60
     /**
62 61
      * The Authentication
63 62
      * @var AuthenticationInterface
@@ -68,8 +67,7 @@  discard block
 block discarded – undo
68 67
      * Create new instance
69 68
      * @param AuthenticationInterface $authentication
70 69
      */
71
-    public function __construct(AuthenticationInterface $authentication)
72
-    {
70
+    public function __construct(AuthenticationInterface $authentication) {
73 71
         $this->authentication = $authentication;
74 72
     }
75 73
 
Please login to merge, or discard this patch.
src/Task/Command/AbstractCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
  * @package Platine\Framework\Task\Command
60 60
  * @template T
61 61
  */
62
-abstract class AbstractCommand extends Command
63
-{
62
+abstract class AbstractCommand extends Command {
64 63
     /**
65 64
      * The scheduler instance
66 65
      * @var SchedulerInterface
Please login to merge, or discard this patch.