Passed
Push — main ( 3399b6...dd4eea )
by Dimitri
11:50
created
src/Cli/Commands/Cache/Clear.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $config  = config('cache');
55 55
         $handler = $this->argument('driver', $config['handler']);
56 56
 
57
-        if (! array_key_exists($handler, $config['valid_handlers'])) {
57
+        if (!array_key_exists($handler, $config['valid_handlers'])) {
58 58
             $this->fail($handler . 'n\'est pas un gestionnaire de cache valide.');
59 59
 
60 60
             return;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $config['handler'] = $handler;
64 64
         $cache             = Services::cache($config);
65 65
 
66
-        if (! $cache->clear()) {
66
+        if (!$cache->clear()) {
67 67
             // @codeCoverageIgnoreStart
68 68
             $this->fail('Erreur lors de l\'effacement du cache.');
69 69
 
Please login to merge, or discard this patch.
src/Cli/Commands/Cache/Info.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
                 'nom'               => $key,
70 70
                 'chemin du serveur' => clean_path($field['server_path']),
71 71
                 'taille'            => number_to_size($field['size']),
72
-                'date'              => $field['date'],                      // @todo formatter avec Utilities\Date
72
+                'date'              => $field['date'], // @todo formatter avec Utilities\Date
73 73
             ];
74 74
         }
75 75
 
Please login to merge, or discard this patch.
src/Cli/Commands/Database/Seed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     {
57 57
         $name = $this->argument('name');
58 58
         if (empty($name)) {
59
-            $name = $this->prompt(lang('Migrations.migSeeder'), null, static function ($val) {
59
+            $name = $this->prompt(lang('Migrations.migSeeder'), null, static function($val) {
60 60
                 if (empty($val)) {
61 61
                     throw new InvalidArgumentException('Veuillez entrer le nom du seeder.');
62 62
                 }
Please login to merge, or discard this patch.
src/Cli/Commands/Database/Migration/Migrate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         $runner->clearMessages();
64 64
         $runner->setFiles(Helper::getMigrationFiles($this->option('all') === true, $namespace));
65 65
 
66
-        if (! $runner->latest($group)) {
66
+        if (!$runner->latest($group)) {
67 67
             $this->fail(lang('Migrations.generalFault')); // @codeCoverageIgnore
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/Cli/Commands/Database/Migration/Rollback.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             // @codeCoverageIgnoreStart
58 58
             $force = $this->option('force');
59 59
 
60
-            if (! $force && ! $this->confirm(lang('Migrations.rollBackConfirm'))) {
60
+            if (!$force && !$this->confirm(lang('Migrations.rollBackConfirm'))) {
61 61
                 return;
62 62
             }
63 63
             // @codeCoverageIgnoreEnd
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         $runner->setFiles(Helper::getMigrationFiles(true));
75 75
 
76
-        if (! $runner->regress($batch, $group)) {
76
+        if (!$runner->regress($batch, $group)) {
77 77
             $this->error(lang('Migrations.generalFault')); // @codeCoverageIgnore
78 78
         }
79 79
 
Please login to merge, or discard this patch.
src/Cli/Commands/Database/Migration/Status.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $status = [];
74 74
 
75 75
         foreach (Helper::getMigrationFiles(true) as $namespace => $files) {
76
-            if (! on_test()) {
76
+            if (!on_test()) {
77 77
                 // Rendre Tests\\Support détectable pour les tests
78 78
                 $this->ignoredNamespaces[] = 'Tests\Support'; // @codeCoverageIgnore
79 79
             }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             }
126 126
         }
127 127
 
128
-        if (! $status) {
128
+        if (!$status) {
129 129
             // @codeCoverageIgnoreStart
130 130
             $this->error(lang('Migrations.noneFound'))->newLine();
131 131
 
Please login to merge, or discard this patch.
src/Cli/Commands/Database/Migration/Refresh.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             // @codeCoverageIgnoreStart
60 60
             $force = $this->option('force');
61 61
 
62
-            if (! $force && ! $this->confirm(lang('Migrations.refreshConfirm'))) {
62
+            if (!$force && !$this->confirm(lang('Migrations.refreshConfirm'))) {
63 63
                 return;
64 64
             }
65 65
 
Please login to merge, or discard this patch.
src/Cli/Commands/Database/CreateDatabase.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $name = $this->argument('name');
61 61
         if (empty($name)) {
62
-            $name = $this->prompt('Nom de la base de données', null, static function ($val) {
62
+            $name = $this->prompt('Nom de la base de données', null, static function($val) {
63 63
                 if (empty($val)) {
64 64
                     throw new InvalidArgumentException('Veuillez entrer le nom de la base de données.');
65 65
                 }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         if ($db instanceof SQLite) {
80 80
             $ext = $this->option('ext', 'db');
81 81
 
82
-            if (! in_array($ext, ['db', 'sqlite'], true)) {
82
+            if (!in_array($ext, ['db', 'sqlite'], true)) {
83 83
                 $ext = $this->prompt('Please choose a valid file extension', ['db', 'sqlite']); // @codeCoverageIgnore
84 84
             }
85 85
 
@@ -106,14 +106,14 @@  discard block
 block discarded – undo
106 106
             $db = Database::connect($config, false);
107 107
             $db->connect();
108 108
 
109
-            if (! is_file($db->getDatabase()) && $name !== ':memory:') {
109
+            if (!is_file($db->getDatabase()) && $name !== ':memory:') {
110 110
                 // @codeCoverageIgnoreStart
111 111
                 $this->error('Echec de la création de la base de données');
112 112
 
113 113
                 return;
114 114
                 // @codeCoverageIgnoreEnd
115 115
             }
116
-        } elseif (! Database::creator($db)->createDatabase($name)) {
116
+        } elseif (!Database::creator($db)->createDatabase($name)) {
117 117
             // @codeCoverageIgnoreStart
118 118
             $this->error('Echec de la création de la base de données');
119 119
 
Please login to merge, or discard this patch.
src/Cli/Commands/Database/TableInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
         $limitRows       = (int) $this->option('limit-rows', 10);
107 107
         $limitFieldValue = (int) $this->option('limit-field-value', 15);
108 108
 
109
-        if (! in_array($tableName, $tables, true)) {
109
+        if (!in_array($tableName, $tables, true)) {
110 110
             $tabs   = $tables;
111 111
             $tables = [];
112 112
 
Please login to merge, or discard this patch.