GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( fa6a42...a007ee )
by Albert
04:34
created
src/DbExporter/DbMigrationsServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@
 block discarded – undo
33 33
     {
34 34
         $this->app->singleton(
35 35
             DbMigrations::class,
36
-            function () {
36
+            function() {
37 37
                 $connType = Config::get('database.default');
38
-                $database = Config::get('database.connections.'.$connType);
38
+                $database = Config::get('database.connections.' . $connType);
39 39
 
40 40
                 return new DbMigrations($database['database']);
41 41
             }
Please login to merge, or discard this patch.
src/DbExporter/DbSeeding.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
 
55 55
         $seed = $this->compile();
56 56
         $absolutePath = Config::get('db-exporter.export_path.seeds');
57
-        $this->filename = ucfirst(Str::camel($this->database)).'DatabaseSeeder';
57
+        $this->filename = ucfirst(Str::camel($this->database)) . 'DatabaseSeeder';
58 58
         $this->makePath($absolutePath);
59
-        file_put_contents($absolutePath."/{$this->filename}.php", $seed);
59
+        file_put_contents($absolutePath . "/{$this->filename}.php", $seed);
60 60
     }
61 61
 
62 62
 //end write()
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
             if ($this->hasTableData($tableData)) {
108 108
                 $stub .= "
109
-        DB::table('".$tableName."')->insert([
109
+        DB::table('".$tableName . "')->insert([
110 110
             {$insertStub}
111 111
         ]);";
112 112
             }
@@ -127,10 +127,10 @@  discard block
 block discarded – undo
127 127
     protected function compile()
128 128
     {
129 129
         // Grab the template
130
-        $template = File::get(__DIR__.'/stubs/seed.stub');
130
+        $template = File::get(__DIR__ . '/stubs/seed.stub');
131 131
 
132 132
         // Replace the classname
133
-        $template = str_replace('{{className}}', ucfirst(Str::camel($this->database)).'DatabaseSeeder', $template);
133
+        $template = str_replace('{{className}}', ucfirst(Str::camel($this->database)) . 'DatabaseSeeder', $template);
134 134
         $template = str_replace('{{run}}', $this->seedingStub, $template);
135 135
 
136 136
         return $template;
Please login to merge, or discard this patch.
src/DbExporter/DbExporter.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -27,27 +27,27 @@
 block discarded – undo
27 27
      * @var array
28 28
      **/
29 29
     protected $selects = array(
30
-                          'column_name as Field',
31
-                          'column_type as Type',
32
-                          'is_nullable as Null',
33
-                          'column_key as Key',
34
-                          'column_default as Default',
35
-                          'extra as Extra',
36
-                          'data_type as Data_Type',
37
-                         );
30
+                            'column_name as Field',
31
+                            'column_type as Type',
32
+                            'is_nullable as Null',
33
+                            'column_key as Key',
34
+                            'column_default as Default',
35
+                            'extra as Extra',
36
+                            'data_type as Data_Type',
37
+                            );
38 38
     /**
39 39
      * Select fields from  constraints.
40 40
      *
41 41
      * @var array
42 42
      **/
43 43
     protected $constraints = array(
44
-                              'key_column_usage.table_name as Table',
45
-                              'key_column_usage.column_name as Field',
46
-                              'key_column_usage.referenced_table_name as ON',
47
-                              'key_column_usage.referenced_column_name as References',
48
-                              'REFERENTIAL_CONSTRAINTS.UPDATE_RULE as onUpdate',
49
-                              'REFERENTIAL_CONSTRAINTS.DELETE_RULE as onDelete',
50
-                             );
44
+                                'key_column_usage.table_name as Table',
45
+                                'key_column_usage.column_name as Field',
46
+                                'key_column_usage.referenced_table_name as ON',
47
+                                'key_column_usage.referenced_column_name as References',
48
+                                'REFERENTIAL_CONSTRAINTS.UPDATE_RULE as onUpdate',
49
+                                'REFERENTIAL_CONSTRAINTS.DELETE_RULE as onDelete',
50
+                                );
51 51
 
52 52
     protected function getTables()
53 53
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $pdo = DB::connection()->getPdo();
55 55
 
56
-        return $pdo->query('SELECT table_name FROM information_schema.tables WHERE table_schema="'.$this->database.'"');
56
+        return $pdo->query('SELECT table_name FROM information_schema.tables WHERE table_schema="' . $this->database . '"');
57 57
     }
58 58
 
59 59
 //end getTables()
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $pdo = DB::connection()->getPdo();
64 64
 
65
-        return $pdo->query('SHOW INDEX FROM '.$this->database.'.'.$table.' WHERE Key_name != "PRIMARY"');
65
+        return $pdo->query('SHOW INDEX FROM ' . $this->database . '.' . $table . ' WHERE Key_name != "PRIMARY"');
66 66
     }
67 67
 
68 68
 //end getTableIndexes()
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     protected function getTableData($table)
114 114
     {
115
-        return DB::table($this->database.'.'.$table)->get();
115
+        return DB::table($this->database . '.' . $table)->get();
116 116
     }
117 117
 
118 118
 //end getTableData()
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $directories = explode($del, $path);
130 130
         foreach ($directories as $key => $directory) {
131 131
             if (!empty($directory)) {
132
-                $dir .= $del.$directory;
132
+                $dir .= $del . $directory;
133 133
             }
134 134
             if (!is_dir($dir)) {
135 135
                 @mkdir($dir);
Please login to merge, or discard this patch.
src/DbExporter/DbExportHandlerServiceProvider.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $this->publishes(
35 35
             [
36
-             realpath(__DIR__.'/../').'/config/db-exporter.php' => config_path('db-exporter.php'),
36
+                realpath(__DIR__.'/../').'/config/db-exporter.php' => config_path('db-exporter.php'),
37 37
             ],
38 38
             'config'
39 39
         );
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         );
45 45
         // Instatiate a new DbMigrations class to send to the handler
46 46
         $this->migrator = $migrator;
47
-         // Load the alias
47
+            // Load the alias
48 48
         $this->loadAlias();
49 49
     }
50 50
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $this->app->register(DbMigrationsServiceProvider::class);
56 56
         // Register the base export handler class
57 57
         $this->registerDbExportHandler();
58
-         // Handle the artisan commands
58
+            // Handle the artisan commands
59 59
         $this->registerCommands();
60 60
     }
61 61
 
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
     public function registerCommands()
75 75
     {
76 76
         $commands = [
77
-                     'Migrations',
78
-                     'Seeds',
79
-                     'Backup',
77
+                        'Migrations',
78
+                        'Seeds',
79
+                        'Backup',
80 80
                     ];
81 81
 
82 82
         foreach ($commands as $command) {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $this->publishes(
35 35
             [
36
-             realpath(__DIR__.'/../').'/config/db-exporter.php' => config_path('db-exporter.php'),
36
+             realpath(__DIR__ . '/../') . '/config/db-exporter.php' => config_path('db-exporter.php'),
37 37
             ],
38 38
             'config'
39 39
         );
40 40
 
41 41
         $this->mergeConfigFrom(
42
-            realpath(__DIR__.'/../').'/config/db-exporter.php',
42
+            realpath(__DIR__ . '/../') . '/config/db-exporter.php',
43 43
             'db-exporter'
44 44
         );
45 45
         // Instatiate a new DbMigrations class to send to the handler
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $this->app->singleton(
100 100
             'db-exporter.migrations',
101
-            function ($app) {
101
+            function($app) {
102 102
                 return new Commands\MigrationsGeneratorCommand($app[DbExportHandler::class]);
103 103
             }
104 104
         );
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     {
114 114
         $this->app->singleton(
115 115
             'db-exporter.seeds',
116
-            function ($app) {
116
+            function($app) {
117 117
                 return new Commands\SeedGeneratorCommand($app[DbExportHandler::class]);
118 118
             }
119 119
         );
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     {
126 126
         $this->app->singleton(
127 127
             'db-exporter.backup',
128
-            function () {
128
+            function() {
129 129
                 return new Commands\CopyToRemoteCommand(new Server());
130 130
             }
131 131
         );
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     {
141 141
         $this->app->bind(
142 142
             DbExportHandler::class,
143
-            function ($app) {
143
+            function($app) {
144 144
                 // Instatiate a new DbSeeding class to send to the handler
145 145
                 $seeder = new DbSeeding($app[DbMigrations::class]->database);
146 146
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
         $this->app->bind(
153 153
             'DbExporter',
154
-            function ($app) {
154
+            function($app) {
155 155
                 return $app[DbExportHandler::class];
156 156
             }
157 157
         );
Please login to merge, or discard this patch.
src/DbExporter/DbExportHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      */
88 88
     public function ignore(...$tables)
89 89
     {
90
-        DbExporter::$ignore = array_merge(DbExporter::$ignore, (array) $tables);
90
+        DbExporter::$ignore = array_merge(DbExporter::$ignore, (array)$tables);
91 91
 
92 92
         return $this;
93 93
     }
Please login to merge, or discard this patch.
src/DbExporter/DbMigrations.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -15,25 +15,25 @@  discard block
 block discarded – undo
15 15
      * @var string
16 16
      **/
17 17
     protected $columns = [
18
-                          'int'        => 'integer',
19
-                          'smallint'   => 'smallInteger',
20
-                          'bigint'     => 'bigInteger',
21
-                          'char '      => 'string',
22
-                          'varchar'    => 'string',
23
-                          'float'      => 'float',
24
-                          'double'     => 'double',
25
-                          'decimal'    => 'decimal',
26
-                          'tinyint'    => 'boolean',
27
-                          'date'       => 'date',
28
-                          'timestamp'  => 'timestamp',
29
-                          'datetime'   => 'dateTime',
30
-                          'longtext'   => 'longText',
31
-                          'mediumtext' => 'mediumText',
32
-                          'text'       => 'text',
33
-                          'longblob'   => 'binary',
34
-                          'blob'       => 'binary',
35
-                          'enum'       => 'enum',
36
-                         ];
18
+                            'int'        => 'integer',
19
+                            'smallint'   => 'smallInteger',
20
+                            'bigint'     => 'bigInteger',
21
+                            'char '      => 'string',
22
+                            'varchar'    => 'string',
23
+                            'float'      => 'float',
24
+                            'double'     => 'double',
25
+                            'decimal'    => 'decimal',
26
+                            'tinyint'    => 'boolean',
27
+                            'date'       => 'date',
28
+                            'timestamp'  => 'timestamp',
29
+                            'datetime'   => 'dateTime',
30
+                            'longtext'   => 'longText',
31
+                            'mediumtext' => 'mediumText',
32
+                            'text'       => 'text',
33
+                            'longblob'   => 'binary',
34
+                            'blob'       => 'binary',
35
+                            'enum'       => 'enum',
36
+                            ];
37 37
 
38 38
     protected $schema;
39 39
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $up        .= "            });\n\n";
147 147
             $Constraint = $ConstraintDown = '';
148 148
             /**
149
-            * @var array
149
+             * @var array
150 150
              */
151 151
             $tableConstraints = $this->getTableConstraints($value['table_name']);
152 152
             if (!is_null($tableConstraints) && count($tableConstraints)) {
@@ -166,11 +166,11 @@  discard block
 block discarded – undo
166 166
             }
167 167
 
168 168
             $this->schema[$value['table_name']] = array(
169
-                                                   'up'              => $up,
170
-                                                   'constraint'      => $Constraint,
171
-                                                   'constraint_down' => $ConstraintDown,
172
-                                                   'down'            => $down,
173
-                                                  );
169
+                                                    'up'              => $up,
170
+                                                    'constraint'      => $Constraint,
171
+                                                    'constraint_down' => $ConstraintDown,
172
+                                                    'down'            => $down,
173
+                                                    );
174 174
         }//end foreach
175 175
 
176 176
         return $this;
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
         $schema       = $this->compile();
74 74
         $absolutePath = Config::get('db-exporter.export_path.migrations');
75 75
         $this->makePath($absolutePath);
76
-        $this->filename   = date('Y_m_d_His').'_create_'.$this->database.'_database.php';
77
-        static::$filePath = $absolutePath."/{$this->filename}";
76
+        $this->filename   = date('Y_m_d_His') . '_create_' . $this->database . '_database.php';
77
+        static::$filePath = $absolutePath . "/{$this->filename}";
78 78
         file_put_contents(static::$filePath, $schema);
79 79
 
80 80
         return static::$filePath;
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             }
108 108
 
109 109
             $down = "Schema::drop('{$value['table_name']}');";
110
-            $up   = "Schema::create('{$value['table_name']}', function(Blueprint $"."table) {\n";
110
+            $up   = "Schema::create('{$value['table_name']}', function(Blueprint $" . "table) {\n";
111 111
 
112 112
             $tableDescribes = $this->getTableDescribes($value['table_name']);
113 113
             // Loop over the tables fields
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                 if (in_array($type, ['var', 'varchar', 'enum', 'decimal', 'float'])) {
124 124
                     $para    = strpos($values->Type, '(');
125 125
                     $opt     = substr($values->Type, ($para + 1), -1);
126
-                    $numbers = $type == 'enum' ? ', array('.$opt.')' : ',  '.$opt;
126
+                    $numbers = $type == 'enum' ? ', array(' . $opt . ')' : ',  ' . $opt;
127 127
                 }
128 128
 
129 129
                 $method = $this->columnType($type);
@@ -131,14 +131,14 @@  discard block
 block discarded – undo
131 131
                     $method = 'increments';
132 132
                 }
133 133
 
134
-                $up .= '                $'."table->{$method}('{$values->Field}'{$numbers}){$nullable}{$default}{$unsigned};\n";
134
+                $up .= '                $' . "table->{$method}('{$values->Field}'{$numbers}){$nullable}{$default}{$unsigned};\n";
135 135
             }//end foreach
136 136
 
137 137
             $tableIndexes = $this->getTableIndexes($value['table_name']);
138 138
             if (!is_null($tableIndexes) && count($tableIndexes)) {
139 139
                 foreach ($tableIndexes as $index) {
140 140
                     if (Str::endsWith($index['Key_name'], '_index')) {
141
-                        $up .= '                $'."table->index('".$index['Column_name']."');\n";
141
+                        $up .= '                $' . "table->index('" . $index['Column_name'] . "');\n";
142 142
                     }
143 143
                 }
144 144
             }
@@ -151,12 +151,12 @@  discard block
 block discarded – undo
151 151
             $tableConstraints = $this->getTableConstraints($value['table_name']);
152 152
             if (!is_null($tableConstraints) && count($tableConstraints)) {
153 153
                 $Constraint = $ConstraintDown = "
154
-            Schema::table('{$value['table_name']}', function(Blueprint $"."table) {\n";
154
+            Schema::table('{$value['table_name']}', function(Blueprint $" . "table) {\n";
155 155
                 $tables     = [];
156 156
                 foreach ($tableConstraints as $foreign) {
157 157
                     if (!in_array($foreign->Field, $tables)) {
158
-                        $ConstraintDown .= '                $'."table->dropForeign('".$foreign->Field."');\n";
159
-                        $Constraint     .= '                $'."table->foreign('".$foreign->Field."')->references('".$foreign->References."')->on('".$foreign->ON."')->onDelete('".$foreign->onDelete."');\n";
158
+                        $ConstraintDown .= '                $' . "table->dropForeign('" . $foreign->Field . "');\n";
159
+                        $Constraint     .= '                $' . "table->foreign('" . $foreign->Field . "')->references('" . $foreign->References . "')->on('" . $foreign->ON . "')->onDelete('" . $foreign->onDelete . "');\n";
160 160
                         $tables[$foreign->Field] = $foreign->Field;
161 161
                     }
162 162
                 }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                     continue;
207 207
                 }
208 208
 
209
-                $upSchema       .= "
209
+                $upSchema .= "
210 210
 	    /**
211 211
 	     * Migration schema for table {$name}
212 212
          * 
@@ -223,10 +223,10 @@  discard block
 block discarded – undo
223 223
         }//end if
224 224
 
225 225
         // Grab the template
226
-        $template = File::get(__DIR__.'/stubs/migration.stub');
226
+        $template = File::get(__DIR__ . '/stubs/migration.stub');
227 227
 
228 228
         // Replace the classname
229
-        $template = str_replace('{{name}}', 'Create'.ucfirst(Str::camel($this->database)).'Database', $template);
229
+        $template = str_replace('{{name}}', 'Create' . ucfirst(Str::camel($this->database)) . 'Database', $template);
230 230
 
231 231
         // Replace the up and down values
232 232
         $template = str_replace('{{up}}', $upSchema, $template);
Please login to merge, or discard this patch.
src/DbExporter/Commands/GeneratorCommand.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
         // Symfony style block messages
38 38
         $formatter = $this->getHelperSet()->get('formatter');
39 39
         $errorMessages = array(
40
-                           $title,
41
-                           $message,
42
-                          );
40
+                            $title,
41
+                            $message,
42
+                            );
43 43
         $formattedBlock = $formatter->formatBlock($errorMessages, $style, true);
44 44
         $this->line($formattedBlock);
45 45
     }
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
     {
63 63
         return array(
64 64
                 array(
65
-                 'database',
66
-                 InputArgument::OPTIONAL,
67
-                 'Override the application database',
65
+                    'database',
66
+                    InputArgument::OPTIONAL,
67
+                    'Override the application database',
68 68
                 ),
69
-               );
69
+                );
70 70
     }
71 71
 
72 72
 //end getArguments()
@@ -75,13 +75,13 @@  discard block
 block discarded – undo
75 75
     {
76 76
         return array(
77 77
                 array(
78
-                 'ignore',
79
-                 'i',
80
-                 InputOption::VALUE_REQUIRED,
81
-                 'Ignore tables to export, seperated by a comma',
82
-                 null,
78
+                    'ignore',
79
+                    'i',
80
+                    InputOption::VALUE_REQUIRED,
81
+                    'Ignore tables to export, seperated by a comma',
82
+                    null,
83 83
                 ),
84
-               );
84
+                );
85 85
     }
86 86
 
87 87
 //end getOptions()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     protected function getDatabaseName()
26 26
     {
27 27
         $connType = Config::get('database.default');
28
-        $database = Config::get('database.connections.'.$connType);
28
+        $database = Config::get('database.connections.' . $connType);
29 29
 
30 30
         return $database['database'];
31 31
     }
Please login to merge, or discard this patch.
src/DbExporter/Commands/SeedGeneratorCommand.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@
 block discarded – undo
45 45
         $filename = $this->getFilename();
46 46
 
47 47
         $errorMessages = array(
48
-                          'Success!',
49
-                          "Database seed class generated in: {$filename}",
50
-                         );
48
+                            'Success!',
49
+                            "Database seed class generated in: {$filename}",
50
+                            );
51 51
 
52 52
         $formattedBlock = $formatter->formatBlock($errorMessages, 'info', true);
53 53
         $this->line($formattedBlock);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@
 block discarded – undo
57 57
 
58 58
     private function getFilename()
59 59
     {
60
-        $filename = ucfirst(Str::camel($this->database)).'DatabaseSeeder';
60
+        $filename = ucfirst(Str::camel($this->database)) . 'DatabaseSeeder';
61 61
 
62
-        return Config::get('db-exporter.export_path.seeds')."/{$filename}.php";
62
+        return Config::get('db-exporter.export_path.seeds') . "/{$filename}.php";
63 63
     }
64 64
 
65 65
 //end getFilename()
Please login to merge, or discard this patch.
src/DbExporter/Commands/CopyToRemoteCommand.php 3 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
     protected $description = 'Command to copy the migrations and/or the seeds to a remote host.';
14 14
 
15 15
     protected $ignoredFiles = [
16
-                               '..',
17
-                               '.',
18
-                               '.gitkeep',
19
-                              ];
16
+                                '..',
17
+                                '.',
18
+                                '.gitkeep',
19
+                                ];
20 20
 
21 21
     protected $uploadedFiles;
22 22
 
@@ -52,20 +52,20 @@  discard block
 block discarded – undo
52 52
     {
53 53
         return [
54 54
                 [
55
-                 'migrations',
56
-                 'm',
57
-                 InputOption::VALUE_NONE,
58
-                 'Upload the migrations to a storage.',
59
-                 null,
55
+                    'migrations',
56
+                    'm',
57
+                    InputOption::VALUE_NONE,
58
+                    'Upload the migrations to a storage.',
59
+                    null,
60 60
                 ],
61 61
                 [
62
-                 'seeds',
63
-                 's',
64
-                 InputOption::VALUE_NONE,
65
-                 'Upload the seeds to the remote host.',
66
-                 null,
62
+                    'seeds',
63
+                    's',
64
+                    InputOption::VALUE_NONE,
65
+                    'Upload the seeds to the remote host.',
66
+                    null,
67 67
                 ],
68
-               ];
68
+                ];
69 69
     }
70 70
 
71 71
 //end getOptions()
Please login to merge, or discard this patch.
Switch Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -86,22 +86,22 @@
 block discarded – undo
86 86
     {
87 87
         $options = $this->option();
88 88
         switch ($options) {
89
-        case ($options['seeds'] === true) && ($options['migrations'] === true):
90
-            if (!$this->upload('migrations')) {
91
-                return false;
92
-            }
89
+            case ($options['seeds'] === true) && ($options['migrations'] === true):
90
+                if (!$this->upload('migrations')) {
91
+                    return false;
92
+                }
93 93
 
94
-            return $this->upload('seeds');
94
+                return $this->upload('seeds');
95 95
 
96
-        case $options['migrations'] === true:
97
-            $this->commandOptions = 'migrations';
96
+            case $options['migrations'] === true:
97
+                $this->commandOptions = 'migrations';
98 98
 
99
-            return $this->upload('migrations');
99
+                return $this->upload('migrations');
100 100
 
101
-        case $options['seeds'] === true:
102
-            $this->commandOptions = 'seeds';
101
+            case $options['seeds'] === true:
102
+                $this->commandOptions = 'seeds';
103 103
 
104
-            return $this->upload('seeds');
104
+                return $this->upload('seeds');
105 105
         }
106 106
     }
107 107
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                 $this->line("\n");
39 39
                 $this->info(ucfirst($type));
40 40
                 foreach ($files as $file) {
41
-                    $this->sectionMessage($type, $file.' uploaded.');
41
+                    $this->sectionMessage($type, $file . ' uploaded.');
42 42
                 }
43 43
             }
44 44
 
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
 
110 110
     private function upload($what)
111 111
     {
112
-        $localPath = Config::get('db-exporter.export_path.'.$what);
112
+        $localPath = Config::get('db-exporter.export_path.' . $what);
113 113
         $dir = scandir($localPath);
114
-        $remotePath = Config::get('db-exporter.remote.'.$what);
114
+        $remotePath = Config::get('db-exporter.remote.' . $what);
115 115
         $this->line("\n");
116 116
         $this->info(ucfirst($what));
117 117
         // Prepare the progress bar
@@ -123,12 +123,12 @@  discard block
 block discarded – undo
123 123
             }
124 124
 
125 125
             // Capture the uploaded files for displaying later
126
-            $this->uploadedFiles[$what][] = $remotePath.$file;
126
+            $this->uploadedFiles[$what][] = $remotePath . $file;
127 127
 
128 128
             // Copy the files
129 129
             Storage::disk($this->getDiskName())->put(
130
-                $remotePath.$file,
131
-                $localPath.'/'.$file
130
+                $remotePath . $file,
131
+                $localPath . '/' . $file
132 132
             );
133 133
             $progress->advance();
134 134
         }
Please login to merge, or discard this patch.