Passed
Push — master ( f00c46...f03ee8 )
by Michiel
21:20
created
classes/phing/system/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.
classes/phing/types/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.
classes/phing/tasks/ext/HttpRequestTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
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
                 []
Please login to merge, or discard this patch.
classes/phing/tasks/system/PhingTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -581,7 +581,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
classes/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.
classes/phing/types/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.
classes/phing/types/selectors/SizeSelector.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
tests/classes/phing/tasks/ext/sonar/SonarConfigurationFileParserTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.