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 ( 67166a...b03190 )
by Albert
02:21
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/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/GeneratorCommand.php 1 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 1 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 1 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.
src/DbExporter/Commands/MigrationsGeneratorCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $this->fireAction('migrate', $database);
39 39
 
40 40
         // Symfony style block messages
41
-        $this->blockMessage('Success!', 'Database migrations generated in: '.$this->handler->getMigrationsFilePath());
41
+        $this->blockMessage('Success!', 'Database migrations generated in: ' . $this->handler->getMigrationsFilePath());
42 42
     }
43 43
 
44 44
 //end fire()
Please login to merge, or discard this patch.
src/DbExporter/DbExporter.php 1 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 $directory) {
131 131
             if (!empty($directory)) {
132
-                $dir .= $del.$directory;
132
+                $dir .= $del . $directory;
133 133
             }
134 134
 
135 135
             if (!is_dir($dir)) {
Please login to merge, or discard this patch.
src/DbExporter/DbExportHandlerServiceProvider.php 1 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();
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.