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 ( a39841...23e3c6 )
by
unknown
02:58
created
src/Console/Application.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use Netresearch\Kite\Exception;
20 20
 use Netresearch\Kite\Service\Config;
21 21
 use Netresearch\Kite\Console\Command\JobCommand;
22
-use Netresearch\Kite\Service\Factory;
23 22
 use Symfony\Component\Console\Command\Command;
24 23
 use Symfony\Component\Console\Input\InputInterface;
25 24
 use Symfony\Component\Console\Input\InputOption;
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             list($dir, $file) = $dirAndFile;
81 81
             if (is_dir($dir)) {
82 82
                 $app = $appName;
83
-                $expectedFile = $dir . '/' . $file;
83
+                $expectedFile = $dir.'/'.$file;
84 84
                 break;
85 85
             }
86 86
         }
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
         } catch (\Exception $e) {
91 91
             if ($app) {
92 92
                 $message = [
93
-                    'You appear to be in a ' . $app . ' root directory but',
93
+                    'You appear to be in a '.$app.' root directory but',
94 94
                     'there is no kite config file at the expected',
95
-                    'location (' . $expectedFile . ').'
95
+                    'location ('.$expectedFile.').'
96 96
                 ];
97 97
             } else {
98 98
                 $message = [
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
                     'The config file path is expected to be:',
103 103
                 ];
104 104
                 foreach ($indicators as $appName => $dirAndFile) {
105
-                    $message[] = '  - "' . implode('/', $dirAndFile) . '" for ' . $appName . ' applications or';
105
+                    $message[] = '  - "'.implode('/', $dirAndFile).'" for '.$appName.' applications or';
106 106
                 }
107
-                $message[] = '  - "' . $expectedFile . '" for any other application';
107
+                $message[] = '  - "'.$expectedFile.'" for any other application';
108 108
             }
109 109
             $lMax = 0;
110 110
             foreach ($message as $line) {
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
                     $lMax = $l;
113 113
                 }
114 114
             }
115
-            $this->output->writeln('<warning>' . str_repeat(' ', $lMax + 4) . '</warning>');
115
+            $this->output->writeln('<warning>'.str_repeat(' ', $lMax + 4).'</warning>');
116 116
             foreach ($message as $line) {
117 117
                 $line = str_pad($line, $lMax + 2);
118 118
                 $this->output->writeln("<warning>  $line</warning>");
119 119
             }
120
-            $this->output->writeln('<warning>' . str_repeat(' ', $lMax + 4) . '</warning>');
120
+            $this->output->writeln('<warning>'.str_repeat(' ', $lMax + 4).'</warning>');
121 121
         }
122 122
     }
123 123
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             . "| ' /| | __/ _ \\\n"
135 135
             . "| . \\| | |_| __/\n"
136 136
             . "|_|\\_|_|\\__\\___|\n\n"
137
-            . $this->getLongVersion() . "\n\n"
137
+            . $this->getLongVersion()."\n\n"
138 138
             . $this->getSelfPackage()->description;
139 139
 
140 140
         return $help;
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         if (isset($package->source)) {
153 153
             $v .= " <comment>({$package->source->reference})</comment>";
154 154
         }
155
-        $v .= ' ' . $package->time;
155
+        $v .= ' '.$package->time;
156 156
         return $v;
157 157
     }
158 158
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     {
166 166
         static $package = null;
167 167
         if (!$package) {
168
-            $files = [__DIR__ . '/../../../../composer/installed.json', __DIR__ . '/vendor/composer/installed.json'];
168
+            $files = [__DIR__.'/../../../../composer/installed.json', __DIR__.'/vendor/composer/installed.json'];
169 169
             foreach ($files as $file) {
170 170
                 if (file_exists($file)) {
171 171
                     $installed = json_decode(file_get_contents($file));
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         $definition->addOption(new InputOption('workflow', null, InputOption::VALUE_OPTIONAL, 'Run a workflow on the fly'));
196 196
 
197 197
         if (isset($_SERVER['HOME']) && is_writable($_SERVER['HOME'])) {
198
-            $debugDir = $_SERVER['HOME'] . '/.kite/log';
198
+            $debugDir = $_SERVER['HOME'].'/.kite/log';
199 199
         } else {
200 200
             $debugDir = false;
201 201
         }
@@ -239,19 +239,19 @@  discard block
 block discarded – undo
239 239
                 $strInput .= ' --help';
240 240
             }
241 241
             $workflow = $input->getParameterOption('--workflow');
242
-            $jobName = 'generic:workflow:' . $workflow;
242
+            $jobName = 'generic:workflow:'.$workflow;
243 243
             $this->config->configureJob($jobName, array('workflow' => $workflow));
244 244
             $command = new JobCommand($jobName, $this->config);
245 245
             $this->add($command);
246 246
 
247
-            $parameterOption = '--workflow=' . $workflow;
247
+            $parameterOption = '--workflow='.$workflow;
248 248
             $input = new StringInput(
249 249
                 rtrim(
250
-                    $jobName . ' ' .
250
+                    $jobName.' '.
251 251
                     str_replace(
252 252
                         array(
253
-                            $parameterOption . ' ',
254
-                            ' ' . $parameterOption,
253
+                            $parameterOption.' ',
254
+                            ' '.$parameterOption,
255 255
                             $parameterOption
256 256
                         ), '', $strInput
257 257
                     )
Please login to merge, or discard this patch.
src/Console/Output/ConsoleOutput.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * ConsoleOutput constructor.
30 30
      *
31
-     * @param int|mixed                     $verbosity The verbosity
31
+     * @param integer                     $verbosity The verbosity
32 32
      * @param boolean                       $decorated If output should be decorated
33 33
      * @param OutputFormatterInterface|null $formatter Formatter
34 34
      */
Please login to merge, or discard this patch.
src/Console/Output/Output.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * Constructor.
54 54
      *
55
-     * @param mixed                         $stream    A stream resource
55
+     * @param resource                         $stream    A stream resource
56 56
      * @param int                           $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
57 57
      * @param bool|null                     $decorated Whether to decorate messages (null for auto-guessing)
58 58
      * @param OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     /**
131 131
      * Write to output
132 132
      *
133
-     * @param array|string $messages Messages
133
+     * @param string|null $messages Messages
134 134
      * @param bool         $newline  Whether to append a newline
135 135
      * @param int          $type     The output type
136 136
      *
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 namespace Netresearch\Kite\Service;
16 16
 
17 17
 use Netresearch\Kite\Console\Output\Output;
18
-
19 18
 use Symfony\Component\Console\Application;
20 19
 use Symfony\Component\Console\Helper;
21 20
 use Symfony\Component\Console\Input\InputInterface;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,10 +149,10 @@
 block discarded – undo
149 149
                     $newline = true;
150 150
                 }
151 151
                 if ($this->previousWasNewLine && $l >= 0 && $message[0] !== "\n") {
152
-                    $message = $this->getIndention() . $message;
152
+                    $message = $this->getIndention().$message;
153 153
                 }
154 154
                 if (strpos($message, "\n") !== false) {
155
-                    $message = str_replace("\n", "\n" . $this->getIndention(), $message);
155
+                    $message = str_replace("\n", "\n".$this->getIndention(), $message);
156 156
                 }
157 157
 
158 158
                 // TODO: Indent wrapped lines - that's just not that easy because of the ANSI color escape codes
Please login to merge, or discard this patch.
src/Service/Console.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 namespace Netresearch\Kite\Service;
16 16
 
17 17
 use Netresearch\Kite\Console\Output\Output;
18
-
19 18
 use Symfony\Component\Console\Application;
20 19
 use Symfony\Component\Console\Helper;
21 20
 use Symfony\Component\Console\Input\InputInterface;
Please login to merge, or discard this patch.
src/Service/Process.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
      * @param callable|null $callback A PHP callback to run whenever there is some
136 136
      *                                output available on STDOUT or STDERR
137 137
      *
138
-     * @return mixed The output of the shell command or FALSE if the command returned a non-zero exit code and $ignoreErrors was enabled.
138
+     * @return null|string The output of the shell command or FALSE if the command returned a non-zero exit code and $ignoreErrors was enabled.
139 139
      */
140 140
     public function run($callback = NULL)
141 141
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         } elseif (is_array($command)) {
67 67
             $command = implode('; ', $command);
68 68
         } else {
69
-            throw new \Netresearch\Kite\Exception('Command must be string or array, ' . gettype($command) . ' given.', 1312454906);
69
+            throw new \Netresearch\Kite\Exception('Command must be string or array, '.gettype($command).' given.', 1312454906);
70 70
         }
71 71
 
72 72
         parent::__construct($command, $cwd, null, null, null);
@@ -141,14 +141,14 @@  discard block
 block discarded – undo
141 141
     {
142 142
         $command = $this->getCommandLine();
143 143
 
144
-        $this->console->output('<cmd>' . $this->getWorkingDirectory() . ' > ' . $command . '</cmd>', OutputInterface::VERBOSITY_VERBOSE);
144
+        $this->console->output('<cmd>'.$this->getWorkingDirectory().' > '.$command.'</cmd>', OutputInterface::VERBOSITY_VERBOSE);
145 145
 
146 146
         if ($this->dryRun) {
147 147
             return null;
148 148
         }
149 149
 
150 150
         parent::run(
151
-            function ($type, $buffer) use ($callback) {
151
+            function($type, $buffer) use ($callback) {
152 152
                 if ($callback) {
153 153
                     call_user_func($callback, $type, $buffer);
154 154
                 }
Please login to merge, or discard this patch.
src/Task/FsTask.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 namespace Netresearch\Kite\Task;
16 16
 
17 17
 
18
-use Netresearch\Kite\Exception;
19 18
 use Netresearch\Kite\Task;
20 19
 
21 20
 /**
Please login to merge, or discard this patch.
src/Task/ShellTask.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
     /**
137 137
      * Execute the command
138 138
      *
139
-     * @return mixed
139
+     * @return null|string
140 140
      */
141 141
     protected function executeCommand()
142 142
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         $process = $this->console->createProcess($this->getCommand(), $this->get('cwd'));
144 144
         $process->setDryRun(!$this->shouldExecute());
145 145
         foreach ($this->get('processSettings') as $key => $value) {
146
-            $process->{'set' . ucfirst($key)}($value);
146
+            $process->{'set'.ucfirst($key)}($value);
147 147
         }
148 148
         return $process->run();
149 149
     }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                 if ($options || $arguments) {
170 170
                     throw new Exception('Can not combine argv with options or arguments');
171 171
                 }
172
-                $cmd .= ' ' . (is_array($argv) ? implode(' ', $argv) : $argv);
172
+                $cmd .= ' '.(is_array($argv) ? implode(' ', $argv) : $argv);
173 173
             } else {
174 174
                 $cmd .= $this->renderOptions($options);
175 175
                 $cmd .= $this->renderArguments($arguments);
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         $argumentString = '';
225 225
         foreach ($arguments as $argument) {
226 226
             $value = $this->expand($argument);
227
-            $argumentString .= ' ' . escapeshellarg($value);
227
+            $argumentString .= ' '.escapeshellarg($value);
228 228
         }
229 229
         return $argumentString;
230 230
     }
Please login to merge, or discard this patch.
src/Task/SubTask.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,6 @@
 block discarded – undo
15 15
 namespace Netresearch\Kite\Task;
16 16
 use Netresearch\Kite\Task;
17 17
 use Netresearch\Kite\Tasks;
18
-use Netresearch\Kite\Workflow;
19
-use Netresearch\Kite\Exception;
20 18
 
21 19
 /**
22 20
  * Run tasks or a workflow within a task
Please login to merge, or discard this patch.
src/Tasks.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
     /**
427 427
      * Execute the next fetched task after given $task
428 428
      *
429
-     * @param Task|string $task Task or task name
429
+     * @param string $task Task or task name
430 430
      *
431 431
      * @return $this
432 432
      */
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
      * @param string $question The question
445 445
      * @param string $default  The default value
446 446
      *
447
-     * @return mixed|\Netresearch\Kite\Task
447
+     * @return string
448 448
      */
449 449
     public function answer($question, $default = null)
450 450
     {
@@ -506,11 +506,11 @@  discard block
 block discarded – undo
506 506
      * Run a composer command
507 507
      *
508 508
      * @param string            $command         The command to execute
509
-     * @param array|string|null $optArg          Options and arguments
509
+     * @param string $optArg          Options and arguments
510 510
      *                                           {@see \Netresearch\Kite\Task\ShellTask}
511 511
      * @param array             $processSettings Settings for symfony process class
512 512
      *
513
-     * @return string|\Netresearch\Kite\Task\ComposerTask
513
+     * @return string
514 514
      */
515 515
     public function composer($command, $optArg = null, array $processSettings = array())
516 516
     {
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
      *                                           {@see \Netresearch\Kite\Task\ShellTask}
567 567
      * @param array             $processSettings Settings for symfony process class
568 568
      *
569
-     * @return Task\GitTask|string
569
+     * @return string
570 570
      */
571 571
     public function git($command, $cwd = null, $optArg = null, array $processSettings = array())
572 572
     {
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
     /**
577 577
      * Run a workflow for each of the $array's values.
578 578
      *
579
-     * @param array|\Traversable $array    The object to iterate over
579
+     * @param string $array    The object to iterate over
580 580
      * @param string|array       $as       Either string for
581 581
      *                                     foreach ($array as $as)
582 582
      *                                     or array for
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
      *                                           {@see \Netresearch\Kite\Task\ShellTask}
634 634
      * @param array             $processSettings Settings for symfony process class
635 635
      *
636
-     * @return Task\RemoteShellTask|string
636
+     * @return string
637 637
      */
638 638
     public function remoteShell($command, $cwd = null, $optArg = null, array $processSettings = array())
639 639
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         if (!$name) {
284 284
             return 0;
285 285
         }
286
-        $key = $type . ':' . $name;
286
+        $key = $type.':'.$name;
287 287
         $tasksAdded = 0;
288 288
         if (array_key_exists($key, $this->job->deferredTasks)) {
289 289
             while ($task = array_shift($this->job->deferredTasks[$key])) {
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
                 $shouldRun = $if;
311 311
             } elseif (is_string($if)) {
312 312
                 $shouldRun = (boolean) $task->expand(
313
-                    '{' . $if . ' ? 1 : 0}'
313
+                    '{'.$if.' ? 1 : 0}'
314 314
                 );
315 315
             } else {
316 316
                 $shouldRun = call_user_func_array($if, array($task, $this->console));
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
                     if ($name === '@self') {
350 350
                         $name = $this->get('name');
351 351
                     }
352
-                    $key = $type . ':' . $name;
352
+                    $key = $type.':'.$name;
353 353
                     $this->job->deferredTasks[$key][] = $task;
354 354
                 }
355 355
             }
Please login to merge, or discard this patch.