Passed
Push — develop ( c95d07...475f16 )
by nguereza
03:12
created
src/Service/Provider/ErrorHandlerServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,11 +67,11 @@
 block discarded – undo
67 67
      */
68 68
     public function register(): void
69 69
     {
70
-        $this->app->bind(ErrorHandlerInterface::class, function (ContainerInterface $app) {
70
+        $this->app->bind(ErrorHandlerInterface::class, function(ContainerInterface $app) {
71 71
             return new ErrorHandler($app->get(LoggerInterface::class));
72 72
         });
73 73
 
74
-        $this->app->bind(ErrorHandlerMiddleware::class, function (ContainerInterface $app) {
74
+        $this->app->bind(ErrorHandlerMiddleware::class, function(ContainerInterface $app) {
75 75
             return new ErrorHandlerMiddleware(
76 76
                 $app->get(Config::class)->get('app.debug'),
77 77
                 $app->get(LoggerInterface::class)
Please login to merge, or discard this patch.
src/Http/Middleware/ErrorHandlerMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Service/Provider/TemplateServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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
             return new Configuration($app->get(Config::class)->get('template', []));
74 74
         });
75 75
         $this->app->bind(AbstractCache::class, NullCache::class);
Please login to merge, or discard this patch.
src/Service/Provider/CacheServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Service/Provider/SessionServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,11 +71,11 @@
 block discarded – undo
71 71
     public function register(): void
72 72
     {
73 73
         $cfg = $this->app->get(Config::class)->get('session', []);
74
-        $this->app->bind(Configuration::class, function (ContainerInterface $app) use ($cfg) {
74
+        $this->app->bind(Configuration::class, function(ContainerInterface $app) use ($cfg) {
75 75
             return new Configuration($cfg);
76 76
         });
77 77
         $this->app->bind(Filesystem::class);
78
-        $this->app->bind(SessionHandlerInterface::class, function (ContainerInterface $app) {
78
+        $this->app->bind(SessionHandlerInterface::class, function(ContainerInterface $app) {
79 79
             return new LocalStorage(
80 80
                 $app->get(Filesystem::class),
81 81
                 $app->get(Configuration::class)
Please login to merge, or discard this patch.
src/Service/Provider/LoggerServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
src/Migration/Command/MigrationCreateCommand.php 1 patch
Spacing   -23 removed lines patch added patch discarded remove patch
@@ -159,26 +159,3 @@
 block discarded – undo
159 159
     private function getTemplateClass(): string
160 160
     {
161 161
         return <<<EOF
162
-        <?php
163
-        namespace Platine\Framework\Migration;
164
-
165
-        use Platine\Framework\Migration\AbstractMigration;
166
-
167
-        class %classname% extends AbstractMigration
168
-        {
169
-
170
-            public function up(): void
171
-            {
172
-              //Action when migrate up
173
-
174
-            }
175
-
176
-            public function down(): void
177
-            {
178
-              //Action when migrate down
179
-
180
-            }
181
-        }
182
-        EOF;
183
-    }
184
-}
Please login to merge, or discard this patch.
src/Service/Provider/DatabaseServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,17 +70,17 @@
 block discarded – undo
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
             /** @template T @var Config<T> $config */
75 75
             $config = $app->get(Config::class);
76 76
             $driver = $config->get('database.default', 'default');
77 77
 
78 78
             return new Configuration($config->get('database.connections.' . $driver, []));
79 79
         });
80
-        $this->app->share(Pool::class, function (ContainerInterface $app) {
80
+        $this->app->share(Pool::class, function(ContainerInterface $app) {
81 81
             return new Pool($app->get(Config::class)->get('database', []));
82 82
         });
83
-        $this->app->share(Connection::class, function (ContainerInterface $app) {
83
+        $this->app->share(Connection::class, function(ContainerInterface $app) {
84 84
             return new Connection(
85 85
                 $app->get(Configuration::class),
86 86
                 $app->get(LoggerInterface::class)
Please login to merge, or discard this patch.
src/Migration/Command/MigrationInitCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.