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 ( 4f6c35...a30fcd )
by Albert
01:55
created
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/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.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -119,6 +119,9 @@
 block discarded – undo
119 119
 
120 120
 //end upload()
121 121
 
122
+    /**
123
+     * @return string|null
124
+     */
122 125
     protected function getDiskName()
123 126
     {
124 127
         // For now static from he config file.
Please login to merge, or discard this patch.
Spacing   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             $this->line("\n");
37 37
             $this->info(ucfirst($type));
38 38
             foreach ($files as $file) {
39
-                $this->sectionMessage($type, $file.' uploaded.');
39
+                $this->sectionMessage($type, $file . ' uploaded.');
40 40
             }
41 41
         }
42 42
 
@@ -80,19 +80,18 @@  discard block
 block discarded – undo
80 80
 
81 81
     protected function upload($what)
82 82
     {
83
-        $localPath = Config::get('db-exporter.export_path.'.$what);
83
+        $localPath = Config::get('db-exporter.export_path.' . $what);
84 84
         $dir = scandir($localPath);
85
-        $remotePath = Config::get('db-exporter.remote.'.$what);
85
+        $remotePath = Config::get('db-exporter.remote.' . $what);
86 86
         $this->line("\n");
87 87
         $this->info(ucfirst($what));
88 88
         // Reset file coounter
89 89
         static::$filesCount = 0;
90 90
         // Prepare the progress bar
91
-        array_walk($dir, function ($file) {
91
+        array_walk($dir, function($file) {
92 92
             if ($this->ignoredFile($file)) {
93 93
                 return;
94
-            }
95
-            ++static::$filesCount;
94
+            }++static::$filesCount;
96 95
         });
97 96
         $progress = $this->output->createProgressBar(static::$filesCount);
98 97
         foreach ($dir as $file) {
@@ -102,12 +101,12 @@  discard block
 block discarded – undo
102 101
             }
103 102
 
104 103
             // Capture the uploaded files for displaying later
105
-            $this->uploadedFiles[$what][] = $remotePath.$file;
104
+            $this->uploadedFiles[$what][] = $remotePath . $file;
106 105
 
107 106
             // Copy the files
108 107
             Storage::disk($this->getDiskName())->put(
109
-                $remotePath.$file,
110
-                $localPath.'/'.$file
108
+                $remotePath . $file,
109
+                $localPath . '/' . $file
111 110
             );
112 111
             $progress->advance();
113 112
         }
Please login to merge, or discard this patch.
src/DbExporter/Commands/SeedGeneratorCommand.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@
 block discarded – undo
42 42
             $formatter = $this->getHelperSet()->get('formatter');
43 43
         $filename = $this->getFilename();
44 44
         $errorMessages = [
45
-                               'Success!',
46
-                               "Database seed class generated in: {$filename}",
47
-                              ];
45
+                                'Success!',
46
+                                "Database seed class generated in: {$filename}",
47
+                                ];
48 48
         $formattedBlock = $formatter->formatBlock($errorMessages, 'info', true);
49 49
         $this->line($formattedBlock);
50 50
     }
Please login to merge, or discard this patch.
src/config/db-exporter.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     'backup' => [
5
-       /*
5
+        /*
6 6
         * The disk where your files will be backed up
7 7
         **/
8 8
         'disk' => 'local',
Please login to merge, or discard this patch.
src/DbExporter/Commands/GeneratorCommand.php 1 patch
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 = [
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 [
64 64
                 [
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 [
77 77
                 [
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.
src/DbExporter/DbMigrations.php 1 patch
Indentation   +24 added lines, -24 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
      * Primary key column types.
39 39
      *
@@ -185,11 +185,11 @@  discard block
 block discarded – undo
185 185
             }
186 186
 
187 187
             $this->schema[$value['table_name']] = [
188
-                                                   'up' => $up,
189
-                                                   'constraint' => $Constraint,
190
-                                                   'constraint_down' => $ConstraintDown,
191
-                                                   'down' => $down,
192
-                                                  ];
188
+                                                    'up' => $up,
189
+                                                    'constraint' => $Constraint,
190
+                                                    'constraint_down' => $ConstraintDown,
191
+                                                    'down' => $down,
192
+                                                    ];
193 193
         }//end foreach
194 194
 
195 195
         return $this;
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   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -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();
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/DbMigrationsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 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 38
                 $database = Config::get('database.connections.' . $connType);
39 39
 
Please login to merge, or discard this patch.
src/DbExporter/DbExporter.php 1 patch
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 = [
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 = [
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.