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 ( d364f9...6c3f28 )
by Albert
01:57
created
src/DbExporter/Commands/CopyToRemoteCommand.php 2 patches
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.