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 ( 0a1fc9...204442 )
by
unknown
02:58
created
src/Console/Application.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             list($dir, $file) = $dirAndFile;
82 82
             if (is_dir($dir)) {
83 83
                 $app = $appName;
84
-                $expectedFile = $dir . '/' . $file;
84
+                $expectedFile = $dir.'/'.$file;
85 85
                 break;
86 86
             }
87 87
         }
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
         } catch (\Exception $e) {
92 92
             if ($app) {
93 93
                 $message = [
94
-                    'You appear to be in a ' . $app . ' root directory but',
94
+                    'You appear to be in a '.$app.' root directory but',
95 95
                     'there is no kite config file at the expected',
96
-                    'location (' . $expectedFile . ').'
96
+                    'location ('.$expectedFile.').'
97 97
                 ];
98 98
             } else {
99 99
                 $message = [
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
                     'The config file path is expected to be:',
104 104
                 ];
105 105
                 foreach ($indicators as $appName => $dirAndFile) {
106
-                    $message[] = '  - "' . implode('/', $dirAndFile) . '" for ' . $appName . ' applications or';
106
+                    $message[] = '  - "'.implode('/', $dirAndFile).'" for '.$appName.' applications or';
107 107
                 }
108
-                $message[] = '  - "' . $expectedFile . '" for any other application';
108
+                $message[] = '  - "'.$expectedFile.'" for any other application';
109 109
             }
110 110
             $lMax = 0;
111 111
             foreach ($message as $line) {
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
                     $lMax = $l;
114 114
                 }
115 115
             }
116
-            $this->output->writeln('<warning>' . str_repeat(' ', $lMax + 4) . '</warning>');
116
+            $this->output->writeln('<warning>'.str_repeat(' ', $lMax + 4).'</warning>');
117 117
             foreach ($message as $line) {
118 118
                 $line = str_pad($line, $lMax + 2);
119 119
                 $this->output->writeln("<warning>  $line</warning>");
120 120
             }
121
-            $this->output->writeln('<warning>' . str_repeat(' ', $lMax + 4) . '</warning>');
121
+            $this->output->writeln('<warning>'.str_repeat(' ', $lMax + 4).'</warning>');
122 122
         }
123 123
     }
124 124
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             . "| ' /| | __/ _ \\\n"
136 136
             . "| . \\| | |_| __/\n"
137 137
             . "|_|\\_|_|\\__\\___|\n\n"
138
-            . $this->getLongVersion() . "\n\n"
138
+            . $this->getLongVersion()."\n\n"
139 139
             . $this->getSelfPackage()->description;
140 140
 
141 141
         return $help;
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         if (isset($package->source)) {
154 154
             $v .= " <comment>({$package->source->reference})</comment>";
155 155
         }
156
-        $v .= ' ' . $package->time;
156
+        $v .= ' '.$package->time;
157 157
         return $v;
158 158
     }
159 159
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     {
167 167
         static $package = null;
168 168
         if (!$package) {
169
-            $files = [__DIR__ . '/../../../../composer/installed.json', __DIR__ . '/vendor/composer/installed.json'];
169
+            $files = [__DIR__.'/../../../../composer/installed.json', __DIR__.'/vendor/composer/installed.json'];
170 170
             foreach ($files as $file) {
171 171
                 if (file_exists($file)) {
172 172
                     $installed = json_decode(file_get_contents($file));
@@ -183,9 +183,9 @@  discard block
 block discarded – undo
183 183
                 $process = new Process('git symbolic-ref -q --short HEAD || git describe --tags --exact-match; git rev-parse HEAD; git show -s --format=%ct HEAD', $kitePath);
184 184
                 $process->run();
185 185
                 if ($output = $process->getOutput()) {
186
-                    $package = json_decode(file_get_contents($kitePath . '/composer.json'));
186
+                    $package = json_decode(file_get_contents($kitePath.'/composer.json'));
187 187
                     list($name, $revision, $tstamp) = explode("\n", trim($output), 3);
188
-                    $package->version = preg_match('/^v?[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?$/i', $name) ? $name : 'dev-' . $name;
188
+                    $package->version = preg_match('/^v?[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9]+)?$/i', $name) ? $name : 'dev-'.$name;
189 189
                     $package->source = (object) ['reference' => $revision];
190 190
                     $package->time = date('Y-m-d H:i:s', $tstamp);
191 191
                 } else {
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         $definition->addOption(new InputOption('workflow', null, InputOption::VALUE_OPTIONAL, 'Run a workflow on the fly'));
208 208
 
209 209
         if (isset($_SERVER['HOME']) && is_writable($_SERVER['HOME'])) {
210
-            $debugDir = $_SERVER['HOME'] . '/.kite/log';
210
+            $debugDir = $_SERVER['HOME'].'/.kite/log';
211 211
         } else {
212 212
             $debugDir = false;
213 213
         }
@@ -251,19 +251,19 @@  discard block
 block discarded – undo
251 251
                 $strInput .= ' --help';
252 252
             }
253 253
             $workflow = $input->getParameterOption('--workflow');
254
-            $jobName = 'generic:workflow:' . $workflow;
254
+            $jobName = 'generic:workflow:'.$workflow;
255 255
             $this->config->configureJob($jobName, array('workflow' => $workflow));
256 256
             $command = new JobCommand($jobName, $this->config);
257 257
             $this->add($command);
258 258
 
259
-            $parameterOption = '--workflow=' . $workflow;
259
+            $parameterOption = '--workflow='.$workflow;
260 260
             $input = new StringInput(
261 261
                 rtrim(
262
-                    $jobName . ' ' .
262
+                    $jobName.' '.
263 263
                     str_replace(
264 264
                         array(
265
-                            $parameterOption . ' ',
266
-                            ' ' . $parameterOption,
265
+                            $parameterOption.' ',
266
+                            ' '.$parameterOption,
267 267
                             $parameterOption
268 268
                         ), '', $strInput
269 269
                     )
Please login to merge, or discard this patch.
src/ExpressionLanguage/ExpressionLanguage.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     {
123 123
         parent::registerFunctions();
124 124
         $functions = [
125
-            'call' => function (array $values, $function) {
125
+            'call' => function(array $values, $function) {
126 126
                 $args = array_slice(func_get_args(), 2);
127 127
                 if (array_key_exists($function, $this->functions)) {
128 128
                     array_unshift($args, $values);
@@ -130,29 +130,29 @@  discard block
 block discarded – undo
130 130
                 }
131 131
                 return call_user_func_array($function, $args);
132 132
             },
133
-            'isset' => function (array $values, $var) {
133
+            'isset' => function(array $values, $var) {
134 134
                 return $values[self::VARIABLES_KEY]->has($var);
135 135
             },
136
-            'empty' => function (array $values, $var) {
136
+            'empty' => function(array $values, $var) {
137 137
                 return !$values[self::VARIABLES_KEY]->has($var) || !$values[self::VARIABLES_KEY]->get($var);
138 138
             },
139
-            'get' => function (array $values, $var) {
139
+            'get' => function(array $values, $var) {
140 140
                 return $values[self::VARIABLES_KEY]->get($var);
141 141
             },
142
-            'set' => function (array $values, $var, $value) {
142
+            'set' => function(array $values, $var, $value) {
143 143
                 $values[self::VARIABLES_KEY]->set($var, $value);
144 144
                 return $value;
145 145
             },
146
-            'confirm' => function (array $values, $question) {
146
+            'confirm' => function(array $values, $question) {
147 147
                 return $this->ask($values[self::VARIABLES_KEY], new ConfirmationQuestion("<question>$question</question> [y] "));
148 148
             },
149
-            'answer' => function (array $values, $question) {
149
+            'answer' => function(array $values, $question) {
150 150
                 return $this->ask($values[self::VARIABLES_KEY], new Question("<question>$question</question> "));
151 151
             },
152
-            'choose' => function (array $values, $question) {
152
+            'choose' => function(array $values, $question) {
153 153
                 return $this->ask($values[self::VARIABLES_KEY], new Question("<question>$question</question> "));
154 154
             },
155
-            'replace' => function (array $values, $search, $replace, $subject, $regex = false) {
155
+            'replace' => function(array $values, $search, $replace, $subject, $regex = false) {
156 156
                 $values[self::VARIABLES_KEY]->console->output(
157 157
                     '<warning>Expression language function "replace" is deprecated '
158 158
                     . 'and will be removed in 1.6.0 - use preg_replace or str_replace</warning>'
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         foreach ($functions as $name => $function) {
168 168
             $this->register(
169 169
                 $name,
170
-                function () {
170
+                function() {
171 171
 
172 172
                 },
173 173
                 $function
Please login to merge, or discard this patch.
src/Workflow/Composer/Base.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             $this->git('push', $package->path, array('u' => 'origin', $package->branch));
93 93
             $this->console->output(
94 94
                 str_repeat(chr(8), strlen($package->name))
95
-                . '<info>' . $package->name . '</info>'
95
+                . '<info>'.$package->name.'</info>'
96 96
             );
97 97
             unset($this->pushPackages[$i]);
98 98
         }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         $unfixedRequirements = 0;
137 137
         while ($packageName = array_shift($checkedOutPackages)) {
138 138
             $branch = $packages[$packageName]->branch;
139
-            $version = 'dev-' . $branch;
139
+            $version = 'dev-'.$branch;
140 140
             foreach ($this->getPackages(false, false) as $package) {
141 141
                 if (array_key_exists($packageName, $package->requires)) {
142 142
                     // TODO: Set required version to branch alias, if any
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         $this->assertPackageAllowed($package);
195 195
 
196 196
         $currentVersion = $package->requires[$requiredPackage];
197
-        $composerFile = $package->path . '/composer.json';
197
+        $composerFile = $package->path.'/composer.json';
198 198
         $composerFileContents = file_get_contents($composerFile);
199 199
         $newComposerFileContents = preg_replace(
200 200
             sprintf(
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
                 preg_quote($requiredPackage, '/'),
203 203
                 preg_quote($currentVersion, '/')
204 204
             ),
205
-            '$1' . $newVersion,
205
+            '$1'.$newVersion,
206 206
             $composerFileContents
207 207
         );
208 208
         file_put_contents($composerFile, $newComposerFileContents);
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     protected function reloadRequires($package)
239 239
     {
240
-        $file = $package->path . '/composer.json';
240
+        $file = $package->path.'/composer.json';
241 241
         if (file_exists($file)) {
242 242
             $composerJson = json_decode(file_get_contents($file));
243 243
             $package->requires = isset($composerJson->require) ? get_object_vars($composerJson->require) : array();
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
         if (!$package->git) {
264 264
             throw new Exception('Non git package can not be checked out');
265 265
         }
266
-        $remoteBranch = 'origin/' . $branch;
266
+        $remoteBranch = 'origin/'.$branch;
267 267
         $isRemote = in_array($remoteBranch, $package->branches, true);
268 268
         if (in_array($branch, $package->branches, true)) {
269 269
             $this->git('checkout', $package->path, $branch);
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
         } elseif ($create) {
273 273
             $branches = array_unique(
274 274
                 array_map(
275
-                    function ($el) {
275
+                    function($el) {
276 276
                         $parts = explode('/', $el);
277 277
                         return array_pop($parts);
278 278
                     },
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
         $this->console->output("Checked out <comment>{$package->name}</comment> at <comment>$branch</comment>");
305 305
 
306 306
         $this->reloadRequires($package);
307
-        $package->version = 'dev-' . $branch;
307
+        $package->version = 'dev-'.$branch;
308 308
         $package->branch = $branch;
309 309
 
310 310
         return true;
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
             throw new Exception('Non git package can not be merged');
329 329
         }
330 330
 
331
-        $this->git('fetch', $package->path, array('force' => true, 'origin', $branch . ':' . $branch));
331
+        $this->git('fetch', $package->path, array('force' => true, 'origin', $branch.':'.$branch));
332 332
 
333 333
         $ff = $branch == 'master' ? 'ff' : 'no-ff';
334 334
         $optArg = array($ff => true, 'no-commit' => true);
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
             if (!$message) {
363 363
                 $message = $this->answer(
364 364
                     'Enter commit message:',
365
-                    'Merged ' . $branch . ' into ' . $package->branch
365
+                    'Merged '.$branch.' into '.$package->branch
366 366
                 );
367 367
             }
368 368
             $this->git('commit', $package->path, array('n' => true, 'm' => $message));
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
      */
384 384
     private function resolveRequirementsConflict($package)
385 385
     {
386
-        $contents = file_get_contents($package->path . '/composer.json');
386
+        $contents = file_get_contents($package->path.'/composer.json');
387 387
         $ours = @json_decode(
388 388
             preg_replace('/^<{7}.+\n(.+)\n(\|{7}|={7}).+>{7}.+$/smU', '$1', $contents)
389 389
         );
@@ -404,16 +404,16 @@  discard block
 block discarded – undo
404 404
         }
405 405
 
406 406
         if (preg_match('/\{[^\{]*<{7}.+?>{7}[^\{]*([\t ]*)\}/smU', $contents, $matches, PREG_OFFSET_CAPTURE)) {
407
-            $prefix = "\n" . str_repeat($matches[1][0], 2);
407
+            $prefix = "\n".str_repeat($matches[1][0], 2);
408 408
             $requireBlock = '';
409 409
             foreach ($this->mergeRequirements($package, $ours, $theirs) as $packageName => $version) {
410
-                $requireBlock .= $prefix . '"' . $packageName . '": "' . $version . '",';
410
+                $requireBlock .= $prefix.'"'.$packageName.'": "'.$version.'",';
411 411
             }
412 412
             file_put_contents(
413
-                $package->path . '/composer.json',
414
-                substr($contents, 0, $matches[0][1]) . '{'
415
-                . rtrim($requireBlock, ',') . "\n"
416
-                . $matches[1][0] . '}'
413
+                $package->path.'/composer.json',
414
+                substr($contents, 0, $matches[0][1]).'{'
415
+                . rtrim($requireBlock, ',')."\n"
416
+                . $matches[1][0].'}'
417 417
                 . substr($contents, $matches[0][1] + strlen($matches[0][0]))
418 418
             );
419 419
         }
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
         $theirsRequire = isset($theirs['require']) && is_object($theirs['require']) ? get_object_vars($theirs['require']) : [];
435 435
         $mergedRequires = array_merge($oursRequire, $theirsRequire);
436 436
         $packages = $this->getPackages(false, false);
437
-        $preferredVersion = 'dev-' . $package->branch;
437
+        $preferredVersion = 'dev-'.$package->branch;
438 438
         foreach ($mergedRequires as $packageName => $version) {
439 439
             $actualVersion = ($version === '@dev') ? 'dev-master' : $version;
440 440
             if (array_key_exists($packageName, $oursRequire)
@@ -500,9 +500,9 @@  discard block
 block discarded – undo
500 500
         if (!is_array($this->whitelists)) {
501 501
             $this->whitelists = [];
502 502
             foreach ($whitelistTypes as $whitelistType) {
503
-                $option = $this->get('whitelist' . ucfirst($whitelistType) . 's');
503
+                $option = $this->get('whitelist'.ucfirst($whitelistType).'s');
504 504
                 if ($option) {
505
-                    $this->whitelists[$whitelistType] = '#^' . $option . '$#';
505
+                    $this->whitelists[$whitelistType] = '#^'.$option.'$#';
506 506
                 }
507 507
             }
508 508
         }
Please login to merge, or discard this patch.