Passed
Push — develop ( 629c3a...e7c784 )
by nguereza
03:51
created
src/Migration/Command/AbstractCommand.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Migration/Command/MigrationStatusCommand.php 2 patches
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.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
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}
@@ -79,8 +78,7 @@  discard block
 block discarded – undo
79 78
     /**
80 79
      * {@inheritdoc}
81 80
      */
82
-    public function execute()
83
-    {
81
+    public function execute() {
84 82
         $writer = $this->io()->writer();
85 83
         $writer->boldYellow('MIGRATION STATUS', true)->eol();
86 84
         $writer->bold('Migration path: ');
Please login to merge, or discard this patch.
src/Auth/Exception/InvalidCredentialsException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Auth/Exception/AccountNotFoundException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Auth/Exception/MissingCredentialsException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Auth/Exception/AuthenticationException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,6 +39,5 @@
 block discarded – undo
39 39
  * @class AuthenticationException
40 40
  * @package Platine\Framework\Auth\Exception
41 41
  */
42
-class AuthenticationException extends Exception
43
-{
42
+class AuthenticationException extends Exception {
44 43
 }
Please login to merge, or discard this patch.
src/Auth/Exception/AccountLockedException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class AccountLockedException
38 38
  * @package Platine\Framework\Auth\Exception
39 39
  */
40
-class AccountLockedException extends AuthenticationException
41
-{
40
+class AccountLockedException extends AuthenticationException {
42 41
 }
Please login to merge, or discard this patch.
src/Auth/Authentication/SessionAuthentication.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@
 block discarded – undo
63 63
  * class SessionAuthentication
64 64
  * @package Platine\Framework\Auth\Authentication
65 65
  */
66
-class SessionAuthentication implements AuthenticationInterface
67
-{
66
+class SessionAuthentication implements AuthenticationInterface {
68 67
     /**
69 68
      * The session instance to use
70 69
      * @var Session
Please login to merge, or discard this patch.
src/Http/Exception/HttpException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
  * @class HttpException
42 42
  * @package Platine\Framework\Http\Exception
43 43
  */
44
-class HttpException extends Exception
45
-{
44
+class HttpException extends Exception {
46 45
     /**
47 46
      * The instance of server request that throw this exception
48 47
      * @var ServerRequestInterface
Please login to merge, or discard this patch.