@@ -277,8 +277,7 @@ |
||
| 277 | 277 | return 0; |
| 278 | 278 | } |
| 279 | 279 | $c0 = $path[0]; |
| 280 | - $c1 = ($n > 1) ? $path[1] : |
|
| 281 | - 0; |
|
| 280 | + $c1 = ($n > 1) ? $path[1] : 0; |
|
| 282 | 281 | if ($c0 === $slash) { |
| 283 | 282 | if ($c1 === $slash) { |
| 284 | 283 | return 2; // absolute UNC pathname "\\\\foo" |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | */ |
| 102 | 102 | private function filterValidTasks(array $classes): array |
| 103 | 103 | { |
| 104 | - return array_filter($classes, function ($classname) { |
|
| 104 | + return array_filter($classes, function($classname) { |
|
| 105 | 105 | $t = new ReflectionClass($classname); |
| 106 | 106 | |
| 107 | 107 | if (!$t->isSubclassOf(Task::class) || !$t->isInstantiable()) { |
@@ -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 | } |
@@ -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; |
@@ -581,7 +581,7 @@ |
||
| 581 | 581 | } |
| 582 | 582 | |
| 583 | 583 | $subprojRefKeys[] = $refid; |
| 584 | - unset($this->references[$i]);//thisReferences.remove(refid); |
|
| 584 | + unset($this->references[$i]); //thisReferences.remove(refid); |
|
| 585 | 585 | $toRefid = $ref->getToRefid(); |
| 586 | 586 | if ($toRefid === null) { |
| 587 | 587 | $toRefid = $refid; |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | $fh = fopen($tmpFile, 'w'); |
| 183 | 183 | |
| 184 | 184 | if (false !== $fh) { |
| 185 | - register_shutdown_function(function () use ($tmpFile) { |
|
| 185 | + register_shutdown_function(function() use ($tmpFile) { |
|
| 186 | 186 | unlink($tmpFile); |
| 187 | 187 | }); |
| 188 | 188 | |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | |
| 215 | 215 | $fh = fopen($tmpFile, 'w'); |
| 216 | 216 | if (false !== $fh) { |
| 217 | - register_shutdown_function(function () use ($tmpFile) { |
|
| 217 | + register_shutdown_function(function() use ($tmpFile) { |
|
| 218 | 218 | unlink($tmpFile); |
| 219 | 219 | }); |
| 220 | 220 | |