Passed
Push — siad007-patch-1 ( fc763d...159b8c )
by Siad
06:05
created
src/Phing/PropertyHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
223 223
         while (strpos($sb, '${') !== false) {
224 224
             $sb = preg_replace_callback(
225 225
                 '/\$\{([^\$}]+)\}/',
226
-                function ($matches) use ($keys) {
226
+                function($matches) use ($keys) {
227 227
                     $propertyName = $matches[1];
228 228
 
229 229
                     $replacement = null;
Please login to merge, or discard this patch.
src/Phing/Parser/TargetHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
     {
96 96
         $name = null;
97 97
         $depends = "";
98
-        $extensionPoint = null;//'fail';
98
+        $extensionPoint = null; //'fail';
99 99
         $extensionPointMissing = null;
100 100
         $ifCond = null;
101 101
         $unlessCond = null;
Please login to merge, or discard this patch.
src/Phing/Type/Environment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
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/Selector/SizeSelector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     private const WHEN_KEY = 'when';
56 56
     private const WHEN = [-1 => 'less',
57 57
         0 => 'equal',
58
-        1 => 'more',];
58
+        1 => 'more', ];
59 59
 
60 60
     public function __toString(): string
61 61
     {
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.