Skip to content

Commit b6a5ab6

Browse files
committed
try to fix style issues
1 parent 19fc898 commit b6a5ab6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Horizon/Listeners/RabbitMQFailedEvent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace VladimirYuldashev\LaravelQueueRabbitMQ\Horizon\Listeners;
44

55
use Illuminate\Contracts\Events\Dispatcher;
6-
use Illuminate\Queue\Events\JobFailed as LaravelJobFailed;
76
use Laravel\Horizon\Events\JobFailed as HorizonJobFailed;
7+
use Illuminate\Queue\Events\JobFailed as LaravelJobFailed;
88
use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\Jobs\RabbitMQJob;
99

1010
class RabbitMQFailedEvent
@@ -35,7 +35,7 @@ public function __construct(Dispatcher $events)
3535
*/
3636
public function handle(LaravelJobFailed $event)
3737
{
38-
if (!$event->job instanceof RabbitMQJob) {
38+
if (! $event->job instanceof RabbitMQJob) {
3939
return;
4040
}
4141

src/Queue/Connectors/RabbitMQConnector.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Interop\Amqp\AmqpContext;
77
use InvalidArgumentException;
88
use Illuminate\Contracts\Queue\Queue;
9+
use Illuminate\Queue\Events\JobFailed;
910
use Interop\Amqp\AmqpConnectionFactory;
1011
use Enqueue\AmqpTools\DelayStrategyAware;
1112
use Illuminate\Contracts\Events\Dispatcher;
@@ -15,9 +16,8 @@
1516
use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\RabbitMQQueue;
1617
use Interop\Amqp\AmqpConnectionFactory as InteropAmqpConnectionFactory;
1718
use Enqueue\AmqpLib\AmqpConnectionFactory as EnqueueAmqpConnectionFactory;
18-
use VladimirYuldashev\LaravelQueueRabbitMQ\Horizon\RabbitMQQueue as HorizonRabbitMQQueue;
1919
use VladimirYuldashev\LaravelQueueRabbitMQ\Horizon\Listeners\RabbitMQFailedEvent;
20-
use Illuminate\Queue\Events\JobFailed;
20+
use VladimirYuldashev\LaravelQueueRabbitMQ\Horizon\RabbitMQQueue as HorizonRabbitMQQueue;
2121

2222
class RabbitMQConnector implements ConnectorInterface
2323
{
@@ -82,6 +82,7 @@ public function connect(array $config): Queue
8282

8383
if ($worker === 'horizon') {
8484
$this->dispatcher->listen(JobFailed::class, RabbitMQFailedEvent::class);
85+
8586
return new HorizonRabbitMQQueue($context, $config);
8687
}
8788

0 commit comments

Comments
 (0)