@@ -53,8 +53,7 @@ discard block |
||
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,8 +64,7 @@ discard block |
||
65 | 64 | * Create new instance |
66 | 65 | * @param mixed $id |
67 | 66 | */ |
68 | - public function __construct(mixed $id = null) |
|
69 | - { |
|
67 | + public function __construct(mixed $id = null) { |
|
70 | 68 | $this->id = $id; |
71 | 69 | } |
72 | 70 |
@@ -56,14 +56,12 @@ |
||
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 | * Create new instance |
63 | 62 | * @param AuthenticationInterface $authentication |
64 | 63 | */ |
65 | - public function __construct(protected AuthenticationInterface $authentication) |
|
66 | - { |
|
64 | + public function __construct(protected AuthenticationInterface $authentication) { |
|
67 | 65 | } |
68 | 66 | |
69 | 67 |
@@ -42,14 +42,12 @@ |
||
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 | * Create new instance |
49 | 48 | * @param AuthorizationServerInterface $authorizationServer |
50 | 49 | */ |
51 | - public function __construct(protected AuthorizationServerInterface $authorizationServer) |
|
52 | - { |
|
50 | + public function __construct(protected AuthorizationServerInterface $authorizationServer) { |
|
53 | 51 | } |
54 | 52 | |
55 | 53 | /** |
@@ -43,14 +43,12 @@ |
||
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 | * Create new instance |
50 | 49 | * @param AuthorizationServerInterface $authorizationServer |
51 | 50 | */ |
52 | - public function __construct(protected AuthorizationServerInterface $authorizationServer) |
|
53 | - { |
|
51 | + public function __construct(protected AuthorizationServerInterface $authorizationServer) { |
|
54 | 52 | } |
55 | 53 | |
56 | 54 | /** |
@@ -43,14 +43,12 @@ |
||
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 | * Create new instance |
50 | 49 | * @param AuthorizationServerInterface $authorizationServer |
51 | 50 | */ |
52 | - public function __construct(protected AuthorizationServerInterface $authorizationServer) |
|
53 | - { |
|
51 | + public function __construct(protected AuthorizationServerInterface $authorizationServer) { |
|
54 | 52 | } |
55 | 53 | |
56 | 54 | /** |
@@ -68,8 +68,8 @@ |
||
68 | 68 | protected string $path; |
69 | 69 | |
70 | 70 | /** |
71 | - * {@inheritdoc} |
|
72 | - */ |
|
71 | + * {@inheritdoc} |
|
72 | + */ |
|
73 | 73 | public function __construct(string $markup, array &$tokens, Parser $parser) |
74 | 74 | { |
75 | 75 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
@@ -59,8 +59,7 @@ discard block |
||
59 | 59 | * @class StaticTag |
60 | 60 | * @package Platine\Framework\Template\Tag |
61 | 61 | */ |
62 | -class StaticTag extends AbstractTag |
|
63 | -{ |
|
62 | +class StaticTag extends AbstractTag { |
|
64 | 63 | /** |
65 | 64 | * The static path |
66 | 65 | * @var string |
@@ -70,8 +69,7 @@ discard block |
||
70 | 69 | /** |
71 | 70 | * {@inheritdoc} |
72 | 71 | */ |
73 | - public function __construct(string $markup, array &$tokens, Parser $parser) |
|
74 | - { |
|
72 | + public function __construct(string $markup, array &$tokens, Parser $parser) { |
|
75 | 73 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
76 | 74 | if ($lexer->match($markup)) { |
77 | 75 | $this->path = $lexer->getStringMatch(0); |
@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | protected string $permission; |
68 | 68 | |
69 | 69 | /** |
70 | - * {@inheritdoc} |
|
71 | - */ |
|
70 | + * {@inheritdoc} |
|
71 | + */ |
|
72 | 72 | public function __construct(string $markup, array &$tokens, Parser $parser) |
73 | 73 | { |
74 | 74 | $lexer = new Lexer('/(\w+)/'); |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
87 | - * {@inheritdoc} |
|
88 | - */ |
|
87 | + * {@inheritdoc} |
|
88 | + */ |
|
89 | 89 | public function render(Context $context): string |
90 | 90 | { |
91 | 91 | if ($context->hasKey($this->permission)) { |
@@ -58,8 +58,7 @@ discard block |
||
58 | 58 | * @class PermissionTag |
59 | 59 | * @package Platine\Framework\Template\Tag |
60 | 60 | */ |
61 | -class PermissionTag extends AbstractBlock |
|
62 | -{ |
|
61 | +class PermissionTag extends AbstractBlock { |
|
63 | 62 | /** |
64 | 63 | * The code of the permission |
65 | 64 | * @var string |
@@ -69,8 +68,7 @@ discard block |
||
69 | 68 | /** |
70 | 69 | * {@inheritdoc} |
71 | 70 | */ |
72 | - public function __construct(string $markup, array &$tokens, Parser $parser) |
|
73 | - { |
|
71 | + public function __construct(string $markup, array &$tokens, Parser $parser) { |
|
74 | 72 | $lexer = new Lexer('/(\w+)/'); |
75 | 73 | if ($lexer->match($markup)) { |
76 | 74 | $this->permission = $lexer->getStringMatch(1); |
@@ -68,8 +68,8 @@ |
||
68 | 68 | protected string $name; |
69 | 69 | |
70 | 70 | /** |
71 | - * {@inheritdoc} |
|
72 | - */ |
|
71 | + * {@inheritdoc} |
|
72 | + */ |
|
73 | 73 | public function __construct(string $markup, array &$tokens, Parser $parser) |
74 | 74 | { |
75 | 75 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
@@ -59,8 +59,7 @@ discard block |
||
59 | 59 | * @class RouteUrlTag |
60 | 60 | * @package Platine\Framework\Template\Tag |
61 | 61 | */ |
62 | -class RouteUrlTag extends AbstractTag |
|
63 | -{ |
|
62 | +class RouteUrlTag extends AbstractTag { |
|
64 | 63 | /** |
65 | 64 | * The name of the route |
66 | 65 | * @var string |
@@ -70,8 +69,7 @@ discard block |
||
70 | 69 | /** |
71 | 70 | * {@inheritdoc} |
72 | 71 | */ |
73 | - public function __construct(string $markup, array &$tokens, Parser $parser) |
|
74 | - { |
|
72 | + public function __construct(string $markup, array &$tokens, Parser $parser) { |
|
75 | 73 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
76 | 74 | if ($lexer->match($markup)) { |
77 | 75 | $this->name = $lexer->getStringMatch(0); |
@@ -68,8 +68,8 @@ |
||
68 | 68 | protected string $name; |
69 | 69 | |
70 | 70 | /** |
71 | - * {@inheritdoc} |
|
72 | - */ |
|
71 | + * {@inheritdoc} |
|
72 | + */ |
|
73 | 73 | public function __construct(string $markup, array &$tokens, Parser $parser) |
74 | 74 | { |
75 | 75 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
@@ -59,8 +59,7 @@ discard block |
||
59 | 59 | * @class SessionFlashTag |
60 | 60 | * @package Platine\Framework\Template\Tag |
61 | 61 | */ |
62 | -class SessionFlashTag extends AbstractTag |
|
63 | -{ |
|
62 | +class SessionFlashTag extends AbstractTag { |
|
64 | 63 | /** |
65 | 64 | * The key of the session |
66 | 65 | * @var string |
@@ -70,8 +69,7 @@ discard block |
||
70 | 69 | /** |
71 | 70 | * {@inheritdoc} |
72 | 71 | */ |
73 | - public function __construct(string $markup, array &$tokens, Parser $parser) |
|
74 | - { |
|
72 | + public function __construct(string $markup, array &$tokens, Parser $parser) { |
|
75 | 73 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
76 | 74 | if ($lexer->match($markup)) { |
77 | 75 | $this->name = $lexer->getStringMatch(0); |