8000 Fabbot · symfony/symfony@cb835b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit cb835b0

Browse files
committed
Fabbot
1 parent 126cecf commit cb835b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Console/Input/ArrayInput.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ public function __toString()
108108
$params = [];
109109
foreach ($this->parameters as $param => $val) {
110110
if ($param && \is_string($param) && '-' === $param[0]) {
111-
$glue = ('-' === $param[1]) ? '=': ' ';
111+
$glue = ('-' === $param[1]) ? '=' : ' ';
112112
if (\is_array($val)) {
113113
foreach ($val as $v) {
114-
$params[] = $param.('' != $v ? $glue .$this->escapeToken($v) : '');
114+
$params[] = $param.('' != $v ? $glue.$this->escapeToken($v) : '');
115115
}
116116
} else {
117-
$params[] = $param.('' != $val ? $glue .$this->escapeToken($val) : '');
117+
$params[] = $param.('' != $val ? $glue.$this->escapeToken($val) : '');
118118
}
119119
} else {
120120
$params[] = \is_array($val) ? implode(' ', array_map([$this, 'escapeToken'], $val)) : $this->escapeToken($val);

0 commit comments

Comments
 (0)
0