@@ -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 | } |
@@ -243,7 +243,7 @@ |
||
243 | 243 | return implode( |
244 | 244 | ' ', |
245 | 245 | array_map( |
246 | - function ($arg) { |
|
246 | + function($arg) { |
|
247 | 247 | return self::quoteArgument($arg, $this->escape); |
248 | 248 | }, |
249 | 249 | $lines |
@@ -101,7 +101,7 @@ |
||
101 | 101 | { |
102 | 102 | array_walk( |
103 | 103 | Phing::getProperties(), |
104 | - static function ($v, $k) use ($out) { |
|
104 | + static function($v, $k) use ($out) { |
|
105 | 105 | $out->println($k . ' : ' . $v); |
106 | 106 | } |
107 | 107 | ); |
@@ -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 |
@@ -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; |
@@ -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()) { |
@@ -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; |
@@ -141,9 +141,4 @@ |
||
141 | 141 | $errorMessages .= PHP_EOL; |
142 | 142 | |
143 | 143 | if ($this->retryDelay > 0) { |
144 | - sleep($this->retryDelay); |
|
145 | - } |
|
146 | - } |
|
147 | - } |
|
148 | - } |
|
149 | -} |
|
144 | + sleep($this->retryDelay |
|
150 | 145 | \ No newline at end of file |
@@ -141,9 +141,4 @@ |
||
141 | 141 | $errorMessages .= PHP_EOL; |
142 | 142 | |
143 | 143 | if ($this->retryDelay > 0) { |
144 | - sleep($this->retryDelay); |
|
145 | - } |
|
146 | - } |
|
147 | - } |
|
148 | - } |
|
149 | -} |
|
144 | + sleep($this->retryDelay |
|
150 | 145 | \ No newline at end of file |
@@ -141,9 +141,4 @@ |
||
141 | 141 | $errorMessages .= PHP_EOL; |
142 | 142 | |
143 | 143 | if ($this->retryDelay > 0) { |
144 | - sleep($this->retryDelay); |
|
145 | - } |
|
146 | - } |
|
147 | - } |
|
148 | - } |
|
149 | -} |
|
144 | + sleep($this->retryDelay |
|
150 | 145 | \ No newline at end of file |
@@ -141,9 +141,4 @@ |
||
141 | 141 | $errorMessages .= PHP_EOL; |
142 | 142 | |
143 | 143 | if ($this->retryDelay > 0) { |
144 | - sleep($this->retryDelay); |
|
145 | - } |
|
146 | - } |
|
147 | - } |
|
148 | - } |
|
149 | -} |
|
144 | + sleep($this->retryDelay |
|
150 | 145 | \ No newline at end of file |
@@ -141,9 +141,4 @@ |
||
141 | 141 | $errorMessages .= PHP_EOL; |
142 | 142 | |
143 | 143 | if ($this->retryDelay > 0) { |
144 | - sleep($this->retryDelay); |
|
145 | - } |
|
146 | - } |
|
147 | - } |
|
148 | - } |
|
149 | -} |
|
144 | + sleep($this->retryDelay |
|
150 | 145 | \ No newline at end of file |