@@ -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" |
@@ -67,7 +67,7 @@ |
||
67 | 67 | |
68 | 68 | private static function findElementInTarget(Target $t, $name) |
69 | 69 | { |
70 | - return array_filter($t->getTasks(), static function (Task $task) use ($name) { |
|
70 | + return array_filter($t->getTasks(), static function(Task $task) use ($name) { |
|
71 | 71 | return $task->getTaskName() === $name; |
72 | 72 | }); |
73 | 73 | } |
@@ -142,7 +142,7 @@ |
||
142 | 142 | $idx = ($this->isHeaderSet('content-type', 'application/json') ? 'json' : 'form_params'); |
143 | 143 | $options[$idx] = array_reduce( |
144 | 144 | $this->postParameters, |
145 | - function ($carry, Parameter $postParameter) { |
|
145 | + function($carry, Parameter $postParameter) { |
|
146 | 146 | return $carry + [$postParameter->getName() => $postParameter->getValue()]; |
147 | 147 | }, |
148 | 148 | [] |
@@ -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; |
@@ -1242,7 +1242,7 @@ |
||
1242 | 1242 | */ |
1243 | 1243 | private function findSuggestion(string $unknownTarget): ?Target |
1244 | 1244 | { |
1245 | - return array_reduce($this->targets, function (?Target $carry, Target $current) use ($unknownTarget): ?Target { |
|
1245 | + return array_reduce($this->targets, function(?Target $carry, Target $current) use ($unknownTarget) : ?Target { |
|
1246 | 1246 | // Omit target with empty name (there's always one) |
1247 | 1247 | if (empty(strval($current))) { |
1248 | 1248 | return $carry; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | return null; |
65 | 65 | } |
66 | 66 | return array_map( |
67 | - function (EnvVariable $env) { |
|
67 | + function(EnvVariable $env) { |
|
68 | 68 | return $env->getContent(); |
69 | 69 | }, |
70 | 70 | $this->variables->getArrayCopy() |
@@ -45,8 +45,8 @@ |
||
45 | 45 | private const VALUE_KEY = 'value'; |
46 | 46 | private const WHEN_KEY = 'when'; |
47 | 47 | private const WHEN = [-1 => 'less', |
48 | - 0 => 'equal', |
|
49 | - 1 => 'more',]; |
|
48 | + 0 => 'equal', |
|
49 | + 1 => 'more',]; |
|
50 | 50 | |
51 | 51 | public function __toString(): string |
52 | 52 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | private const WHEN_KEY = 'when'; |
47 | 47 | private const WHEN = [-1 => 'less', |
48 | 48 | 0 => 'equal', |
49 | - 1 => 'more',]; |
|
49 | + 1 => 'more', ]; |
|
50 | 50 | |
51 | 51 | public function __toString(): string |
52 | 52 | { |
@@ -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 |