@@ -57,8 +57,7 @@ |
||
| 57 | 57 | * @class CommandServiceProvider |
| 58 | 58 | * @package Platine\Framework\Service\Provider |
| 59 | 59 | */ |
| 60 | -class CommandServiceProvider extends ServiceProvider |
|
| 61 | -{ |
|
| 60 | +class CommandServiceProvider extends ServiceProvider { |
|
| 62 | 61 | /** |
| 63 | 62 | * {@inheritdoc} |
| 64 | 63 | */ |
@@ -56,8 +56,7 @@ |
||
| 56 | 56 | * @class CookieServiceProvider |
| 57 | 57 | * @package Platine\Framework\Service\Provider |
| 58 | 58 | */ |
| 59 | -class CookieServiceProvider extends ServiceProvider |
|
| 60 | -{ |
|
| 59 | +class CookieServiceProvider extends ServiceProvider { |
|
| 61 | 60 | /** |
| 62 | 61 | * {@inheritdoc} |
| 63 | 62 | */ |
@@ -66,8 +66,7 @@ |
||
| 66 | 66 | * @class BaseServiceProvider |
| 67 | 67 | * @package Platine\Framework\Service\Provider |
| 68 | 68 | */ |
| 69 | -class BaseServiceProvider extends ServiceProvider |
|
| 70 | -{ |
|
| 69 | +class BaseServiceProvider extends ServiceProvider { |
|
| 71 | 70 | /** |
| 72 | 71 | * {@inheritdoc} |
| 73 | 72 | */ |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | { |
| 80 | 80 | $this->app->share(Application::class, $this->app); |
| 81 | 81 | $this->app->share('app', $this->app); |
| 82 | - $this->app->share(ConsoleApp::class, function () { |
|
| 82 | + $this->app->share(ConsoleApp::class, function() { |
|
| 83 | 83 | return new ConsoleApp('PLATINE CONSOLE', $this->app->version()); |
| 84 | 84 | }); |
| 85 | 85 | $this->app->share(ContainerInterface::class, $this->app); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $this->app->bind(MiddlewareResolverInterface::class, MiddlewareResolver::class); |
| 90 | 90 | $this->app->bind(MaintenanceMiddleware::class); |
| 91 | 91 | $this->app->bind(MaintenanceDriverInterface::class, FileMaintenanceDriver::class); |
| 92 | - $this->app->bind(EmitterInterface::class, function (ContainerInterface $app) { |
|
| 92 | + $this->app->bind(EmitterInterface::class, function(ContainerInterface $app) { |
|
| 93 | 93 | return new ResponseEmitter( |
| 94 | 94 | $app->get(Config::class)->get('app.response_chunck_size', null) |
| 95 | 95 | ); |
@@ -73,8 +73,7 @@ |
||
| 73 | 73 | * @class AuthServiceProvider |
| 74 | 74 | * @package Platine\Framework\Service\Provider |
| 75 | 75 | */ |
| 76 | -class AuthServiceProvider extends ServiceProvider |
|
| 77 | -{ |
|
| 76 | +class AuthServiceProvider extends ServiceProvider { |
|
| 78 | 77 | /** |
| 79 | 78 | * {@inheritdoc} |
| 80 | 79 | */ |
@@ -62,8 +62,7 @@ |
||
| 62 | 62 | * @class DatabaseServiceProvider |
| 63 | 63 | * @package Platine\Framework\Service\Provider |
| 64 | 64 | */ |
| 65 | -class DatabaseServiceProvider extends ServiceProvider |
|
| 66 | -{ |
|
| 65 | +class DatabaseServiceProvider extends ServiceProvider { |
|
| 67 | 66 | /** |
| 68 | 67 | * {@inheritdoc} |
| 69 | 68 | */ |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | */ |
| 70 | 70 | public function register(): void |
| 71 | 71 | { |
| 72 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
| 72 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) { |
|
| 73 | 73 | /** @template T @var Config<T> $config */ |
| 74 | 74 | $config = $app->get(Config::class); |
| 75 | 75 | $driver = $config->get('database.default', 'default'); |
@@ -84,11 +84,11 @@ discard block |
||
| 84 | 84 | return new Configuration($dbConfig); |
| 85 | 85 | }); |
| 86 | 86 | |
| 87 | - $this->app->share(Pool::class, function (ContainerInterface $app) { |
|
| 87 | + $this->app->share(Pool::class, function(ContainerInterface $app) { |
|
| 88 | 88 | return new Pool($app->get(Config::class)->get('database', [])); |
| 89 | 89 | }); |
| 90 | 90 | |
| 91 | - $this->app->share(Connection::class, function (ContainerInterface $app) { |
|
| 91 | + $this->app->share(Connection::class, function(ContainerInterface $app) { |
|
| 92 | 92 | return new Connection( |
| 93 | 93 | $app->get(Configuration::class), |
| 94 | 94 | $app->get(LoggerInterface::class) |
@@ -56,8 +56,7 @@ |
||
| 56 | 56 | * @class FilesystemServiceProvider |
| 57 | 57 | * @package Platine\Framework\Service\Provider |
| 58 | 58 | */ |
| 59 | -class FilesystemServiceProvider extends ServiceProvider |
|
| 60 | -{ |
|
| 59 | +class FilesystemServiceProvider extends ServiceProvider { |
|
| 61 | 60 | /** |
| 62 | 61 | * {@inheritdoc} |
| 63 | 62 | */ |
@@ -65,8 +65,7 @@ |
||
| 65 | 65 | * @package Platine\Framework\Migration\Command |
| 66 | 66 | * @template T |
| 67 | 67 | */ |
| 68 | -abstract class AbstractCommand extends Command |
|
| 69 | -{ |
|
| 68 | +abstract class AbstractCommand extends Command { |
|
| 70 | 69 | /** |
| 71 | 70 | * The migration repository |
| 72 | 71 | * @var MigrationRepository |
@@ -219,9 +219,9 @@ discard block |
||
| 219 | 219 | { |
| 220 | 220 | /** @var MigrationEntity[] $migrations */ |
| 221 | 221 | $migrations = $this->repository |
| 222 | - ->query() |
|
| 223 | - ->orderBy('version', $orderDir) |
|
| 224 | - ->all(); |
|
| 222 | + ->query() |
|
| 223 | + ->orderBy('version', $orderDir) |
|
| 224 | + ->all(); |
|
| 225 | 225 | $result = []; |
| 226 | 226 | |
| 227 | 227 | foreach ($migrations as $entity) { |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | protected function getMigrationClassName(string $description, string $version): string |
| 244 | 244 | { |
| 245 | 245 | return Str::camel($description, false) |
| 246 | - . Str::replaceFirst('_', '', $version); |
|
| 246 | + . Str::replaceFirst('_', '', $version); |
|
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | /** |
@@ -64,8 +64,7 @@ |
||
| 64 | 64 | * @package Platine\Framework\Migration\Seed\Command |
| 65 | 65 | * @template T |
| 66 | 66 | */ |
| 67 | -abstract class AbstractSeedCommand extends Command |
|
| 68 | -{ |
|
| 67 | +abstract class AbstractSeedCommand extends Command { |
|
| 69 | 68 | /** |
| 70 | 69 | * The configuration to use |
| 71 | 70 | * @var Config<T> |
@@ -55,8 +55,7 @@ |
||
| 55 | 55 | * @class CurrentUrlTag |
| 56 | 56 | * @package Platine\Framework\Template\Tag |
| 57 | 57 | */ |
| 58 | -class CurrentUrlTag extends AbstractTag |
|
| 59 | -{ |
|
| 58 | +class CurrentUrlTag extends AbstractTag { |
|
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
| 62 | 61 | */ |