| @@ -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 | |
| @@ -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)) { | 
| @@ -100,7 +100,7 @@ | ||
| 100 | 100 | $value = $p->getParams(); | 
| 101 | 101 | array_walk_recursive( | 
| 102 | 102 | $value, | 
| 103 | -                    function (&$item) { | |
| 103 | +                    function(&$item) { | |
| 104 | 104 |                          if ($item instanceof Parameter) { | 
| 105 | 105 | $item = $item->getValue(); | 
| 106 | 106 | } | 
| @@ -121,8 +121,7 @@ | ||
| 121 | 121 | */ | 
| 122 | 122 | public function main() | 
| 123 | 123 |      { | 
| 124 | - $fail = $this->nestedConditionPresent() ? $this->testNestedCondition() : | |
| 125 | - $this->testIfCondition() && $this->testUnlessCondition(); | |
| 124 | + $fail = $this->nestedConditionPresent() ? $this->testNestedCondition() : $this->testIfCondition() && $this->testUnlessCondition(); | |
| 126 | 125 | |
| 127 | 126 |          if ($fail) { | 
| 128 | 127 | $text = null; | 
| @@ -208,8 +208,8 @@ discard block | ||
| 208 | 208 | public function main() | 
| 209 | 209 |      { | 
| 210 | 210 | $savedPath = $this->path; | 
| 211 | - $savedPathSep = $this->pathSep;// may be altered in validateSetup | |
| 212 | - $savedDirSep = $this->dirSep;// may be altered in validateSetup | |
| 211 | + $savedPathSep = $this->pathSep; // may be altered in validateSetup | |
| 212 | + $savedDirSep = $this->dirSep; // may be altered in validateSetup | |
| 213 | 213 | |
| 214 | 214 |          try { | 
| 215 | 215 | // If we are a reference, create a Path from the reference | 
| @@ -242,7 +242,7 @@ discard block | ||
| 242 | 242 | } | 
| 243 | 243 | } | 
| 244 | 244 | |
| 245 | - $this->validateSetup();// validate our setup | |
| 245 | + $this->validateSetup(); // validate our setup | |
| 246 | 246 | |
| 247 | 247 | // Currently, we deal with only two path formats: Unix and Windows | 
| 248 | 248 | // And Unix is everything that is not Windows | 
| @@ -268,7 +268,7 @@ discard block | ||
| 268 | 268 | } | 
| 269 | 269 | unset($elem); | 
| 270 | 270 |              foreach ($elems as $key => $elem) { | 
| 271 | - $elem = $this->mapElement($elem);// Apply the path prefix map | |
| 271 | + $elem = $this->mapElement($elem); // Apply the path prefix map | |
| 272 | 272 | |
| 273 | 273 | // Now convert the path and file separator characters from the | 
| 274 | 274 | // current os to the target os. | 
| @@ -329,7 +329,7 @@ discard block | ||
| 329 | 329 | |
| 330 | 330 |                  if ($newElem !== (string) $elem) { | 
| 331 | 331 | $elem = $newElem; | 
| 332 | - break;// We applied one, so we're done | |
| 332 | + break; // We applied one, so we're done | |
| 333 | 333 | } | 
| 334 | 334 | } | 
| 335 | 335 | } | 
| @@ -26,7 +26,7 @@ | ||
| 26 | 26 | public function center($value, $fixedLength) | 
| 27 | 27 |      { | 
| 28 | 28 | $spacesBeforeValue = $this->calculateSpaceBeforeValue($value, $fixedLength); | 
| 29 | - return $this->toSpaces($spacesBeforeValue) . $value; | |
| 29 | + return $this->toSpaces($spacesBeforeValue) . $value; | |
| 30 | 30 | } | 
| 31 | 31 | |
| 32 | 32 | public function left($value, $fixedLength) | 
| @@ -50,7 +50,7 @@ | ||
| 50 | 50 | public function getTimes() | 
| 51 | 51 |      { | 
| 52 | 52 | return array_map( | 
| 53 | -            function (Duration $elem) { | |
| 53 | +            function(Duration $elem) { | |
| 54 | 54 | return $elem->getTime(); | 
| 55 | 55 | }, | 
| 56 | 56 | $this->list |