Passed
Push — siad007-patch-1 ( 436ce7 )
by Siad
08:00
created
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.
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/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.
tests/Phing/Task/Optional/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.
tests/Phing/Task/System/PhpEvalTaskTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         );
27 27
 
28 28
         $arraySum = '';
29
-        array_walk_recursive($arr, function ($item) use (&$arraySum) {
29
+        array_walk_recursive($arr, function($item) use (&$arraySum) {
30 30
             $arraySum .= $item;
31 31
         });
32 32
 
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
     public const B = 'B';
33 33
     public const KILO = 1000;
34 34
     public const KIBI = 1024;
35
-    public const SI = [1 => ['kB', 'kilo', 'kilobyte',],
36
-        2 => ['MB', 'mega', 'megabyte',],
37
-        3 => ['GB', 'giga', 'gigabyte',],
38
-        4 => ['TB', 'tera', 'terabyte',],];
39
-    public 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
+    public const SI = [1 => ['kB', 'kilo', 'kilobyte', ],
36
+        2 => ['MB', 'mega', 'megabyte', ],
37
+        3 => ['GB', 'giga', 'gigabyte', ],
38
+        4 => ['TB', 'tera', 'terabyte', ], ];
39
+    public 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/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.
tests/Phing/Task/Optional/PDODelimitersTest.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,6 +210,4 @@
 block discarded – undo
210 210
         $this->project->setProperty('bar.value', "some value");
211 211
         $this->project->executeTarget('test');
212 212
 
213
-        $this->assertEquals($expected, $this->queries);
214
-    }
215
-}
213
+        $this->assertEquals($expected, $this->queries
216 214
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,6 +210,4 @@
 block discarded – undo
210 210
         $this->project->setProperty('bar.value', "some value");
211 211
         $this->project->executeTarget('test');
212 212
 
213
-        $this->assertEquals($expected, $this->queries);
214
-    }
215
-}
213
+        $this->assertEquals($expected, $this->queries
216 214
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,6 +210,4 @@
 block discarded – undo
210 210
         $this->project->setProperty('bar.value', "some value");
211 211
         $this->project->executeTarget('test');
212 212
 
213
-        $this->assertEquals($expected, $this->queries);
214
-    }
215
-}
213
+        $this->assertEquals($expected, $this->queries
216 214
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,6 +210,4 @@
 block discarded – undo
210 210
         $this->project->setProperty('bar.value', "some value");
211 211
         $this->project->executeTarget('test');
212 212
 
213
-        $this->assertEquals($expected, $this->queries);
214
-    }
215
-}
213
+        $this->assertEquals($expected, $this->queries
216 214
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,6 +210,4 @@
 block discarded – undo
210 210
         $this->project->setProperty('bar.value', "some value");
211 211
         $this->project->executeTarget('test');
212 212
 
213
-        $this->assertEquals($expected, $this->queries);
214
-    }
215
-}
213
+        $this->assertEquals($expected, $this->queries
216 214
\ No newline at end of file
Please login to merge, or discard this patch.