Passed
Push — dependabot/composer/smarty/sma... ( abdb4e )
by
unknown
24:38 queued 17:13
created
src/Phing/Listener/DefaultLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@
 block discarded – undo
342 342
     public static function formatTime(float $seconds): string
343 343
     {
344 344
         /** @var float|int $number */
345
-        $getPlural = function ($number): string {
345
+        $getPlural = function($number): string {
346 346
             return 1 == $number ? '' : 's';
347 347
         };
348 348
         $chunks = [];
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
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         $fh = fopen($tmpFile, 'w');
180 180
 
181 181
         if (false !== $fh) {
182
-            register_shutdown_function(static function () use ($tmpFile) {
182
+            register_shutdown_function(static function() use ($tmpFile) {
183 183
                 unlink($tmpFile);
184 184
             });
185 185
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
         $fh = fopen($tmpFile, 'w');
213 213
         if (false !== $fh) {
214
-            register_shutdown_function(static function () use ($tmpFile) {
214
+            register_shutdown_function(static function() use ($tmpFile) {
215 215
                 unlink($tmpFile);
216 216
             });
217 217
 
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
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         );
34 34
 
35 35
         $arraySum = '';
36
-        array_walk_recursive($arr, static function ($item) use (&$arraySum) {
36
+        array_walk_recursive($arr, static function($item) use (&$arraySum) {
37 37
             $arraySum .= $item;
38 38
         });
39 39
 
Please login to merge, or discard this patch.
src/Phing/Phing.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1013,20 +1013,20 @@  discard block
 block discarded – undo
1013 1013
      */
1014 1014
     public function printTargets(Project $project)
1015 1015
     {
1016
-        $visibleTargets = array_filter($project->getTargets(), function (Target $target) {
1016
+        $visibleTargets = array_filter($project->getTargets(), function(Target $target) {
1017 1017
             return !$target->isHidden() && !empty($target->getName());
1018 1018
         });
1019
-        $padding = array_reduce($visibleTargets, function (int $carry, Target $target) {
1019
+        $padding = array_reduce($visibleTargets, function(int $carry, Target $target) {
1020 1020
             return max(strlen($target->getName()), $carry);
1021 1021
         }, 0);
1022 1022
         $categories = [
1023
-            'Default target:' => array_filter($visibleTargets, function (Target $target) use ($project) {
1023
+            'Default target:' => array_filter($visibleTargets, function(Target $target) use ($project) {
1024 1024
                 return trim(strval($target)) === $project->getDefaultTarget();
1025 1025
             }),
1026
-            'Main targets:' => array_filter($visibleTargets, function (Target $target) {
1026
+            'Main targets:' => array_filter($visibleTargets, function(Target $target) {
1027 1027
                 return !empty($target->getDescription());
1028 1028
             }),
1029
-            'Subtargets:' => array_filter($visibleTargets, function (Target $target) {
1029
+            'Subtargets:' => array_filter($visibleTargets, function(Target $target) {
1030 1030
                 return empty($target->getDescription());
1031 1031
             }),
1032 1032
         ];
@@ -1553,7 +1553,7 @@  discard block
 block discarded – undo
1553 1553
      */
1554 1554
     private function generateTargetList(string $title, array $targets, int $padding): string
1555 1555
     {
1556
-        usort($targets, function (Target $a, Target $b) {
1556
+        usort($targets, function(Target $a, Target $b) {
1557 1557
             return $a->getName() <=> $b->getName();
1558 1558
         });
1559 1559
 
@@ -1563,7 +1563,7 @@  discard block
 block discarded – undo
1563 1563
 
1564 1564
             HEADER;
1565 1565
 
1566
-        $getDetails = function (Target $target) use ($padding): string {
1566
+        $getDetails = function(Target $target) use ($padding): string {
1567 1567
             $details = [];
1568 1568
             if (!empty($target->getDescription())) {
1569 1569
                 $details[] = $target->getDescription();
@@ -1577,7 +1577,7 @@  discard block
 block discarded – undo
1577 1577
             if (!empty($target->getUnless())) {
1578 1578
                 $details[] = ' - unless property: ' . $target->getUnless();
1579 1579
             }
1580
-            $detailsToString = function (?string $name, ?string $detail) use ($padding): string {
1580
+            $detailsToString = function(?string $name, ?string $detail) use ($padding) : string {
1581 1581
                 return sprintf(" %-{$padding}s  %s", $name, $detail);
1582 1582
             };
1583 1583
 
Please login to merge, or discard this patch.
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.