Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 8, 2020
1 parent 097caee commit 852a927
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Illuminate/Events/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,9 @@ protected function queueHandler($class, $method, $arguments)
$listener->connection ?? null
);

$queue = method_exists($listener, 'getQueue') ? $listener->getQueue() : $listener->queue ?? null;
$queue = method_exists($listener, 'viaQueue')
? $listener->viaQueue()
: $listener->queue ?? null;

isset($listener->delay)
? $connection->laterOn($queue, $listener->delay, $job)
Expand Down
2 changes: 1 addition & 1 deletion tests/Events/QueuedEventsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function handle()
//
}

public function getQueue()
public function viaQueue()
{
return 'some_other_queue';
}
Expand Down

0 comments on commit 852a927

Please sign in to comment.