@@ -26,8 +26,8 @@ |
||
26 | 26 | protected string $name; |
27 | 27 | |
28 | 28 | /** |
29 | - * {@inheritdoc} |
|
30 | - */ |
|
29 | + * {@inheritdoc} |
|
30 | + */ |
|
31 | 31 | public function __construct(string $markup, &$tokens, Parser $parser) |
32 | 32 | { |
33 | 33 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
@@ -15,8 +15,7 @@ discard block |
||
15 | 15 | * |
16 | 16 | * @author tony |
17 | 17 | */ |
18 | -class SessionFlashTag extends AbstractTag |
|
19 | -{ |
|
18 | +class SessionFlashTag extends AbstractTag { |
|
20 | 19 | |
21 | 20 | /** |
22 | 21 | * The key of the session |
@@ -27,8 +26,7 @@ discard block |
||
27 | 26 | /** |
28 | 27 | * {@inheritdoc} |
29 | 28 | */ |
30 | - public function __construct(string $markup, &$tokens, Parser $parser) |
|
31 | - { |
|
29 | + public function __construct(string $markup, &$tokens, Parser $parser) { |
|
32 | 30 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
33 | 31 | if ($lexer->match($markup)) { |
34 | 32 | $this->name = $lexer->getStringMatch(0); |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * class AppServiceProvider |
55 | 55 | * @package Platine\Framework |
56 | 56 | */ |
57 | -class AppServiceProvider extends ServiceProvider |
|
58 | -{ |
|
57 | +class AppServiceProvider extends ServiceProvider { |
|
59 | 58 | |
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
@@ -3,6 +3,6 @@ |
||
3 | 3 | use Platine\Framework\Demo\Action\HomeAction; |
4 | 4 | use Platine\Route\Router; |
5 | 5 | |
6 | -return [static function (Router $router): void { |
|
6 | +return [static function(Router $router): void { |
|
7 | 7 | $router->get('/', HomeAction::class, 'home'); |
8 | 8 | }]; |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * class AuthServiceProvider |
56 | 56 | * @package Platine\Framework\Service\Provider |
57 | 57 | */ |
58 | -class AuthServiceProvider extends ServiceProvider |
|
59 | -{ |
|
58 | +class AuthServiceProvider extends ServiceProvider { |
|
60 | 59 | |
61 | 60 | /** |
62 | 61 | * {@inheritdoc} |
@@ -53,15 +53,13 @@ |
||
53 | 53 | * class RedirectResponse |
54 | 54 | * @package Platine\Framework\Http\Response |
55 | 55 | */ |
56 | -class RedirectResponse extends Response |
|
57 | -{ |
|
56 | +class RedirectResponse extends Response { |
|
58 | 57 | |
59 | 58 | /** |
60 | 59 | * Create new instance |
61 | 60 | * @param string $url |
62 | 61 | */ |
63 | - public function __construct(string $url = '/') |
|
64 | - { |
|
62 | + public function __construct(string $url = '/') { |
|
65 | 63 | parent::__construct(302); |
66 | 64 | $this->headers['Location'] = [$url]; |
67 | 65 | } |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * class TemplateResponse |
55 | 55 | * @package Platine\Framework\Http\Response |
56 | 56 | */ |
57 | -class TemplateResponse extends Response |
|
58 | -{ |
|
57 | +class TemplateResponse extends Response { |
|
59 | 58 | |
60 | 59 | protected Template $template; |
61 | 60 |
@@ -51,7 +51,6 @@ |
||
51 | 51 | * class Auth |
52 | 52 | * @package Platine\Framework\Auth |
53 | 53 | */ |
54 | -class Auth |
|
55 | -{ |
|
54 | +class Auth { |
|
56 | 55 | |
57 | 56 | } |
@@ -61,8 +61,7 @@ |
||
61 | 61 | * class AuthenticationMiddleware |
62 | 62 | * @package Platine\Framework\Auth\Middleware |
63 | 63 | */ |
64 | -class AuthenticationMiddleware implements MiddlewareInterface |
|
65 | -{ |
|
64 | +class AuthenticationMiddleware implements MiddlewareInterface { |
|
66 | 65 | |
67 | 66 | /** |
68 | 67 | * The session instance to use |
@@ -61,8 +61,7 @@ |
||
61 | 61 | * class AuthorizationMiddleware |
62 | 62 | * @package Platine\Framework\Auth\Middleware |
63 | 63 | */ |
64 | -class AuthorizationMiddleware implements MiddlewareInterface |
|
65 | -{ |
|
64 | +class AuthorizationMiddleware implements MiddlewareInterface { |
|
66 | 65 | |
67 | 66 | /** |
68 | 67 | * The session instance to use |