E56E code style changes · symfony/symfony@c5d6268 · GitHub
[go: up one dir, main page]

Skip to content

Commit c5d6268

Browse files
author
Olaf Kwant
committed
code style changes
1 parent af3df80 commit c5d6268

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private function parseArgument($token)
169169
// if input is expecting another argument, add it
170170
if ($this->definition->hasArgument($c)) {
171171
$arg = $this->definition->getArgument($c);
172-
$this->arguments[$arg->getName()] = $arg->isArray()? array($token) : $token;
172+
$this->arguments[$arg->getName()] = $arg->isArray() ? array($token) : $token;
173173

174174
// if last argument isArray(), append token to last argument
175175
} elseif ($this->definition->hasArgument($c - 1) && $this->definition->getArgument($c - 1)->isArray()) {
@@ -249,7 +249,7 @@ private function addLongOption($name, $value)
249249

250250
if ($option->isArray()) {
251251
$this->options[$name][] = $value;
252-
} else if ($option->isValueOptionull() && true === $value) {
252+
} elseif ($option->isValueOptionull() && true === $value) {
253253
$this->options[$name] = $option->getSetDefault();
254254
} else {
255255
$this->options[$name] = $value;
@@ -338,7 +338,7 @@ public function __toString()
338338
$self = $this;
339339
$tokens = array_map(function ($token) use ($self) {
340340
if (preg_match('{^(-[^=]+=)(.+)}', $token, $match)) {
341-
return $match[1] . $self->escapeToken($match[2]);
341+
return $match[1].$self->escapeToken($match[2]);
342342
}
343343

344344
if ($token && $token[0] !== '-') {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ public function getSetDefault()
213213
return $this->set_default;
214214
}
215215

216-
217216
/**
218217
* Returns the description text.
219218
*

0 commit comments

Comments
 (0)
0