From 7647399b54c42b12cd66b76da046e73d15bcbff1 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 2 Sep 2017 13:27:55 +0200 Subject: [PATCH] formatting --- src/Illuminate/Console/Application.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/Illuminate/Console/Application.php b/src/Illuminate/Console/Application.php index d11f9ce7c23e..02602ac9dfb4 100755 --- a/src/Illuminate/Console/Application.php +++ b/src/Illuminate/Console/Application.php @@ -75,18 +75,14 @@ public function __construct(Container $laravel, Dispatcher $events, $version) */ public function run(InputInterface $input = null, OutputInterface $output = null) { - if ($input === null) { - $input = new ArgvInput(); - } - - if ($output === null) { - $output = new ConsoleOutput(); - } - - $commandName = $this->getCommandName($input); + $commandName = $this->getCommandName( + $input = $input ?: new ArgvInput + ); $this->events->fire( - new Events\CommandStarting($commandName, $input, $output) + new Events\CommandStarting( + $commandName, $input, $output = $output ?: new ConsoleOutput + ) ); $exitCode = parent::run($input, $output);