Passed
Push — siad007-patch-1 ( fc763d...159b8c )
by Siad
06: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.
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.
Spacing   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1690,8 +1690,4 @@
 block discarded – undo
1690 1690
     public static function shutdown(): void
1691 1691
     {
1692 1692
         FileSystem::getFileSystem()::deleteFilesOnExit();
1693
-        self::$msgOutputLevel = Project::MSG_INFO;
1694
-        self::restoreIni();
1695
-        self::getTimer()->stop();
1696
-    }
1697
-}
1693
+        self::$msgOutputLevel
1698 1694
\ No newline at end of file
Please login to merge, or discard this patch.
src/Phing/Listener/DefaultLogger.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
     public static function formatTime(float $seconds): string
335 335
     {
336 336
         /** @var int|float $number */
337
-        $getPlural = function ($number): string {
337
+        $getPlural = function($number): string {
338 338
             return $number == 1 ? '' : 's';
339 339
         };
340 340
         $chunks    = [];
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
                 $chunks[] = intdiv($seconds, self::A_DAY);
347 347
                 $chunks[] = $getPlural(end($chunks));
348 348
                 $seconds  = fmod($seconds, self::A_DAY);
349
-                $format   .= '%u day%s  ';
349
+                $format .= '%u day%s  ';
350 350
             // Hours
351 351
             case ($seconds >= self::AN_HOUR):
352 352
                 $chunks[] = intdiv($seconds, self::AN_HOUR);
@@ -358,13 +358,13 @@  discard block
 block discarded – undo
358 358
                 $chunks[]  = intdiv($seconds, self::A_MINUTE);
359 359
                 $chunks[]  = $getPlural(end($chunks));
360 360
                 $seconds   = fmod($seconds, self::A_MINUTE);
361
-                $format    .= '%u minute%s  ';
361
+                $format .= '%u minute%s  ';
362 362
                 $precision = 2;
363 363
             // Seconds
364 364
             default:
365 365
                 $chunks[] = $seconds;
366 366
                 $chunks[] = $getPlural(end($chunks));
367
-                $format   .= "%.{$precision}F second%s";
367
+                $format .= "%.{$precision}F second%s";
368 368
                 break;
369 369
         }
370 370
 
Please login to merge, or discard this patch.