@@ -243,7 +243,7 @@ |
||
243 | 243 | return implode( |
244 | 244 | ' ', |
245 | 245 | array_map( |
246 | - function ($arg) { |
|
246 | + function($arg) { |
|
247 | 247 | return self::quoteArgument($arg, $this->escape); |
248 | 248 | }, |
249 | 249 | $lines |
@@ -64,7 +64,7 @@ |
||
64 | 64 | return null; |
65 | 65 | } |
66 | 66 | return array_map( |
67 | - function ($env) { |
|
67 | + function($env) { |
|
68 | 68 | return $env->getContent(); |
69 | 69 | }, |
70 | 70 | $this->variables->getArrayCopy() |
@@ -104,7 +104,7 @@ |
||
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].', |
@@ -277,8 +277,7 @@ |
||
277 | 277 | return 0; |
278 | 278 | } |
279 | 279 | $c0 = $path[0]; |
280 | - $c1 = ($n > 1) ? $path[1] : |
|
281 | - 0; |
|
280 | + $c1 = ($n > 1) ? $path[1] : 0; |
|
282 | 281 | if ($c0 === $slash) { |
283 | 282 | if ($c1 === $slash) { |
284 | 283 | return 2; // absolute UNC pathname "\\\\foo" |
@@ -67,7 +67,7 @@ |
||
67 | 67 | |
68 | 68 | private static function findElementInTarget(Target $t, $name) |
69 | 69 | { |
70 | - return array_filter($t->getTasks(), static function (Task $task) use ($name) { |
|
70 | + return array_filter($t->getTasks(), static function(Task $task) use ($name) { |
|
71 | 71 | return $task->getTaskName() === $name; |
72 | 72 | }); |
73 | 73 | } |
@@ -101,7 +101,7 @@ |
||
101 | 101 | { |
102 | 102 | array_walk( |
103 | 103 | Phing::getProperties(), |
104 | - static function ($v, $k) use ($out) { |
|
104 | + static function($v, $k) use ($out) { |
|
105 | 105 | $out->println($k . ' : ' . $v); |
106 | 106 | } |
107 | 107 | ); |
@@ -142,7 +142,7 @@ |
||
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 | [] |
@@ -581,7 +581,7 @@ |
||
581 | 581 | } |
582 | 582 | |
583 | 583 | $subprojRefKeys[] = $refid; |
584 | - unset($this->references[$i]);//thisReferences.remove(refid); |
|
584 | + unset($this->references[$i]); //thisReferences.remove(refid); |
|
585 | 585 | $toRefid = $ref->getToRefid(); |
586 | 586 | if ($toRefid === null) { |
587 | 587 | $toRefid = $refid; |
@@ -95,7 +95,7 @@ |
||
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; |