Passed
Push — main ( 95b369...5c384e )
by Michiel
17:35 queued 12s
created
src/Phing/Task/Http/src/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.
src/Phing/Task/Coverage/src/CoverageReportTask.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
                 $statementcount = count(
428 428
                     array_filter(
429 429
                         $coverageInformation,
430
-                        function ($var) {
430
+                        function($var) {
431 431
                             return ($var != -2);
432 432
                         }
433 433
                     )
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
                 $statementscovered = count(
437 437
                     array_filter(
438 438
                         $coverageInformation,
439
-                        function ($var) {
439
+                        function($var) {
440 440
                             return ($var >= 0);
441 441
                         }
442 442
                     )
Please login to merge, or discard this patch.
src/Phing/Task/Analyzer/src/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.
Task/Analyzer/src/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.
src/Phing/Task/Visualizer/src/VisualizerTask.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@
 block discarded – undo
379 379
         $this->log("Server: $server", Project::MSG_VERBOSE);
380 380
 
381 381
         $imageUrl = (new Client())->setServer($server)
382
-                                  ->generateUrl($pumlDiagram, $format);
382
+                                    ->generateUrl($pumlDiagram, $format);
383 383
 
384 384
         $this->log($imageUrl, Project::MSG_DEBUG);
385 385
         $this->setUrl($imageUrl);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,11 +175,11 @@
 block discarded – undo
175 175
 
176 176
         $puml = $this->transformToPuml($firstBuildFile, self::XSL_HEADER);
177 177
 
178
-        $puml = array_reduce($buildFiles, function (string $carry, File $buildFile) {
178
+        $puml = array_reduce($buildFiles, function(string $carry, File $buildFile) {
179 179
             return $carry . $this->transformToPuml($buildFile, self::XSL_CALLS);
180 180
         }, $puml);
181 181
 
182
-        $puml = array_reduce($buildFiles, function (string $carry, File $buildFile) {
182
+        $puml = array_reduce($buildFiles, function(string $carry, File $buildFile) {
183 183
             return $carry . $this->transformToPuml($buildFile, self::XSL_TARGETS);
184 184
         }, $puml);
185 185
 
Please login to merge, or discard this patch.
src/Phing/Task/Hg/src/HgAddTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
         $ignores = [];
123 123
         $lines = file('.hgignore');
124 124
         foreach ($lines as $line) {
125
-            $nline =  trim($line);
125
+            $nline = trim($line);
126 126
             $nline = preg_replace('/\/\*$/', '/', $nline);
127 127
             $ignores[] = $nline;
128 128
         }
Please login to merge, or discard this patch.
src/Phing/Task/Archive/src/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.
src/Phing/Task/Archive/src/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.