@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | } catch (Exception $ex) { |
| 280 | 280 | $this->log( |
| 281 | 281 | "Error setting value for section '" . $section . |
| 282 | - "', key '" . $key ."'", |
|
| 282 | + "', key '" . $key . "'", |
|
| 283 | 283 | Project::MSG_ERR |
| 284 | 284 | ); |
| 285 | 285 | $this->logDebugOrMore($ex->getMessage()); |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | } catch (Exception $ex) { |
| 319 | 319 | $this->log( |
| 320 | 320 | "Error setting value for section '" . $section . |
| 321 | - "', key '" . $key ."'" |
|
| 321 | + "', key '" . $key . "'" |
|
| 322 | 322 | ); |
| 323 | 323 | $this->logDebugOrMore($ex->getMessage()); |
| 324 | 324 | } |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | { |
| 67 | 67 | $this->setup('proplist'); |
| 68 | 68 | |
| 69 | - $this->log("List all properties on files, dirs, or revisions from '" . $this->getWorkingCopy() ."'"); |
|
| 69 | + $this->log("List all properties on files, dirs, or revisions from '" . $this->getWorkingCopy() . "'"); |
|
| 70 | 70 | |
| 71 | 71 | $output = $this->run([$this->getWorkingCopy()], ['recursive' => $this->getRecursive()]); |
| 72 | 72 | |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | $ignores = []; |
| 123 | 123 | $lines = file('.hgignore'); |
| 124 | 124 | foreach ($lines as $line) { |
| 125 | - $nline = trim($line); |
|
| 125 | + $nline = trim($line); |
|
| 126 | 126 | $nline = preg_replace('/\/\*$/', '/', $nline); |
| 127 | 127 | $ignores[] = $nline; |
| 128 | 128 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | $cmd = $task->getCommandline(); |
| 12 | 12 | |
| 13 | 13 | if (!empty($task->getFormat())) { |
| 14 | - $cmd->createArgument()->setValue('--format=' . $task->getFormat()); |
|
| 14 | + $cmd->createArgument()->setValue('--format=' . $task->getFormat()); |
|
| 15 | 15 | } |
| 16 | 16 | if ($task->isRaw()) { |
| 17 | 17 | $cmd->createArgument()->setValue('--raw'); |
@@ -272,8 +272,7 @@ |
||
| 272 | 272 | private function addFilesetsToArchive($zip) |
| 273 | 273 | { |
| 274 | 274 | foreach ($this->filesets as $fs) { |
| 275 | - $fsBasedir = (null != $this->baseDir) ? $this->baseDir : |
|
| 276 | - $fs->getDir($this->project); |
|
| 275 | + $fsBasedir = (null != $this->baseDir) ? $this->baseDir : $fs->getDir($this->project); |
|
| 277 | 276 | |
| 278 | 277 | $files = $fs->getIterator($this->includeEmpty); |
| 279 | 278 | |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $lines = explode("\n", $contents); |
| 93 | 93 | $count = count($lines); |
| 94 | 94 | $isMultiLine = false; |
| 95 | - for ($i = 0; $i < $count; $i ++) { |
|
| 95 | + for ($i = 0; $i < $count; $i++) { |
|
| 96 | 96 | $line = $lines[$i]; |
| 97 | 97 | |
| 98 | 98 | if ($isMultiLine) { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | $isMultiLine = $this->extractNameAndValue($line); |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - if (($this->name !== null) && (! $isMultiLine)) { |
|
| 107 | + if (($this->name !== null) && (!$isMultiLine)) { |
|
| 108 | 108 | if (array_key_exists($this->name, $this->properties)) { |
| 109 | 109 | $message = sprintf( |
| 110 | 110 | 'Property [%s] overwritten: old value [%s], new value [%s].', |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | $request->setBody( |
| 188 | 188 | json_encode( |
| 189 | 189 | array_map( |
| 190 | - function (Parameter $postParameter) { |
|
| 190 | + function(Parameter $postParameter) { |
|
| 191 | 191 | return [$postParameter->getName() => $postParameter->getValue()]; |
| 192 | 192 | }, |
| 193 | 193 | $this->postParameters |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | $statementcount = count( |
| 428 | 428 | array_filter( |
| 429 | 429 | $coverageInformation, |
| 430 | - function ($var) { |
|
| 430 | + function($var) { |
|
| 431 | 431 | return ($var != -2); |
| 432 | 432 | } |
| 433 | 433 | ) |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | $statementscovered = count( |
| 437 | 437 | array_filter( |
| 438 | 438 | $coverageInformation, |
| 439 | - function ($var) { |
|
| 439 | + function($var) { |
|
| 440 | 440 | return ($var >= 0); |
| 441 | 441 | } |
| 442 | 442 | ) |
@@ -98,8 +98,8 @@ |
||
| 98 | 98 | $mode = strtolower(substr($tarfileName, strrpos($tarfileName, '.'))); |
| 99 | 99 | |
| 100 | 100 | $compressions = [ |
| 101 | - 'gz' => ['.gz', '.tgz',], |
|
| 102 | - 'bz2' => ['.bz2',], |
|
| 101 | + 'gz' => ['.gz', '.tgz', ], |
|
| 102 | + 'bz2' => ['.bz2', ], |
|
| 103 | 103 | ]; |
| 104 | 104 | foreach ($compressions as $algo => $ext) { |
| 105 | 105 | if (in_array($mode, $ext)) { |