@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class JsonErrorRenderer |
56 | 56 | * @package Platine\Framework\Handler\Error\Renderer |
57 | 57 | */ |
58 | -class JsonErrorRenderer extends AbstractErrorRenderer |
|
59 | -{ |
|
58 | +class JsonErrorRenderer extends AbstractErrorRenderer { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class XmlErrorRenderer |
55 | 55 | * @package Platine\Framework\Handler\Error\Renderer |
56 | 56 | */ |
57 | -class XmlErrorRenderer extends AbstractErrorRenderer |
|
58 | -{ |
|
57 | +class XmlErrorRenderer extends AbstractErrorRenderer { |
|
59 | 58 | /** |
60 | 59 | * {@inheritdoc} |
61 | 60 | */ |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class HtmlErrorRenderer |
56 | 56 | * @package Platine\Framework\Handler\Error\Renderer |
57 | 57 | */ |
58 | -class HtmlErrorRenderer extends AbstractErrorRenderer |
|
59 | -{ |
|
58 | +class HtmlErrorRenderer extends AbstractErrorRenderer { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class ErrorHandlerInterface |
57 | 57 | * @package Platine\Framework\Handler\Error |
58 | 58 | */ |
59 | -interface ErrorHandlerInterface |
|
60 | -{ |
|
59 | +interface ErrorHandlerInterface { |
|
61 | 60 | /** |
62 | 61 | * Handle error and generate the response |
63 | 62 | * @param ServerRequestInterface $request |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class ErrorRenderInterface |
55 | 55 | * @package Platine\Framework\Handler\Error |
56 | 56 | */ |
57 | -interface ErrorRenderInterface |
|
58 | -{ |
|
57 | +interface ErrorRenderInterface { |
|
59 | 58 | /** |
60 | 59 | * Render the error |
61 | 60 | * @param Throwable $exception |
@@ -58,8 +58,7 @@ discard block |
||
58 | 58 | * @package Platine\Framework\Kernel |
59 | 59 | * @template T |
60 | 60 | */ |
61 | -class ConsoleKernel extends BaseKernel |
|
62 | -{ |
|
61 | +class ConsoleKernel extends BaseKernel { |
|
63 | 62 | /** |
64 | 63 | * Console application instance |
65 | 64 | * @var ConsoleApp |
@@ -83,8 +82,7 @@ discard block |
||
83 | 82 | * @param Application $app |
84 | 83 | * @param ConsoleApp $console |
85 | 84 | */ |
86 | - public function __construct(Application $app, ConsoleApp $console) |
|
87 | - { |
|
85 | + public function __construct(Application $app, ConsoleApp $console) { |
|
88 | 86 | parent::__construct($app); |
89 | 87 | $this->console = $console; |
90 | 88 | } |
@@ -132,7 +132,7 @@ |
||
132 | 132 | * @param string|Command $command |
133 | 133 | * @return void |
134 | 134 | */ |
135 | - public function addCommand(string|Command $command): void |
|
135 | + public function addCommand(string | Command $command): void |
|
136 | 136 | { |
137 | 137 | if (is_string($command)) { |
138 | 138 | $command = $this->createCommand($command); |
@@ -59,8 +59,7 @@ |
||
59 | 59 | * @class DatabaseConfigServiceProvider |
60 | 60 | * @package Platine\Framework\Service\Provider |
61 | 61 | */ |
62 | -class DatabaseConfigServiceProvider extends ServiceProvider |
|
63 | -{ |
|
62 | +class DatabaseConfigServiceProvider extends ServiceProvider { |
|
64 | 63 | /** |
65 | 64 | * {@inheritdoc} |
66 | 65 | */ |
@@ -76,7 +76,7 @@ |
||
76 | 76 | DatabaseConfigLoader::class |
77 | 77 | ); |
78 | 78 | |
79 | - $this->app->share(AppDatabaseConfig::class, function (ContainerInterface $app) { |
|
79 | + $this->app->share(AppDatabaseConfig::class, function(ContainerInterface $app) { |
|
80 | 80 | $env = $app->get(Config::class)->get('app.env', ''); |
81 | 81 | return new AppDatabaseConfig( |
82 | 82 | $app->get(DatabaseConfigLoaderInterface::class), |
@@ -68,19 +68,19 @@ |
||
68 | 68 | 'updated_at' => '?date', |
69 | 69 | ]); |
70 | 70 | |
71 | - $mapper->filter('status', function (Query $q, $value) { |
|
71 | + $mapper->filter('status', function(Query $q, $value) { |
|
72 | 72 | $q->where('status')->is($value); |
73 | 73 | }); |
74 | 74 | |
75 | - $mapper->filter('env', function (Query $q, $value) { |
|
75 | + $mapper->filter('env', function(Query $q, $value) { |
|
76 | 76 | $q->where('env')->is($value); |
77 | 77 | }); |
78 | 78 | |
79 | - $mapper->filter('module', function (Query $q, $value) { |
|
79 | + $mapper->filter('module', function(Query $q, $value) { |
|
80 | 80 | $q->where('module')->is($value); |
81 | 81 | }); |
82 | 82 | |
83 | - $mapper->filter('type', function (Query $q, $value) { |
|
83 | + $mapper->filter('type', function(Query $q, $value) { |
|
84 | 84 | $q->where('type')->is($value); |
85 | 85 | }); |
86 | 86 | } |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @package Platine\Framework\Config\Model |
57 | 57 | * @extends Entity<Configuration> |
58 | 58 | */ |
59 | -class Configuration extends Entity |
|
60 | -{ |
|
59 | +class Configuration extends Entity { |
|
61 | 60 | /** |
62 | 61 | * @param EntityMapperInterface<Configuration> $mapper |
63 | 62 | * @return void |
@@ -129,10 +129,10 @@ |
||
129 | 129 | $name = $results['key']; |
130 | 130 | |
131 | 131 | $config = $this->loader->loadConfig([ |
132 | - 'name' => $name, |
|
133 | - 'module' => $module, |
|
134 | - 'env' => $this->env |
|
135 | - ]); |
|
132 | + 'name' => $name, |
|
133 | + 'module' => $module, |
|
134 | + 'env' => $this->env |
|
135 | + ]); |
|
136 | 136 | |
137 | 137 | if ($config === null) { |
138 | 138 | $this->loader->insertConfig([ |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @template TDbConfigurationEntity as \Platine\Framework\Config\Model\Configuration |
58 | 58 | * @implements ArrayAccess<string, mixed> |
59 | 59 | */ |
60 | -class AppDatabaseConfig implements ArrayAccess |
|
61 | -{ |
|
60 | +class AppDatabaseConfig implements ArrayAccess { |
|
62 | 61 | /** |
63 | 62 | * The configuration items loaded |
64 | 63 | * @var array<string, mixed> |