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.
Completed
Push — master ( eb711b...dd123b )
by
unknown
03:27
created
src/Service/Composer/Package.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
         if (is_string($composerJson)) {
71 71
             $path = realpath($composerJson);
72 72
             if (!$path) {
73
-                throw new Exception('Could not find ' . $composerJson);
73
+                throw new Exception('Could not find '.$composerJson);
74 74
             }
75 75
             $this->path = dirname($path);
76 76
             $composerJson = json_decode(file_get_contents($path));
77 77
             if (!is_object($composerJson)) {
78
-                throw new Exception('Could not load ' . $path);
78
+                throw new Exception('Could not load '.$path);
79 79
             }
80 80
         }
81 81
         foreach (get_object_vars($composerJson) as $key => $value) {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     {
97 97
         switch ($name) {
98 98
         case 'git':
99
-            $gitDir = $this->path . '/.git';
99
+            $gitDir = $this->path.'/.git';
100 100
             $this->git = file_exists($gitDir) && is_dir($gitDir);
101 101
             break;
102 102
         case 'branches':
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             $this->loadRequires();
115 115
             break;
116 116
         default:
117
-            throw new Exception('Invalid property ' . $name);
117
+            throw new Exception('Invalid property '.$name);
118 118
 
119 119
         }
120 120
         return $this->$name;
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function reloadRequires()
160 160
     {
161
-        $file = $this->path . '/composer.json';
161
+        $file = $this->path.'/composer.json';
162 162
         if (file_exists($file)) {
163 163
             $composerJson = json_decode(file_get_contents($file));
164 164
             unset($this->require);
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         if ($this->git) {
213 213
             $this->composer->git('fetch', $this->path, array('p' => true, 'origin'));
214 214
             try {
215
-                $format = (self::$forEachRefHeadSupported ? '%(HEAD)' : '') . '|%(refname:short)|%(upstream:short)';
215
+                $format = (self::$forEachRefHeadSupported ? '%(HEAD)' : '').'|%(refname:short)|%(upstream:short)';
216 216
                 $gitBr = $this->composer->git('for-each-ref', $this->path, ['format' => $format, 'refs/heads/', 'refs/remotes/origin']);
217 217
             } catch (Exception\ProcessFailedException $e) {
218 218
                 if (trim($e->getProcess()->getErrorOutput()) === 'fatal: unknown field name: HEAD') {
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         try {
253 253
             $this->tag = trim($this->composer->git('describe', $this->path, array('exact-match' => true, 'tags' => true)));
254 254
         } catch (Exception\ProcessFailedException $e) {
255
-            $this->tag =  null;
255
+            $this->tag = null;
256 256
         }
257 257
     }
258 258
 }
Please login to merge, or discard this patch.
src/Workflow/Composer/Diagnose.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             if (substr($method, 0, 5) === 'check' && $method[5] === strtoupper($method[5])) {
59 59
                 $check = substr($method, 5);
60 60
                 $this->checks[] = $check;
61
-                if (method_exists($this, 'fix' . $check)) {
61
+                if (method_exists($this, 'fix'.$check)) {
62 62
                     $this->fixes[] = $check;
63 63
                 }
64 64
             }
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
             'check' => array(
69 69
                 'type' => 'array',
70 70
                 'option' => true,
71
-                'label' => 'Only execute these checks - available checks are ' . implode(', ', $this->checks),
71
+                'label' => 'Only execute these checks - available checks are '.implode(', ', $this->checks),
72 72
             ),
73 73
             'fix' => array(
74 74
                 'type' => 'boolean|array',
75 75
                 'option' => true,
76
-                'label' => 'Enable fixes and optionally reduce to certain fixes - available fixes are ' . implode(', ', $this->fixes),
76
+                'label' => 'Enable fixes and optionally reduce to certain fixes - available fixes are '.implode(', ', $this->fixes),
77 77
             ),
78 78
         ) + parent::configureVariables();
79 79
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public function assemble()
87 87
     {
88 88
         $this->callback(
89
-            function () {
89
+            function() {
90 90
                 $fix = $this->get('fix');
91 91
                 $fixes = ($fix === true) ? $this->fixes : (array) $fix;
92 92
                 $checks = $this->get('check') ?: $this->checks;
@@ -120,11 +120,11 @@  discard block
 block discarded – undo
120 120
             if ($packageNames && !in_array($package->name, $packageNames, true)) {
121 121
                 continue;
122 122
             }
123
-            if (is_string($message = $this->{'check' . $check}($package))) {
123
+            if (is_string($message = $this->{'check'.$check}($package))) {
124 124
                 if (!$packageNames && !$errors) {
125 125
                     $this->console->output(
126 126
                         str_repeat(chr(8), strlen($check))
127
-                        . '<fg=red;bg=black>' . $check . '</>'
127
+                        . '<fg=red;bg=black>'.$check.'</>'
128 128
                     );
129 129
                 }
130 130
                 $message = sprintf($message, "package <comment>$package->name</>");
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 if ($fix) {
134 134
                     $this->dontCheckCurrentPackageAgain = false;
135 135
                     $this->console->indent();
136
-                    $this->{'fix' . $check}($package);
136
+                    $this->{'fix'.$check}($package);
137 137
                     $this->console->outdent();
138 138
                     if (!$this->dontCheckCurrentPackageAgain) {
139 139
                         $rerunForPackages[] = $package->name;
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             if (!$errors) {
156 156
                 $this->console->output(
157 157
                     str_repeat(chr(8), strlen($check))
158
-                    . '<fg=green;bg=black>' . $check . '</>'
158
+                    . '<fg=green;bg=black>'.$check.'</>'
159 159
                 );
160 160
             }
161 161
             $this->console->outdent();
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             $this->git('reset', $package->path);
213 213
             $args = 'save -u';
214 214
             if ($message = $this->answer('Message for stash:')) {
215
-                $args .= ' ' . escapeshellarg($message);
215
+                $args .= ' '.escapeshellarg($message);
216 216
             }
217 217
             $this->git('stash', $package->path, $args);
218 218
             break;
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         case 2:
284 284
             foreach ($commands as $command) {
285 285
                 $pck = "<comment>{$package->name}</comment>";
286
-                $this->console->output($msg = ucfirst($command) . "ing $pck...", false);
286
+                $this->console->output($msg = ucfirst($command)."ing $pck...", false);
287 287
                 $this->git($command, $package->path, isset($options) ? $options : null);
288 288
                 $this->console->output(
289 289
                     str_repeat(chr(8), strlen(strip_tags($msg)))
@@ -330,8 +330,8 @@  discard block
 block discarded – undo
330 330
                         }
331 331
                         if ($package->requiredBranch && $package->requiredBranch !== $requiredBranch) {
332 332
                             $package->invalidRequirements = true;
333
-                            return '<error>' . array_pop($dependentPackages)
334
-                                . ' and ' . array_pop($dependentPackages)
333
+                            return '<error>'.array_pop($dependentPackages)
334
+                                . ' and '.array_pop($dependentPackages)
335 335
                                 . ' require %s in different branches</error>';
336 336
                         }
337 337
                         $package->requiredBranch = $requiredBranch;
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
                     }
344 344
                 }
345 345
             }
346
-            $constraint = $package->tag ?: 'dev-' . $package->branch;
346
+            $constraint = $package->tag ?: 'dev-'.$package->branch;
347 347
             if ($package->requiredBranch && $package->requiredBranch !== $package->branch) {
348 348
                 return "%s is at <comment>$constraint</comment> but is required at <comment>dev-{$package->requiredBranch}</comment>";
349 349
             }
@@ -367,8 +367,8 @@  discard block
 block discarded – undo
367 367
         if ($package->invalidRequirements) {
368 368
             $this->doExit('Can not fix that', 1);
369 369
         }
370
-        $currentConstraint = $package->tag ?: 'dev-' . $package->branch;
371
-        $requiredConstraint = 'dev-' . $package->requiredBranch;
370
+        $currentConstraint = $package->tag ?: 'dev-'.$package->branch;
371
+        $requiredConstraint = 'dev-'.$package->requiredBranch;
372 372
         if ($package->requiredBranch) {
373 373
             $actions = array(
374 374
                 1 => "Show divergent commits between <comment>$currentConstraint</comment> and <comment>$requiredConstraint</comment> (and ask again)",
@@ -424,9 +424,9 @@  discard block
 block discarded – undo
424 424
             if ($counts[0] || $counts[1]) {
425 425
                 $num = $counts[0] ?: $counts[1];
426 426
                 $type = $counts[0] ? 'behind</>' : 'ahead</> of';
427
-                return '%s is <comment>' . $num . ' commit' . ($num > 1 ? 's ' : ' ')
428
-                    . $type . ' locked commit <comment>'
429
-                    . substr($package->source->reference, 0, 7) . '</>';
427
+                return '%s is <comment>'.$num.' commit'.($num > 1 ? 's ' : ' ')
428
+                    . $type.' locked commit <comment>'
429
+                    . substr($package->source->reference, 0, 7).'</>';
430 430
             }
431 431
         }
432 432
         return null;
@@ -544,12 +544,12 @@  discard block
 block discarded – undo
544 544
             $side = $i ? 'left' : 'right';
545 545
             $otherSide = $i ? 'right' : 'left';
546 546
             $args = "--$side-only --cherry-pick --pretty=format:'%C(yellow)%h %Cgreen%cd %an%Creset%n  %s' --abbrev-commit --date=local ";
547
-            $args .= $ref . '...';
547
+            $args .= $ref.'...';
548 548
             $log = $this->git('log', $package->path, $args, array('shy' => true));
549 549
             if ($log) {
550 550
                 $this->console->output('');
551 551
 
552
-                $title = "<info>{${$side . 'Title'}}</info> > <info>{${$otherSide . 'Title'}}</info>";
552
+                $title = "<info>{${$side.'Title'}}</info> > <info>{${$otherSide.'Title'}}</info>";
553 553
                 $this->output($title);
554 554
                 $this->console->output(str_repeat('-', strlen(strip_tags($title))));
555 555
 
Please login to merge, or discard this patch.