Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 2, 2017
1 parent 59083e9 commit 7647399
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/Illuminate/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7647399

Please sign in to comment.