Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored and driesvints committed Jan 2, 2019
1 parent 1006b3e commit b7c1a37
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Illuminate/Console/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,13 @@ protected function createInputFromArguments(array $arguments)
*/
protected function context()
{
$options = Arr::only($this->option(), ['no-interaction', 'ansi', 'no-ansi', 'quiet', 'verbose']);

return collect($options)->mapWithKeys(function ($value, $key) {
return collect(Arr::only($this->option(), [
'ansi',
'no-ansi',
'no-interaction',
'quiet',
'verbose'
]))->mapWithKeys(function ($value, $key) {
return ["--{$key}" => $value];
})->filter()->all();
}
Expand Down

0 comments on commit b7c1a37

Please sign in to comment.