Passed
Push — master ( 7a9799...2aee06 )
by Michiel
06:03
created
phing/tasks/ext/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.
classes/phing/tasks/ext/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.
classes/phing/tasks/ext/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.
classes/phing/tasks/ext/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.
classes/phing/tasks/ext/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.
tests/classes/phing/tasks/ext/sonar/SonarConfigurationFileParserTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $fh = fopen($tmpFile, 'w');
183 183
 
184 184
         if (false !== $fh) {
185
-            register_shutdown_function(function () use ($tmpFile) {
185
+            register_shutdown_function(function() use ($tmpFile) {
186 186
                 unlink($tmpFile);
187 187
             });
188 188
 
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 
215 215
         $fh = fopen($tmpFile, 'w');
216 216
         if (false !== $fh) {
217
-            register_shutdown_function(function () use ($tmpFile) {
217
+            register_shutdown_function(function() use ($tmpFile) {
218 218
                 unlink($tmpFile);
219 219
             });
220 220
 
Please login to merge, or discard this patch.
src/Phing/PropertyHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
223 223
         while (strpos($sb, '${') !== false) {
224 224
             $sb = preg_replace_callback(
225 225
                 '/\$\{([^\$}]+)\}/',
226
-                function ($matches) use ($keys) {
226
+                function($matches) use ($keys) {
227 227
                     $propertyName = $matches[1];
228 228
 
229 229
                     $replacement = null;
Please login to merge, or discard this patch.
src/Phing/Parser/TargetHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
     {
96 96
         $name = null;
97 97
         $depends = "";
98
-        $extensionPoint = null;//'fail';
98
+        $extensionPoint = null; //'fail';
99 99
         $extensionPointMissing = null;
100 100
         $ifCond = null;
101 101
         $unlessCond = null;
Please login to merge, or discard this patch.
src/Phing/Type/Environment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             return null;
65 65
         }
66 66
         return array_map(
67
-            function (EnvVariable $env) {
67
+            function(EnvVariable $env) {
68 68
                 return $env->getContent();
69 69
             },
70 70
             $this->variables->getArrayCopy()
Please login to merge, or discard this patch.