@@ -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> |
@@ -62,8 +62,7 @@ |
||
62 | 62 | * @class ApiAuthServiceProvider |
63 | 63 | * @package Platine\Framework\Service\Provider |
64 | 64 | */ |
65 | -class ApiAuthServiceProvider extends ServiceProvider |
|
66 | -{ |
|
65 | +class ApiAuthServiceProvider extends ServiceProvider { |
|
67 | 66 | /** |
68 | 67 | * {@inheritdoc} |
69 | 68 | */ |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class AuditServiceProvider |
56 | 56 | * @package Platine\Framework\Service\Provider |
57 | 57 | */ |
58 | -class AuditServiceProvider extends ServiceProvider |
|
59 | -{ |
|
58 | +class AuditServiceProvider extends ServiceProvider { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class MakeProviderCommand |
58 | 58 | * @package Platine\Framework\Console\Command |
59 | 59 | */ |
60 | -class MakeProviderCommand extends MakeCommand |
|
61 | -{ |
|
60 | +class MakeProviderCommand extends MakeCommand { |
|
62 | 61 | /** |
63 | 62 | * {@inheritdoc} |
64 | 63 | */ |
@@ -88,7 +88,7 @@ |
||
88 | 88 | parent::__construct($application, $filesystem); |
89 | 89 | |
90 | 90 | $this->setName('make:provider') |
91 | - ->setDescription('Command to generate new service provider class'); |
|
91 | + ->setDescription('Command to generate new service provider class'); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class MakeMiddlewareCommand |
56 | 56 | * @package Platine\Framework\Console\Command |
57 | 57 | */ |
58 | -class MakeMiddlewareCommand extends MakeCommand |
|
59 | -{ |
|
58 | +class MakeMiddlewareCommand extends MakeCommand { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |
@@ -74,7 +74,7 @@ |
||
74 | 74 | parent::__construct($application, $filesystem); |
75 | 75 | |
76 | 76 | $this->setName('make:middleware') |
77 | - ->setDescription('Command to generate new middleware class'); |
|
77 | + ->setDescription('Command to generate new middleware class'); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -58,8 +58,7 @@ |
||
58 | 58 | * @class MakeFormParamCommand |
59 | 59 | * @package Platine\Framework\Console\Command |
60 | 60 | */ |
61 | -class MakeFormParamCommand extends MakeCommand |
|
62 | -{ |
|
61 | +class MakeFormParamCommand extends MakeCommand { |
|
63 | 62 | /** |
64 | 63 | * {@inheritdoc} |
65 | 64 | */ |
@@ -123,7 +123,7 @@ |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | if (isset($values[2])) { |
126 | - $required = in_array($values[2], ['true', '1', 'yes', 'on', 'y']) ; |
|
126 | + $required = in_array($values[2], ['true', '1', 'yes', 'on', 'y']); |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | if (isset($values[3])) { |
@@ -89,7 +89,7 @@ |
||
89 | 89 | parent::__construct($application, $filesystem); |
90 | 90 | |
91 | 91 | $this->setName('make:param') |
92 | - ->setDescription('Command to generate new form parameter class'); |
|
92 | + ->setDescription('Command to generate new form parameter class'); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |