Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 14, 2021
1 parent 416fc17 commit ebc3ce4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Illuminate/Events/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,9 @@ protected function queueHandler($class, $method, $arguments)
{
[$listener, $job] = $this->createListenerAndJob($class, $method, $arguments);

$connectionName = method_exists($listener, 'viaConnection')
$connection = $this->resolveQueue()->connection(method_exists($listener, 'viaConnection')
? $listener->viaConnection()
: $listener->connection ?? null;

$connection = $this->resolveQueue()->connection($connectionName);
: $listener->connection ?? null);

$queue = method_exists($listener, 'viaQueue')
? $listener->viaQueue()
Expand Down

0 comments on commit ebc3ce4

Please sign in to comment.