Passed
Push — main ( 4889b2...808ce0 )
by Michiel
07:43
created
src/Phing/Util/SizeHelper.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -32,15 +32,15 @@
 block discarded – undo
32 32
     public const B = 'B';
33 33
     public const KILO = 1000;
34 34
     public const KIBI = 1024;
35
-    public const SI = [1 => ['kB', 'kilo', 'kilobyte',],
36
-        2 => ['MB', 'mega', 'megabyte',],
37
-        3 => ['GB', 'giga', 'gigabyte',],
38
-        4 => ['TB', 'tera', 'terabyte',],];
39
-    public const IEC = [0 => [self::B,],
40
-        1 => ['k', 'Ki', 'KiB', 'kibi', 'kibibyte',],
41
-        2 => ['M', 'Mi', 'MiB', 'mebi', 'mebibyte',],
42
-        3 => ['G', 'Gi', 'GiB', 'gibi', 'gibibyte',],
43
-        4 => ['T', 'Ti', 'TiB', 'tebi', 'tebibyte',],];
35
+    public const SI = [1 => ['kB', 'kilo', 'kilobyte', ],
36
+        2 => ['MB', 'mega', 'megabyte', ],
37
+        3 => ['GB', 'giga', 'gigabyte', ],
38
+        4 => ['TB', 'tera', 'terabyte', ], ];
39
+    public const IEC = [0 => [self::B, ],
40
+        1 => ['k', 'Ki', 'KiB', 'kibi', 'kibibyte', ],
41
+        2 => ['M', 'Mi', 'MiB', 'mebi', 'mebibyte', ],
42
+        3 => ['G', 'Gi', 'GiB', 'gibi', 'gibibyte', ],
43
+        4 => ['T', 'Ti', 'TiB', 'tebi', 'tebibyte', ], ];
44 44
 
45 45
     /**
46 46
      * Converts strings like '512K', '0.5G', '50M' to bytes.
Please login to merge, or discard this patch.
src/Phing/Task/System/Retry.php 5 patches
Indentation   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,9 +141,4 @@
 block discarded – undo
141 141
                 $errorMessages .= PHP_EOL;
142 142
 
143 143
                 if ($this->retryDelay > 0) {
144
-                    sleep($this->retryDelay);
145
-                }
146
-            }
147
-        }
148
-    }
149
-}
144
+                    sleep($this->retryDelay
150 145
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,9 +141,4 @@
 block discarded – undo
141 141
                 $errorMessages .= PHP_EOL;
142 142
 
143 143
                 if ($this->retryDelay > 0) {
144
-                    sleep($this->retryDelay);
145
-                }
146
-            }
147
-        }
148
-    }
149
-}
144
+                    sleep($this->retryDelay
150 145
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,9 +141,4 @@
 block discarded – undo
141 141
                 $errorMessages .= PHP_EOL;
142 142
 
143 143
                 if ($this->retryDelay > 0) {
144
-                    sleep($this->retryDelay);
145
-                }
146
-            }
147
-        }
148
-    }
149
-}
144
+                    sleep($this->retryDelay
150 145
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,9 +141,4 @@
 block discarded – undo
141 141
                 $errorMessages .= PHP_EOL;
142 142
 
143 143
                 if ($this->retryDelay > 0) {
144
-                    sleep($this->retryDelay);
145
-                }
146
-            }
147
-        }
148
-    }
149
-}
144
+                    sleep($this->retryDelay
150 145
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,9 +141,4 @@
 block discarded – undo
141 141
                 $errorMessages .= PHP_EOL;
142 142
 
143 143
                 if ($this->retryDelay > 0) {
144
-                    sleep($this->retryDelay);
145
-                }
146
-            }
147
-        }
148
-    }
149
-}
144
+                    sleep($this->retryDelay
150 145
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Phing/Task/Optional/PDODelimitersTest.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,6 +210,4 @@
 block discarded – undo
210 210
         $this->project->setProperty('bar.value', "some value");
211 211
         $this->project->executeTarget('test');
212 212
 
213
-        $this->assertEquals($expected, $this->queries);
214
-    }
215
-}
213
+        $this->assertEquals($expected, $this->queries
216 214
\ 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
@@ -210,6 +210,4 @@
 block discarded – undo
210 210
         $this->project->setProperty('bar.value', "some value");
211 211
         $this->project->executeTarget('test');
212 212
 
213
-        $this->assertEquals($expected, $this->queries);
214
-    }
215
-}
213
+        $this->assertEquals($expected, $this->queries
216 214
\ 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
@@ -210,6 +210,4 @@
 block discarded – undo
210 210
         $this->project->setProperty('bar.value', "some value");
211 211
         $this->project->executeTarget('test');
212 212
 
213
-        $this->assertEquals($expected, $this->queries);
214
-    }
215
-}
213
+        $this->assertEquals($expected, $this->queries
216 214
\ 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
@@ -210,6 +210,4 @@
 block discarded – undo
210 210
         $this->project->setProperty('bar.value', "some value");
211 211
         $this->project->executeTarget('test');
212 212
 
213
-        $this->assertEquals($expected, $this->queries);
214
-    }
215
-}
213
+        $this->assertEquals($expected, $this->queries
216 214
\ 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
@@ -210,6 +210,4 @@
 block discarded – undo
210 210
         $this->project->setProperty('bar.value', "some value");
211 211
         $this->project->executeTarget('test');
212 212
 
213
-        $this->assertEquals($expected, $this->queries);
214
-    }
215
-}
213
+        $this->assertEquals($expected, $this->queries
216 214
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Phing/Task/Optional/PHPStan/PHPStanListCommandBuilderTest.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
@@ -92,6 +92,4 @@
 block discarded – undo
92 92
             The ' characters around the executable and arguments are not part of the command.
93 93
             CMD;
94 94
 
95
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
96
-    }
97
-}
95
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
98 96
\ 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
@@ -92,6 +92,4 @@
 block discarded – undo
92 92
             The ' characters around the executable and arguments are not part of the command.
93 93
             CMD;
94 94
 
95
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
96
-    }
97
-}
95
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
98 96
\ 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
@@ -92,6 +92,4 @@
 block discarded – undo
92 92
             The ' characters around the executable and arguments are not part of the command.
93 93
             CMD;
94 94
 
95
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
96
-    }
97
-}
95
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
98 96
\ 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
@@ -92,6 +92,4 @@
 block discarded – undo
92 92
             The ' characters around the executable and arguments are not part of the command.
93 93
             CMD;
94 94
 
95
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
96
-    }
97
-}
95
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
98 96
\ 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
@@ -92,6 +92,4 @@
 block discarded – undo
92 92
             The ' characters around the executable and arguments are not part of the command.
93 93
             CMD;
94 94
 
95
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
96
-    }
97
-}
95
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
98 96
\ 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
@@ -65,6 +65,4 @@
 block discarded – undo
65 65
             The ' characters around the executable and arguments are not part of the command.
66 66
             CMD;
67 67
 
68
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
69
-    }
70
-}
68
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
71 69
\ 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
@@ -65,6 +65,4 @@
 block discarded – undo
65 65
             The ' characters around the executable and arguments are not part of the command.
66 66
             CMD;
67 67
 
68
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
69
-    }
70
-}
68
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
71 69
\ 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
@@ -65,6 +65,4 @@
 block discarded – undo
65 65
             The ' characters around the executable and arguments are not part of the command.
66 66
             CMD;
67 67
 
68
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
69
-    }
70
-}
68
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
71 69
\ 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
@@ -65,6 +65,4 @@
 block discarded – undo
65 65
             The ' characters around the executable and arguments are not part of the command.
66 66
             CMD;
67 67
 
68
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
69
-    }
70
-}
68
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
71 69
\ 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
@@ -65,6 +65,4 @@
 block discarded – undo
65 65
             The ' characters around the executable and arguments are not part of the command.
66 66
             CMD;
67 67
 
68
-        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand()));
69
-    }
70
-}
68
+        $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline
71 69
\ 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/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.