@@ -148,7 +148,7 @@ |
||
148 | 148 | ServerRequestInterface $request, |
149 | 149 | RequestHandlerInterface $handler |
150 | 150 | ): ResponseInterface { |
151 | - set_error_handler(static function ( |
|
151 | + set_error_handler(static function( |
|
152 | 152 | int $severity, |
153 | 153 | string $message, |
154 | 154 | string $file, |
@@ -63,8 +63,7 @@ discard block |
||
63 | 63 | * @class ErrorHandlerMiddleware |
64 | 64 | * @package Platine\Framework\Http\Middleware |
65 | 65 | */ |
66 | -class ErrorHandlerMiddleware implements MiddlewareInterface |
|
67 | -{ |
|
66 | +class ErrorHandlerMiddleware implements MiddlewareInterface { |
|
68 | 67 | /** |
69 | 68 | * The logger instance to use to save error |
70 | 69 | * @var LoggerInterface |
@@ -100,8 +99,7 @@ discard block |
||
100 | 99 | * @param bool $detail |
101 | 100 | * @param LoggerInterface $logger |
102 | 101 | */ |
103 | - public function __construct(bool $detail, LoggerInterface $logger) |
|
104 | - { |
|
102 | + public function __construct(bool $detail, LoggerInterface $logger) { |
|
105 | 103 | $this->detail = $detail; |
106 | 104 | $this->logger = $logger; |
107 | 105 | $this->errorHandler = $this->getDefaultErrorHandler(); |
@@ -70,7 +70,7 @@ |
||
70 | 70 | */ |
71 | 71 | public function register(): void |
72 | 72 | { |
73 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
73 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) { |
|
74 | 74 | return new Configuration($app->get(Config::class)->get('cache', [])); |
75 | 75 | }); |
76 | 76 | $this->app->bind(AdapterInterface::class, LocalAdapter::class); |
@@ -63,8 +63,7 @@ |
||
63 | 63 | * @class CacheServiceProvider |
64 | 64 | * @package Platine\Framework\Service\Provider |
65 | 65 | */ |
66 | -class CacheServiceProvider extends ServiceProvider |
|
67 | -{ |
|
66 | +class CacheServiceProvider extends ServiceProvider { |
|
68 | 67 | /** |
69 | 68 | * {@inheritdoc} |
70 | 69 | */ |
@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | public function register(): void |
69 | 69 | { |
70 | - $this->app->bind(LoggerInterface::class, function (ContainerInterface $app) { |
|
70 | + $this->app->bind(LoggerInterface::class, function(ContainerInterface $app) { |
|
71 | 71 | $cfg = new LoggerConfiguration( |
72 | 72 | $app->get(Config::class)->get('logging', []) |
73 | 73 | ); |
@@ -59,8 +59,7 @@ |
||
59 | 59 | * @class LoggerServiceProvider |
60 | 60 | * @package Platine\Framework\Service\Provider |
61 | 61 | */ |
62 | -class LoggerServiceProvider extends ServiceProvider |
|
63 | -{ |
|
62 | +class LoggerServiceProvider extends ServiceProvider { |
|
64 | 63 | /** |
65 | 64 | * {@inheritdoc} |
66 | 65 | */ |
@@ -71,7 +71,7 @@ |
||
71 | 71 | ) { |
72 | 72 | parent::__construct($app, $repository, $config, $filesystem); |
73 | 73 | $this->setName('migration:reset') |
74 | - ->setDescription('Rollback all migration done before'); |
|
74 | + ->setDescription('Rollback all migration done before'); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -58,8 +58,7 @@ |
||
58 | 58 | * @template T |
59 | 59 | * @extends AbstractCommand<T> |
60 | 60 | */ |
61 | -class MigrationResetCommand extends AbstractCommand |
|
62 | -{ |
|
61 | +class MigrationResetCommand extends AbstractCommand { |
|
63 | 62 | /** |
64 | 63 | * Create new instance |
65 | 64 | * {@inheritdoc} |
@@ -117,7 +117,7 @@ |
||
117 | 117 | protected function createMigrationTable(): void |
118 | 118 | { |
119 | 119 | $tableName = $this->table; |
120 | - $this->schema->create($tableName, function (CreateTable $table) { |
|
120 | + $this->schema->create($tableName, function(CreateTable $table) { |
|
121 | 121 | $table->string('version', 20) |
122 | 122 | ->description('The migration version') |
123 | 123 | ->primary(); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | ) { |
82 | 82 | parent::__construct($app, $repository, $config, $filesystem); |
83 | 83 | $this->setName('migration:init') |
84 | - ->setDescription('Initialize the migration by creating the migration table'); |
|
84 | + ->setDescription('Initialize the migration by creating the migration table'); |
|
85 | 85 | |
86 | 86 | $this->schema = $schema; |
87 | 87 | } |
@@ -121,11 +121,11 @@ discard block |
||
121 | 121 | $tableName = $this->table; |
122 | 122 | $this->schema->create($tableName, function (CreateTable $table) { |
123 | 123 | $table->string('version', 20) |
124 | - ->description('The migration version') |
|
125 | - ->primary(); |
|
124 | + ->description('The migration version') |
|
125 | + ->primary(); |
|
126 | 126 | |
127 | 127 | $table->string('description') |
128 | - ->description('The migration description'); |
|
128 | + ->description('The migration description'); |
|
129 | 129 | |
130 | 130 | $table->datetime('created_at') |
131 | 131 | ->description('Migration run time'); |
@@ -60,8 +60,7 @@ |
||
60 | 60 | * @template T |
61 | 61 | * @extends AbstractCommand<T> |
62 | 62 | */ |
63 | -class MigrationInitCommand extends AbstractCommand |
|
64 | -{ |
|
63 | +class MigrationInitCommand extends AbstractCommand { |
|
65 | 64 | /** |
66 | 65 | * The schema to use |
67 | 66 | * @var Schema |
@@ -72,7 +72,7 @@ |
||
72 | 72 | ) { |
73 | 73 | parent::__construct($app, $repository, $config, $filesystem); |
74 | 74 | $this->setName('migration:status') |
75 | - ->setDescription('Show current status of your migrations'); |
|
75 | + ->setDescription('Show current status of your migrations'); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -59,8 +59,7 @@ |
||
59 | 59 | * @template T |
60 | 60 | * @extends AbstractCommand<T> |
61 | 61 | */ |
62 | -class MigrationStatusCommand extends AbstractCommand |
|
63 | -{ |
|
62 | +class MigrationStatusCommand extends AbstractCommand { |
|
64 | 63 | /** |
65 | 64 | * Create new instance |
66 | 65 | * {@inheritdoc} |
@@ -37,6 +37,5 @@ |
||
37 | 37 | * @class InvalidCredentialsException |
38 | 38 | * @package Platine\Framework\Auth\Exception |
39 | 39 | */ |
40 | -class InvalidCredentialsException extends AuthenticationException |
|
41 | -{ |
|
40 | +class InvalidCredentialsException extends AuthenticationException { |
|
42 | 41 | } |
@@ -37,6 +37,5 @@ |
||
37 | 37 | * @class AccountNotFoundException |
38 | 38 | * @package Platine\Framework\Auth\Exception |
39 | 39 | */ |
40 | -class AccountNotFoundException extends AuthenticationException |
|
41 | -{ |
|
40 | +class AccountNotFoundException extends AuthenticationException { |
|
42 | 41 | } |
@@ -37,6 +37,5 @@ |
||
37 | 37 | * @class MissingCredentialsException |
38 | 38 | * @package Platine\Framework\Auth\Exception |
39 | 39 | */ |
40 | -class MissingCredentialsException extends AuthenticationException |
|
41 | -{ |
|
40 | +class MissingCredentialsException extends AuthenticationException { |
|
42 | 41 | } |