Passed
Push — dependabot/composer/aws/aws-sd... ( d1ac1c...15f0b9 )
by Siad
15:20 queued 08:05
created
tests/Phing/Task/System/EchoXMLTest.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,6 +55,4 @@
 block discarded – undo
55 55
 
56 56
     public function testEmpty(): void
57 57
     {
58
-        $this->expectBuildException('testEmpty', 'No nested XML specified');
59
-    }
60
-}
58
+        $this->expectBuildException
61 59
\ 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
@@ -55,6 +55,4 @@
 block discarded – undo
55 55
 
56 56
     public function testEmpty(): void
57 57
     {
58
-        $this->expectBuildException('testEmpty', 'No nested XML specified');
59
-    }
60
-}
58
+        $this->expectBuildException
61 59
\ 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
@@ -55,6 +55,4 @@
 block discarded – undo
55 55
 
56 56
     public function testEmpty(): void
57 57
     {
58
-        $this->expectBuildException('testEmpty', 'No nested XML specified');
59
-    }
60
-}
58
+        $this->expectBuildException
61 59
\ 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
@@ -55,6 +55,4 @@
 block discarded – undo
55 55
 
56 56
     public function testEmpty(): void
57 57
     {
58
-        $this->expectBuildException('testEmpty', 'No nested XML specified');
59
-    }
60
-}
58
+        $this->expectBuildException
61 59
\ 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
@@ -55,6 +55,4 @@
 block discarded – undo
55 55
 
56 56
     public function testEmpty(): void
57 57
     {
58
-        $this->expectBuildException('testEmpty', 'No nested XML specified');
59
-    }
60
-}
58
+        $this->expectBuildException
61 59
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Phing/Filter/StripWhitespaceTest.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,6 +49,4 @@
 block discarded – undo
49 49
 
50 50
         $result = file_get_contents($resultFile->getAbsolutePath());
51 51
 
52
-        $this->assertEquals($expected, $result, "Files don't match!");
53
-    }
54
-}
52
+        $this->assertEquals($expected, $result
55 53
\ 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
@@ -49,6 +49,4 @@
 block discarded – undo
49 49
 
50 50
         $result = file_get_contents($resultFile->getAbsolutePath());
51 51
 
52
-        $this->assertEquals($expected, $result, "Files don't match!");
53
-    }
54
-}
52
+        $this->assertEquals($expected, $result
55 53
\ 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
@@ -49,6 +49,4 @@
 block discarded – undo
49 49
 
50 50
         $result = file_get_contents($resultFile->getAbsolutePath());
51 51
 
52
-        $this->assertEquals($expected, $result, "Files don't match!");
53
-    }
54
-}
52
+        $this->assertEquals($expected, $result
55 53
\ 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
@@ -49,6 +49,4 @@
 block discarded – undo
49 49
 
50 50
         $result = file_get_contents($resultFile->getAbsolutePath());
51 51
 
52
-        $this->assertEquals($expected, $result, "Files don't match!");
53
-    }
54
-}
52
+        $this->assertEquals($expected, $result
55 53
\ 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
@@ -49,6 +49,4 @@
 block discarded – undo
49 49
 
50 50
         $result = file_get_contents($resultFile->getAbsolutePath());
51 51
 
52
-        $this->assertEquals($expected, $result, "Files don't match!");
53
-    }
54
-}
52
+        $this->assertEquals($expected, $result
55 53
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Phing/Task/Optional/PHPStan/PHPStanAnalyseCommandBuilderTest.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Phing/Task/Optional/PHPStan/PHPStanHelpCommandBuilderTest.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Phing/Task/Optional/PHPStan/PHPStanCommandBuilderTest.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ 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
@@ -56,6 +56,4 @@
 block discarded – undo
56 56
             The ' characters around the executable and arguments are not part of the command.
57 57
             CMD;
58 58
 
59
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
60
-    }
61
-}
59
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
62 60
\ No newline at end of file
Please login to merge, or discard this patch.
src/Phing/Phing.php 5 patches
Indentation   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1699,8 +1699,4 @@
 block discarded – undo
1699 1699
     public static function shutdown(): void
1700 1700
     {
1701 1701
         FileSystem::getFileSystem()::deleteFilesOnExit();
1702
-        self::$msgOutputLevel = Project::MSG_INFO;
1703
-        self::restoreIni();
1704
-        self::getTimer()->stop();
1705
-    }
1706
-}
1702
+        self::$msgOutputLevel
1707 1703
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1699,8 +1699,4 @@
 block discarded – undo
1699 1699
     public static function shutdown(): void
1700 1700
     {
1701 1701
         FileSystem::getFileSystem()::deleteFilesOnExit();
1702
-        self::$msgOutputLevel = Project::MSG_INFO;
1703
-        self::restoreIni();
1704
-        self::getTimer()->stop();
1705
-    }
1706
-}
1702
+        self::$msgOutputLevel
1707 1703
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +7 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1213,20 +1213,20 @@  discard block
 block discarded – undo
1213 1213
      */
1214 1214
     public function printTargets(Project $project)
1215 1215
     {
1216
-        $visibleTargets = array_filter($project->getTargets(), function (Target $target) {
1216
+        $visibleTargets = array_filter($project->getTargets(), function(Target $target) {
1217 1217
             return !$target->isHidden() && !empty($target->getName());
1218 1218
         });
1219
-        $padding        = array_reduce($visibleTargets, function (int $carry, Target $target) {
1219
+        $padding        = array_reduce($visibleTargets, function(int $carry, Target $target) {
1220 1220
             return max(strlen($target->getName()), $carry);
1221 1221
         }, 0);
1222 1222
         $categories     = [
1223
-            'Default target:' => array_filter($visibleTargets, function (Target $target) use ($project) {
1223
+            'Default target:' => array_filter($visibleTargets, function(Target $target) use ($project) {
1224 1224
                 return trim(strval($target)) === $project->getDefaultTarget();
1225 1225
             }),
1226
-            'Main targets:'   => array_filter($visibleTargets, function (Target $target) {
1226
+            'Main targets:'   => array_filter($visibleTargets, function(Target $target) {
1227 1227
                 return !empty($target->getDescription());
1228 1228
             }),
1229
-            'Subtargets:'     => array_filter($visibleTargets, function (Target $target) {
1229
+            'Subtargets:'     => array_filter($visibleTargets, function(Target $target) {
1230 1230
                 return empty($target->getDescription());
1231 1231
             }),
1232 1232
         ];
@@ -1246,7 +1246,7 @@  discard block
 block discarded – undo
1246 1246
      */
1247 1247
     private function generateTargetList(string $title, array $targets, int $padding): string
1248 1248
     {
1249
-        usort($targets, function (Target $a, Target $b) {
1249
+        usort($targets, function(Target $a, Target $b) {
1250 1250
             return $a->getName() <=> $b->getName();
1251 1251
         });
1252 1252
 
@@ -1699,8 +1699,4 @@  discard block
 block discarded – undo
1699 1699
     public static function shutdown(): void
1700 1700
     {
1701 1701
         FileSystem::getFileSystem()::deleteFilesOnExit();
1702
-        self::$msgOutputLevel = Project::MSG_INFO;
1703
-        self::restoreIni();
1704
-        self::getTimer()->stop();
1705
-    }
1706
-}
1702
+        self::$msgOutputLevel
1707 1703
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1699,8 +1699,4 @@
 block discarded – undo
1699 1699
     public static function shutdown(): void
1700 1700
     {
1701 1701
         FileSystem::getFileSystem()::deleteFilesOnExit();
1702
-        self::$msgOutputLevel = Project::MSG_INFO;
1703
-        self::restoreIni();
1704
-        self::getTimer()->stop();
1705
-    }
1706
-}
1702
+        self::$msgOutputLevel
1707 1703
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1699,8 +1699,4 @@
 block discarded – undo
1699 1699
     public static function shutdown(): void
1700 1700
     {
1701 1701
         FileSystem::getFileSystem()::deleteFilesOnExit();
1702
-        self::$msgOutputLevel = Project::MSG_INFO;
1703
-        self::restoreIni();
1704
-        self::getTimer()->stop();
1705
-    }
1706
-}
1702
+        self::$msgOutputLevel
1707 1703
\ No newline at end of file
Please login to merge, or discard this patch.