Passed
Push — master ( 7a9799...2aee06 )
by Michiel
06:03
created
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/Util/SizeHelper.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,15 +32,15 @@
 block discarded – undo
32 32
     const B = 'B';
33 33
     const KILO = 1000;
34 34
     const KIBI = 1024;
35
-    const SI = [1 => ['kB', 'kilo', 'kilobyte',],
36
-        2 => ['MB', 'mega', 'megabyte',],
37
-        3 => ['GB', 'giga', 'gigabyte',],
38
-        4 => ['TB', 'tera', 'terabyte',],];
39
-    const IEC = [0 => [self::B,],
40
-        1 => ['k', 'Ki', 'KiB', 'kibi', 'kibibyte',],
41
-        2 => ['M', 'Mi', 'MiB', 'mebi', 'mebibyte',],
42
-        3 => ['G', 'Gi', 'GiB', 'gibi', 'gibibyte',],
43
-        4 => ['T', 'Ti', 'TiB', 'tebi', 'tebibyte',],];
35
+    const SI = [1 => ['kB', 'kilo', 'kilobyte', ],
36
+        2 => ['MB', 'mega', 'megabyte', ],
37
+        3 => ['GB', 'giga', 'gigabyte', ],
38
+        4 => ['TB', 'tera', 'terabyte', ], ];
39
+    const IEC = [0 => [self::B, ],
40
+        1 => ['k', 'Ki', 'KiB', 'kibi', 'kibibyte', ],
41
+        2 => ['M', 'Mi', 'MiB', 'mebi', 'mebibyte', ],
42
+        3 => ['G', 'Gi', 'GiB', 'gibi', 'gibibyte', ],
43
+        4 => ['T', 'Ti', 'TiB', 'tebi', 'tebibyte', ], ];
44 44
 
45 45
     /**
46 46
      * Converts strings like '512K', '0.5G', '50M' to bytes.
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/PathConvert.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -208,8 +208,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.