Passed
Push — master ( 8b1503...0411aa )
by Siad
06:08
created
phing/tasks/ext/phpstan/CommandBuilder/PHPStanHelpCommandBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
         $cmd = $task->getCommandline();
12 12
 
13 13
         if (!empty($task->getFormat())) {
14
-            $cmd->createArgument()->setValue('--format=' .  $task->getFormat());
14
+            $cmd->createArgument()->setValue('--format=' . $task->getFormat());
15 15
         }
16 16
         if ($task->isRaw()) {
17 17
             $cmd->createArgument()->setValue('--raw');
Please login to merge, or discard this patch.
classes/phing/tasks/ext/ZipTask.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -272,8 +272,7 @@
 block discarded – undo
272 272
     private function addFilesetsToArchive($zip)
273 273
     {
274 274
         foreach ($this->filesets as $fs) {
275
-            $fsBasedir = (null != $this->baseDir) ? $this->baseDir :
276
-                $fs->getDir($this->project);
275
+            $fsBasedir = (null != $this->baseDir) ? $this->baseDir : $fs->getDir($this->project);
277 276
 
278 277
             $files = $fs->getIterator($this->includeEmpty);
279 278
 
Please login to merge, or discard this patch.
classes/phing/tasks/ext/UntarTask.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,8 @@
 block discarded – undo
98 98
         $mode = strtolower(substr($tarfileName, strrpos($tarfileName, '.')));
99 99
 
100 100
         $compressions = [
101
-            'gz' => ['.gz', '.tgz',],
102
-            'bz2' => ['.bz2',],
101
+            'gz' => ['.gz', '.tgz', ],
102
+            'bz2' => ['.bz2', ],
103 103
         ];
104 104
         foreach ($compressions as $algo => $ext) {
105 105
             if (in_array($mode, $ext)) {
Please login to merge, or discard this patch.
classes/phing/tasks/system/PhpEvalTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
                 $value = $p->getParams();
101 101
                 array_walk_recursive(
102 102
                     $value,
103
-                    function (&$item) {
103
+                    function(&$item) {
104 104
                         if ($item instanceof Parameter) {
105 105
                             $item = $item->getValue();
106 106
                         }
Please login to merge, or discard this patch.
classes/phing/tasks/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.
classes/phing/tasks/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.
classes/phing/tasks/ext/sonar/SonarConfigurationFileParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
                 $isMultiLine = $this->extractNameAndValue($line);
105 105
             }
106 106
 
107
-            if (($this->name !== null) && (! $isMultiLine)) {
107
+            if (($this->name !== null) && (!$isMultiLine)) {
108 108
                 if (array_key_exists($this->name, $this->properties)) {
109 109
                     $message = sprintf(
110 110
                         'Property [%s] overwritten: old value [%s], new value [%s].',
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.