Skip to content

Commit d611801

Browse files
committed
build: run linters
1 parent 06fe28e commit d611801

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

src/Queue/Connectors/RabbitMQConnector.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
use ReflectionClass;
1919
use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\RabbitMQQueue;
2020

21+
/**
22+
* RMQ connector.
23+
*/
2124
class RabbitMQConnector implements ConnectorInterface
2225
{
2326
private const WORKER_DEFAULT = 'default';
@@ -27,6 +30,9 @@ class RabbitMQConnector implements ConnectorInterface
2730
*/
2831
private $dispatcher;
2932

33+
/**
34+
* @param Dispatcher $dispatcher
35+
*/
3036
public function __construct(Dispatcher $dispatcher)
3137
{
3238
$this->dispatcher = $dispatcher;

src/Queue/Jobs/RabbitMQJob.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
use Interop\Amqp\AmqpMessage;
1414
use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\RabbitMQQueue;
1515

16+
/**
17+
* RMQ queue job.
18+
*/
1619
class RabbitMQJob extends Job implements JobContract
1720
{
1821
use DetectsConcurrencyErrors;
@@ -31,6 +34,12 @@ class RabbitMQJob extends Job implements JobContract
3134
/** @var AmqpMessage */
3235
protected $message;
3336

37+
/**
38+
* @param Container $container
39+
* @param RabbitMQQueue $connection
40+
* @param AmqpConsumer $consumer
41+
* @param AmqpMessage $message
42+
*/
3443
public function __construct(
3544
Container $container,
3645
RabbitMQQueue $connection,

src/Queue/RabbitMQQueue.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
use Throwable;
1919
use VladimirYuldashev\LaravelQueueRabbitMQ\Queue\Jobs\RabbitMQJob;
2020

21+
/**
22+
* RMQ queue consumer.
23+
*/
2124
class RabbitMQQueue extends Queue implements QueueContract
2225
{
2326
private const SLEEP_ON_ERROR = 5;
@@ -398,6 +401,8 @@ protected function getRandomId(): string
398401
* @param Throwable $e
399402
*
400403
* @throws RuntimeException
404+
*
405+
* @return void
401406
*/
402407
protected function reportConnectionError(string $action, Throwable $e): void
403408
{

0 commit comments

Comments
 (0)