@@ -73,7 +73,7 @@ |
||
| 73 | 73 | parent::__construct($scheduler, $application, $config); |
| 74 | 74 | |
| 75 | 75 | $this->setName('scheduler:run') |
| 76 | - ->setDescription('Execute the scheduled tasks'); |
|
| 76 | + ->setDescription('Execute the scheduled tasks'); |
|
| 77 | 77 | |
| 78 | 78 | $this->addArgument('name', 'the name of task to execute instead of all', null, false); |
| 79 | 79 | } |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | * @template T |
| 58 | 58 | * @extends AbstractCommand<T> |
| 59 | 59 | */ |
| 60 | -class SchedulerRunCommand extends AbstractCommand |
|
| 61 | -{ |
|
| 60 | +class SchedulerRunCommand extends AbstractCommand { |
|
| 62 | 61 | /** |
| 63 | 62 | * Create new instance |
| 64 | 63 | * @param SchedulerInterface $scheduler |
@@ -59,8 +59,7 @@ |
||
| 59 | 59 | * @class Auditor |
| 60 | 60 | * @package Platine\Framework\Audit |
| 61 | 61 | */ |
| 62 | -class Auditor |
|
| 63 | -{ |
|
| 62 | +class Auditor { |
|
| 64 | 63 | /** |
| 65 | 64 | * The audit details |
| 66 | 65 | * @var string |
@@ -63,8 +63,7 @@ discard block |
||
| 63 | 63 | * @class ErrorHandler |
| 64 | 64 | * @package Platine\Framework\Handler\Error |
| 65 | 65 | */ |
| 66 | -class ErrorHandler implements ErrorHandlerInterface |
|
| 67 | -{ |
|
| 66 | +class ErrorHandler implements ErrorHandlerInterface { |
|
| 68 | 67 | /** |
| 69 | 68 | * The content type |
| 70 | 69 | * @var string |
@@ -117,8 +116,7 @@ discard block |
||
| 117 | 116 | * Create new instance |
| 118 | 117 | * @param LoggerInterface $logger |
| 119 | 118 | */ |
| 120 | - public function __construct(protected LoggerInterface $logger) |
|
| 121 | - { |
|
| 119 | + public function __construct(protected LoggerInterface $logger) { |
|
| 122 | 120 | //Add default renderer |
| 123 | 121 | $this->addDefaultsRenderer(); |
| 124 | 122 | } |
@@ -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); |