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
presets/common.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         ],
50 50
         'task' => [
51 51
             'type' => 'callback',
52
-            'callback' => function (\Netresearch\Kite\Job $job) {
52
+            'callback' => function(\Netresearch\Kite\Job $job) {
53 53
                 $git = $job->get('git');
54 54
                 $command = $job->get('cmd');
55 55
                 foreach ($job->get('composer.packages') as $package) {
Please login to merge, or discard this patch.
src/ExpressionLanguage/ExpressionLanguage.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -81,66 +81,66 @@
 block discarded – undo
81 81
         parent::registerFunctions();
82 82
         $this->register(
83 83
             'confirm',
84
-            function ($question) {
84
+            function($question) {
85 85
             },
86
-            function (array $values, $question) {
86
+            function(array $values, $question) {
87 87
                 return $this->ask($values[self::VARIABLES_KEY], new ConfirmationQuestion("<question>$question</question> [y] "));
88 88
             }
89 89
         );
90 90
         $this->register(
91 91
             'answer',
92
-            function ($question) {
92
+            function($question) {
93 93
             },
94
-            function (array $values, $question) {
94
+            function(array $values, $question) {
95 95
                 return $this->ask($values[self::VARIABLES_KEY], new Question("<question>$question</question> "));
96 96
             }
97 97
         );
98 98
         $this->register(
99 99
             'choose',
100
-            function ($question) {
100
+            function($question) {
101 101
             },
102
-            function (array $values, $question, array $choices) {
102
+            function(array $values, $question, array $choices) {
103 103
                 return $this->ask($values[self::VARIABLES_KEY], new ChoiceQuestion("<question>$question</question> ", $choices));
104 104
             }
105 105
         );
106 106
         $this->register(
107 107
             'isset',
108
-            function ($var) {
108
+            function($var) {
109 109
             },
110
-            function (array $values, $var) {
110
+            function(array $values, $var) {
111 111
                 return $values[self::VARIABLES_KEY]->has($var);
112 112
             }
113 113
         );
114 114
         $this->register(
115 115
             'empty',
116
-            function ($var) {
116
+            function($var) {
117 117
             },
118
-            function (array $values, $var) {
118
+            function(array $values, $var) {
119 119
                 return $values[self::VARIABLES_KEY]->has($var) && $values[self::VARIABLES_KEY]->get($var);
120 120
             }
121 121
         );
122 122
         $this->register(
123 123
             'get',
124
-            function () {
124
+            function() {
125 125
             },
126
-            function (array $values, $var) {
126
+            function(array $values, $var) {
127 127
                 return $values[self::VARIABLES_KEY]->get($var);
128 128
             }
129 129
         );
130 130
         $this->register(
131 131
             'set',
132
-            function () {
132
+            function() {
133 133
             },
134
-            function (array $values, $var, $value) {
134
+            function(array $values, $var, $value) {
135 135
                 $values[self::VARIABLES_KEY]->set($var, $value);
136 136
                 return $value;
137 137
             }
138 138
         );
139 139
         $this->register(
140 140
             'replace',
141
-            function () {
141
+            function() {
142 142
             },
143
-            function (array $values, $search, $replace, $subject, $regex = false) {
143
+            function(array $values, $search, $replace, $subject, $regex = false) {
144 144
                 if ($regex) {
145 145
                     return preg_replace($search, $replace, $subject);
146 146
                 } else {
Please login to merge, or discard this patch.
src/ExpressionLanguage/Lexer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,10 +172,10 @@
 block discarded – undo
172 172
                 }
173 173
                 if ($isTest) {
174 174
                     if ($isFunctionCall) {
175
-                        throw new SyntaxError('Can\'t use function return value in write context',  $stream->current->cursor);
175
+                        throw new SyntaxError('Can\'t use function return value in write context', $stream->current->cursor);
176 176
                     }
177 177
                     if (!$stream->current->test(Token::PUNCTUATION_TYPE, ')')) {
178
-                        throw new SyntaxError('Expected )',  $stream->current->cursor);
178
+                        throw new SyntaxError('Expected )', $stream->current->cursor);
179 179
                     }
180 180
                     $tokens[] = new Token(Token::STRING_TYPE, implode('.', $names), $token->cursor);
181 181
                 } else {
Please login to merge, or discard this patch.
src/Task/IncludeTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     public function execute()
52 52
     {
53 53
         ob_start(
54
-            function ($output) {
54
+            function($output) {
55 55
                 $this->console->output($output, false);
56 56
                 return '';
57 57
             }, 2, 0
Please login to merge, or discard this patch.
src/Workflow/Deployment.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         if (!$rollback && !$restore) {
89 89
             $this->checkout();
90 90
             $this->release = date($this->get('releaseFormat', 'YmdHis'));
91
-            $this->set('releaseDir', 'releases/' . $this->release);
91
+            $this->set('releaseDir', 'releases/'.$this->release);
92 92
             $this->release();
93 93
             $this->shareResources();
94 94
         }
@@ -195,9 +195,9 @@  discard block
 block discarded – undo
195 195
     protected function activate()
196 196
     {
197 197
         $sub = $this->iterate('{nodes}', 'node');
198
-        $sub->message('<step>Activating ' . ($this->release ? 'new' : 'latest') . ' release</step>');
198
+        $sub->message('<step>Activating '.($this->release ? 'new' : 'latest').' release</step>');
199 199
         $sub->callback(
200
-            function (Task\IterateTask $iterator) {
200
+            function(Task\IterateTask $iterator) {
201 201
                 $links = $iterator->remoteShell('echo "`readlink previous`;`readlink current`;`readlink next`"', '{node.deployPath}');
202 202
                 list($previous, $current, $next) = explode(';', $links);
203 203
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
                     $commands = array("ln -sfn $next current; rm next");
215 215
                     if ($current) {
216
-                        $from = '<comment>' . basename($current) . '</comment>';
216
+                        $from = '<comment>'.basename($current).'</comment>';
217 217
                         array_unshift($commands, "ln -s $current previous");
218 218
                         if ($previous) {
219 219
                             array_unshift($commands, "rm previous; rm -rf $previous");
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         $sub = $this->iterate('{nodes}', 'node');
253 253
         $sub->message('<step>Restoring previous release</step>');
254 254
         $sub->callback(
255
-            function (Task\IterateTask $iterator) use (&$firstPreviousRelease) {
255
+            function(Task\IterateTask $iterator) use (&$firstPreviousRelease) {
256 256
                 $links = $iterator->remoteShell('echo "`readlink previous`;`readlink current`;`readlink next`"', '{node.deployPath}');
257 257
                 list($previous, $current, $next) = explode(';', $links);
258 258
                 if (!$previous) {
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
                     $commands = array("ln -sfn $previous current; rm previous");
270 270
                     if ($current) {
271 271
                         array_unshift($commands, "ln -s $current next");
272
-                        $from = '<comment>' . basename($current) . '</comment>';
272
+                        $from = '<comment>'.basename($current).'</comment>';
273 273
                     } else {
274 274
                         $from = '<warning>none</warning>';
275 275
                     }
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
         $sub = $this->iterate('{shared}', array('type' => 'entries'));
293 293
         $sub->message('<step>Linking shared resources</step>');
294 294
         $sub->callback(
295
-            function (Task\IterateTask $iterator) {
295
+            function(Task\IterateTask $iterator) {
296 296
                 $type = $iterator->get('type');
297 297
                 if (!in_array($type, array('dirs', 'files'), true)) {
298 298
                     $iterator->doExit('shared may only contain keys "dirs" or "files"', 1);
@@ -311,13 +311,13 @@  discard block
 block discarded – undo
311 311
                     }
312 312
 
313 313
                     $commands[] = 'cd {releaseDir}';
314
-                    $commands[] = 'rm -rf ' . $entry;
314
+                    $commands[] = 'rm -rf '.$entry;
315 315
                     if ($dirName) {
316
-                        $commands[] = 'mkdir -p ' . $dirName;
317
-                        $commands[] = 'cd ' . $dirName;
316
+                        $commands[] = 'mkdir -p '.$dirName;
317
+                        $commands[] = 'cd '.$dirName;
318 318
                         $subDirCount += substr_count($dirName, '/') + 1;
319 319
                     }
320
-                    $commands[] = 'ln -s ' . str_repeat('../', $subDirCount) . $shareDir . '/' . $entry;
320
+                    $commands[] = 'ln -s '.str_repeat('../', $subDirCount).$shareDir.'/'.$entry;
321 321
 
322 322
                     $iterator->remoteShell($commands, '{node.deployPath}');
323 323
                 }
Please login to merge, or discard this patch.
src/Workflow/RenderReference.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     public function assemble()
61 61
     {
62 62
         $this->callback(
63
-            function () {
63
+            function() {
64 64
                 $this->findLoaders();
65 65
                 $file = $this->get('file');
66 66
                 $this->console->getFilesystem()->ensureDirectoryExists(dirname($file));
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
         foreach (['task', 'workflow'] as $type) {
111 111
             $lines[] = '';
112
-            $lines[] = ucfirst($type) . 's';
112
+            $lines[] = ucfirst($type).'s';
113 113
             $lines[] = str_repeat('=', strlen($type) + 1);
114 114
             $lines[] = '';
115 115
             $taskObjects = $this->loadTaskObjects($type);
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
                     $lines[] = 'Options';
140 140
                     $lines[] = '```````';
141 141
                     $lines[] = '';
142
-                    $this->renderVariables($lines, $taskVariables, $type . '-' . $name);
142
+                    $this->renderVariables($lines, $taskVariables, $type.'-'.$name);
143 143
                 }
144 144
                 if ($taskCommonVariables) {
145 145
                     $lines[] = 'Common options';
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $keys = ['type', 'default', 'required', 'label'];
176 176
         $lines[] = '   * - Name';
177 177
         foreach ($keys as $key) {
178
-            $lines[] = '     - ' . ucfirst($key);
178
+            $lines[] = '     - '.ucfirst($key);
179 179
         }
180 180
 
181 181
         foreach ($variables as $configName => $config) {
@@ -184,11 +184,11 @@  discard block
 block discarded – undo
184 184
             }
185 185
             $lines[] = '   * - ';
186 186
             $lines[] = '';
187
-            $lines[] = '       .. |' . $anchorPrefix . '-' . $configName . '| replace:: ' . $configName;
187
+            $lines[] = '       .. |'.$anchorPrefix.'-'.$configName.'| replace:: '.$configName;
188 188
             $lines[] = '';
189
-            $lines[] = '       .. _' . $anchorPrefix . '-' . $configName . ':';
189
+            $lines[] = '       .. _'.$anchorPrefix.'-'.$configName.':';
190 190
             $lines[] = '';
191
-            $lines[] = '       ' . $configName;
191
+            $lines[] = '       '.$configName;
192 192
             $lines[] = '';
193 193
             foreach ($keys as $key) {
194 194
                 if (!array_key_exists($key, $config)) {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
                     $v = $config[$key];
198 198
                     $value = $v === null ? 'null' : ($v === true ? 'true' : ($v === false ? 'false' : $v));
199 199
                     if (is_string($value)) {
200
-                        $value = ':code:`' . $value . '`';
200
+                        $value = ':code:`'.$value.'`';
201 201
                     }
202 202
                 } elseif ($key === 'required') {
203 203
                     $value = $config[$key] === true ? 'X' : $config[$key];
@@ -205,12 +205,12 @@  discard block
 block discarded – undo
205 205
                     $value = $config[$key];
206 206
                 }
207 207
                 if (is_array($value)) {
208
-                    $value = "\n\n       .. code::php\n\n           " . str_replace("\n", "\n\n           ", call_user_func('print' . '_r', $value, true)) . "\n\n";
208
+                    $value = "\n\n       .. code::php\n\n           ".str_replace("\n", "\n\n           ", call_user_func('print'.'_r', $value, true))."\n\n";
209 209
                 } else {
210 210
                     $value = str_replace("\n", "\n\n       ", $value);
211 211
                 }
212
-                $value = preg_replace('/\{@see\s+(' . implode('|', array_keys($variables)) . ')\}/', '|' . $anchorPrefix . '-$1|_', $value);
213
-                $lines[] = '     - ' . $value;
212
+                $value = preg_replace('/\{@see\s+('.implode('|', array_keys($variables)).')\}/', '|'.$anchorPrefix.'-$1|_', $value);
213
+                $lines[] = '     - '.$value;
214 214
             }
215 215
         }
216 216
         $lines[] = '';
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
     {
226 226
         static $commonVars;
227 227
         if (!is_array($commonVars)) {
228
-            $className = 'NetresearchKiteTask' . uniqid();
229
-            eval('class ' . $className . ' extends \\Netresearch\\Kite\\Task {}');
228
+            $className = 'NetresearchKiteTask'.uniqid();
229
+            eval('class '.$className.' extends \\Netresearch\\Kite\\Task {}');
230 230
             $instance = new $className($this);
231 231
             $commonVars = $instance->get('_variableConfiguration');
232 232
         }
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     protected function loadTaskObjects($type)
244 244
     {
245 245
         $objects = [];
246
-        $requiredType = 'Netresearch\\Kite\\' . ucfirst($type);
246
+        $requiredType = 'Netresearch\\Kite\\'.ucfirst($type);
247 247
         foreach ($this->factory->getNamespaces($type) as $namespace) {
248 248
             $namespaceLength = strlen($namespace);
249 249
             if ($dir = $this->findDirectoryForNamespace($namespace)) {
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
                     if (substr($file, -4) !== '.php') {
252 252
                         continue;
253 253
                     }
254
-                    $class = $namespace . '\\' . substr(strtr($file, '/', '\\'), 0, -4);
254
+                    $class = $namespace.'\\'.substr(strtr($file, '/', '\\'), 0, -4);
255 255
                     $reflectionClass = new \ReflectionClass($class);
256 256
                     if (!$reflectionClass->isSubclassOf($requiredType) || !$reflectionClass->isInstantiable()) {
257 257
                         continue;
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
                     continue;
339 339
                 }
340 340
                 foreach ($dirs as $dir) {
341
-                    if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
341
+                    if (file_exists($file = $dir.DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $length))) {
342 342
                         return $file;
343 343
                     }
344 344
                 }
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 
347 347
             // PSR-4 fallback dirs
348 348
             foreach ($loader->getFallbackDirsPsr4() as $dir) {
349
-                if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
349
+                if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) {
350 350
                     return $file;
351 351
                 }
352 352
             }
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
             foreach ($loader->getPrefixes() as $prefix => $dirs) {
365 365
                 if (0 === strpos($namespace, $prefix)) {
366 366
                     foreach ($dirs as $dir) {
367
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
367
+                        if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
368 368
                             return $file;
369 369
                         }
370 370
                     }
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 
374 374
             // PSR-0 fallback dirs
375 375
             foreach ($loader->getFallbackDirs() as $dir) {
376
-                if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
376
+                if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
377 377
                     return $file;
378 378
                 }
379 379
             }
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
         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
     }
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
         $theirsRequire = isset($theirs['require']) && is_object($theirs['require']) ? get_object_vars($theirs['require']) : [];
434 434
         $mergedRequires = array_merge($oursRequire, $theirsRequire);
435 435
         $packages = $this->getPackages(false, false);
436
-        $preferredVersion = 'dev-' . $package->branch;
436
+        $preferredVersion = 'dev-'.$package->branch;
437 437
         foreach ($mergedRequires as $packageName => $version) {
438 438
             $actualVersion = ($version === '@dev') ? 'dev-master' : $version;
439 439
             if (array_key_exists($packageName, $oursRequire)
@@ -499,9 +499,9 @@  discard block
 block discarded – undo
499 499
         if (!is_array($this->whitelists)) {
500 500
             $this->whitelists = [];
501 501
             foreach ($whitelistTypes as $whitelistType) {
502
-                $option = $this->get('whitelist' . ucfirst($whitelistType) . 's');
502
+                $option = $this->get('whitelist'.ucfirst($whitelistType).'s');
503 503
                 if ($option) {
504
-                    $this->whitelists[$whitelistType] = '#^' . $option . '$#';
504
+                    $this->whitelists[$whitelistType] = '#^'.$option.'$#';
505 505
                 }
506 506
             }
507 507
         }
Please login to merge, or discard this patch.
src/Workflow/Composer/Diagnose.php 1 patch
Spacing   +19 added lines, -19 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)))
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
                     }
333 333
                 }
334 334
             }
335
-            $constraint = $package->tag ?: 'dev-' . $package->branch;
335
+            $constraint = $package->tag ?: 'dev-'.$package->branch;
336 336
             if ($package->requiredBranch && $package->requiredBranch !== $package->branch) {
337 337
                 return "%s is at <comment>$constraint</comment> but is required at <comment>dev-{$package->requiredBranch}</comment>";
338 338
             }
@@ -353,8 +353,8 @@  discard block
 block discarded – undo
353 353
         if ($package->invalidRequirements) {
354 354
             $this->doExit('Can not fix that', 1);
355 355
         }
356
-        $currentConstraint = $package->tag ?: 'dev-' . $package->branch;
357
-        $requiredConstraint = 'dev-' . $package->requiredBranch;
356
+        $currentConstraint = $package->tag ?: 'dev-'.$package->branch;
357
+        $requiredConstraint = 'dev-'.$package->requiredBranch;
358 358
         if ($package->requiredBranch) {
359 359
             $actions = array(
360 360
                 1 => "Show divergent commits between <comment>$currentConstraint</comment> and <comment>$requiredConstraint</comment> (and ask again)",
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
     protected function checkDivergeFromLock($package)
406 406
     {
407 407
         if ($package->git && !$package->isRoot) {
408
-            $constraint = $package->tag ? ltrim($package->tag, 'v') : 'dev-' . $package->branch;
408
+            $constraint = $package->tag ? ltrim($package->tag, 'v') : 'dev-'.$package->branch;
409 409
             if (($package->tag || $package->branch) && $package->version !== $constraint) {
410 410
                 if ($this->git('rev-parse', $package->path, 'HEAD') === $package->source->reference) {
411 411
                     // HEAD is tip of branch and tag - so only branch was detected
@@ -418,9 +418,9 @@  discard block
 block discarded – undo
418 418
             if ($counts[0] || $counts[1]) {
419 419
                 $num = $counts[0] ?: $counts[1];
420 420
                 $type = $counts[0] ? 'behind</>' : 'ahead</> of';
421
-                return '%s is <comment>' . $num . ' commit' . ($num > 1 ? 's ' : ' ')
422
-                    . $type . ' locked commit <comment>'
423
-                    . substr($package->source->reference, 0, 7) . '</>';
421
+                return '%s is <comment>'.$num.' commit'.($num > 1 ? 's ' : ' ')
422
+                    . $type.' locked commit <comment>'
423
+                    . substr($package->source->reference, 0, 7).'</>';
424 424
             }
425 425
         }
426 426
         return null;
@@ -538,12 +538,12 @@  discard block
 block discarded – undo
538 538
             $side = $i ? 'left' : 'right';
539 539
             $otherSide = $i ? 'right' : 'left';
540 540
             $args = "--$side-only --cherry-pick --pretty=format:'%C(yellow)%h %Cgreen%cd %an%Creset%n  %s' --abbrev-commit --date=local ";
541
-            $args .= $ref . '...';
541
+            $args .= $ref.'...';
542 542
             $log = $this->git('log', $package->path, $args, array('shy' => true));
543 543
             if ($log) {
544 544
                 $this->console->output('');
545 545
 
546
-                $title = "<info>{${$side . 'Title'}}</info> > <info>{${$otherSide . 'Title'}}</info>";
546
+                $title = "<info>{${$side.'Title'}}</info> > <info>{${$otherSide.'Title'}}</info>";
547 547
                 $this->output($title);
548 548
                 $this->console->output(str_repeat('-', strlen(strip_tags($title))));
549 549
 
Please login to merge, or discard this patch.
src/Workflow/Composer/Checkout.php 1 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
     public function assemble()
67 67
     {
68 68
         $this->callback(
69
-            function () {
69
+            function() {
70 70
                 $this->checkoutPackages(
71 71
                     (array) $this->get('branch'),
72 72
                     $this->get('merge'),
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
             $lastBranch = array_pop($branches);
110 110
             $message = 'Could not find branch ';
111 111
             if ($branches) {
112
-                $message .= implode(', ', $branches) . ' or ';
112
+                $message .= implode(', ', $branches).' or ';
113 113
             }
114
-            $message .= $lastBranch . ' in any installed package';
114
+            $message .= $lastBranch.' in any installed package';
115 115
             $this->console->output("<warning>$message</warning>");
116 116
             return;
117 117
         }
Please login to merge, or discard this patch.