Test Setup Failed
Branch main (1bd993)
by Andrey
10:58
created
Category
src/Console/Refresh.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function handle()
37 37
     {
38
-        if (! $this->confirmToProceed()) {
38
+        if (!$this->confirmToProceed()) {
39 39
             return 1;
40 40
         }
41 41
 
Please login to merge, or discard this patch.
src/Console/Rollback.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@
 block discarded – undo
36 36
      */
37 37
     public function handle()
38 38
     {
39
-        if (! $this->confirmToProceed()) {
39
+        if (!$this->confirmToProceed()) {
40 40
             return 1;
41 41
         }
42 42
 
43
-        $this->migrator->usingConnection($this->optionDatabase(), function () {
43
+        $this->migrator->usingConnection($this->optionDatabase(), function() {
44 44
             $this->migrator->setOutput($this->output)->rollback(
45 45
                 $this->getMigrationPaths(),
46 46
                 ['step' => $this->optionStep()]
Please login to merge, or discard this patch.
src/Console/Reset.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,12 +58,12 @@
 block discarded – undo
58 58
      */
59 59
     public function handle()
60 60
     {
61
-        if (! $this->confirmToProceed()) {
61
+        if (!$this->confirmToProceed()) {
62 62
             return 1;
63 63
         }
64 64
 
65
-        return $this->migrator->usingConnection($this->optionDatabase(), function () {
66
-            if (! $this->migrator->repositoryExists()) {
65
+        return $this->migrator->usingConnection($this->optionDatabase(), function() {
66
+            if (!$this->migrator->repositoryExists()) {
67 67
                 $this->comment('Actions table not found.');
68 68
 
69 69
                 return 1;
Please login to merge, or discard this patch.
src/Console/Migrate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function handle()
40 40
     {
41
-        if (! $this->confirmToProceed()) {
41
+        if (!$this->confirmToProceed()) {
42 42
             return 1;
43 43
         }
44 44
 
45
-        $this->migrator->usingConnection($this->optionDatabase(), function () {
45
+        $this->migrator->usingConnection($this->optionDatabase(), function() {
46 46
             $this->prepareDatabase();
47 47
 
48 48
             $this->migrator->setOutput($this->output)
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     protected function prepareDatabase()
62 62
     {
63
-        if (! $this->migrator->repositoryExists()) {
63
+        if (!$this->migrator->repositoryExists()) {
64 64
             $this->call(Names::INSTALL, array_filter([
65 65
                 '--database' => $this->optionDatabase(),
66 66
             ]));
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -54,21 +54,21 @@  discard block
 block discarded – undo
54 54
 
55 55
     protected function registerRepository(): void
56 56
     {
57
-        $this->app->singleton(Action::REPOSITORY, static function ($app) {
57
+        $this->app->singleton(Action::REPOSITORY, static function($app) {
58 58
             return new DatabaseMigrationRepository($app['db'], $app['config']['actions.table']);
59 59
         });
60 60
     }
61 61
 
62 62
     protected function registerMigrator(): void
63 63
     {
64
-        $this->app->singleton(Action::MIGRATOR, static function ($app) {
64
+        $this->app->singleton(Action::MIGRATOR, static function($app) {
65 65
             return new Migrator($app[Action::REPOSITORY], $app['db'], $app['files'], $app['events']);
66 66
         });
67 67
     }
68 68
 
69 69
     protected function registerCreator(): void
70 70
     {
71
-        $this->app->singleton(Action::CREATOR, static function ($app) {
71
+        $this->app->singleton(Action::CREATOR, static function($app) {
72 72
             return new MigrationCreator($app['files'], __DIR__ . '/../resources/stubs');
73 73
         });
74 74
     }
@@ -84,28 +84,28 @@  discard block
 block discarded – undo
84 84
 
85 85
     protected function registerMigrateCommand(): void
86 86
     {
87
-        $this->app->singleton(Command::MIGRATE, static function ($app) {
87
+        $this->app->singleton(Command::MIGRATE, static function($app) {
88 88
             return new Migrate($app[Action::MIGRATOR], $app[Dispatcher::class]);
89 89
         });
90 90
     }
91 91
 
92 92
     protected function registerMigrateStatusCommand(): void
93 93
     {
94
-        $this->app->singleton(Command::STATUS, static function ($app) {
94
+        $this->app->singleton(Command::STATUS, static function($app) {
95 95
             return new Status($app[Action::MIGRATOR]);
96 96
         });
97 97
     }
98 98
 
99 99
     protected function registerMigrateInstallCommand(): void
100 100
     {
101
-        $this->app->singleton(Command::INSTALL, static function ($app) {
101
+        $this->app->singleton(Command::INSTALL, static function($app) {
102 102
             return new Install($app[Action::REPOSITORY]);
103 103
         });
104 104
     }
105 105
 
106 106
     protected function registerMigrateMakeCommand(): void
107 107
     {
108
-        $this->app->singleton(Command::MAKE, function ($app) {
108
+        $this->app->singleton(Command::MAKE, function($app) {
109 109
             return new Make(
110 110
                 $app[Action::CREATOR],
111 111
                 $app['composer']
@@ -115,21 +115,21 @@  discard block
 block discarded – undo
115 115
 
116 116
     protected function registerMigrateRollbackCommand(): void
117 117
     {
118
-        $this->app->singleton(Command::ROLLBACK, function ($app) {
118
+        $this->app->singleton(Command::ROLLBACK, function($app) {
119 119
             return new Rollback($app[Action::MIGRATOR]);
120 120
         });
121 121
     }
122 122
 
123 123
     protected function registerMigrateResetCommand(): void
124 124
     {
125
-        $this->app->singleton(Command::RESET, function ($app) {
125
+        $this->app->singleton(Command::RESET, function($app) {
126 126
             return new Reset($app[Action::MIGRATOR]);
127 127
         });
128 128
     }
129 129
 
130 130
     protected function registerMigrateRefreshCommand(): void
131 131
     {
132
-        $this->app->singleton(Command::REFRESH, function ($app) {
132
+        $this->app->singleton(Command::REFRESH, function($app) {
133 133
             return new Refresh();
134 134
         });
135 135
     }
Please login to merge, or discard this patch.
src/Support/Migrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
         $this->setConnection($name);
17 17
 
18
-        return tap($callback(), function () use ($prev) {
18
+        return tap($callback(), function() use ($prev) {
19 19
             $this->setConnection($prev);
20 20
         });
21 21
     }
Please login to merge, or discard this patch.