Test Failed
Push — revert-1636-spawn-open-task ( d97d56 )
by Michiel
24:25 queued 03:05
created
src/Phing/Type/Description.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Phing/Type/Commandline.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Phing/Util/Diagnostics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Phing/Util/Series.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Phing/Project.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1242,7 +1242,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Phing/Io/WindowsFileSystem.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -277,8 +277,7 @@
 block discarded – undo
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"
Please login to merge, or discard this patch.
src/Phing/Task/System/AdhocTaskdefTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
src/Phing/Task/System/FailTask.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,8 +121,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Phing/Task/System/Retry.php 5 patches
Indentation   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,9 +141,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,9 +141,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,9 +141,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Braces   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,9 +141,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,9 +141,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.