Test Failed
Push — develop ( 41fb7d...afcd85 )
by nguereza
03:02 queued 18s
created
src/Demo/Form/Validator/AuthValidator.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
     public function setRules(): void
33 33
     {
34 34
         $this->validator->addRules('username', [
35
-           new NotEmpty(),
36
-           new MinLength(3)
35
+            new NotEmpty(),
36
+            new MinLength(3)
37 37
         ]);
38 38
 
39 39
         $this->validator->addRules('password', [
40
-           new NotEmpty(),
40
+            new NotEmpty(),
41 41
         ]);
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
src/Migration/Command/MigrationMigrateCommand.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     ) {
72 72
         parent::__construct($app, $repository, $config, $filesystem);
73 73
         $this->setName('migration:migrate')
74
-             ->setDescription('Upgrade migration to latest');
74
+                ->setDescription('Upgrade migration to latest');
75 75
     }
76 76
 
77 77
     /**
Please login to merge, or discard this patch.
src/Migration/Command/MigrationResetCommand.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Migration/Command/MigrationCreateCommand.php 1 patch
Indentation   +1 added lines, -24 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     ) {
81 81
         parent::__construct($app, $repository, $config, $filesystem);
82 82
         $this->setName('migration:create')
83
-             ->setDescription('Create a new migration');
83
+                ->setDescription('Create a new migration');
84 84
 
85 85
         $this->addArgument('name', 'name of migration', null, false, true);
86 86
     }
@@ -158,26 +158,3 @@  discard block
 block discarded – undo
158 158
     private function getTemplateClass(): string
159 159
     {
160 160
         return <<<EOF
161
-        <?php
162
-        namespace Platine\Framework\Migration;
163
-
164
-        use Platine\Framework\Migration\AbstractMigration;
165
-
166
-        class %classname% extends AbstractMigration
167
-        {
168
-
169
-            public function up(): void
170
-            {
171
-              //Action when migrate up
172
-
173
-            }
174
-
175
-            public function down(): void
176
-            {
177
-              //Action when migrate down
178
-
179
-            }
180
-        }
181
-        EOF;
182
-    }
183
-}
Please login to merge, or discard this patch.
src/Migration/Command/MigrationExecuteCommand.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     ) {
73 73
         parent::__construct($app, $repository, $config, $filesystem);
74 74
         $this->setName('migration:exec')
75
-             ->setDescription('Execute the migration up/down for one version');
75
+                ->setDescription('Execute the migration up/down for one version');
76 76
 
77 77
         $this->addArgument('type', 'type of migration [up|down]', 'up', true, true, false, function ($val) {
78 78
             if (!in_array($val, ['up', 'down'])) {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                 ));
83 83
             }
84 84
 
85
-             return $val;
85
+                return $val;
86 86
         });
87 87
 
88 88
         $this->addOption('-i|--id', 'the migration version', null, false, true);
Please login to merge, or discard this patch.
src/Migration/Command/AbstractCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -214,9 +214,9 @@  discard block
 block discarded – undo
214 214
     protected function getExecuted(string $orderDir = 'ASC'): array
215 215
     {
216 216
         $migrations = $this->repository
217
-                           ->query()
218
-                           ->orderBy('version', $orderDir)
219
-                           ->all();
217
+                            ->query()
218
+                            ->orderBy('version', $orderDir)
219
+                            ->all();
220 220
         $result = [];
221 221
 
222 222
         foreach ($migrations as $entity) {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     protected function getMigrationClassName(string $description, string $version): string
236 236
     {
237 237
         return Str::camel($description, false)
238
-               . Str::replaceFirst('_', '', $version);
238
+                . Str::replaceFirst('_', '', $version);
239 239
     }
240 240
 
241 241
     /**
Please login to merge, or discard this patch.
src/Migration/Command/MigrationStatusCommand.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Auth/Authentication/SessionAuthentication.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -163,11 +163,11 @@
 block discarded – undo
163 163
         }
164 164
 
165 165
         $data = [
166
-          'id' => $user->id,
167
-          'username' => $user->username,
168
-          'lastname' => $user->lastname,
169
-          'firstname' => $user->firstname,
170
-          'permissions' => array_unique($permissions),
166
+            'id' => $user->id,
167
+            'username' => $user->username,
168
+            'lastname' => $user->lastname,
169
+            'firstname' => $user->firstname,
170
+            'permissions' => array_unique($permissions),
171 171
         ];
172 172
 
173 173
         $this->session->set('user', $data);
Please login to merge, or discard this patch.
src/Demo/Action/User/LoginAction.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
             $this->template,
117 117
             'user/login',
118 118
             [
119
-               'param' => $formParam
119
+                'param' => $formParam
120 120
             ]
121 121
         );
122 122
     }
Please login to merge, or discard this patch.