Skip to content

Commit bdc214c

Browse files
authored
Merge pull request vyuldashev#116 from vladimir-yuldashev/analysis-8KrGB6
Apply fixes from StyleCI
2 parents ce7d5e6 + 1a3cfe6 commit bdc214c

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/Connectors/RabbitMQConnector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,4 @@ public function connection()
4040
{
4141
return $this->connection;
4242
}
43-
4443
}

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/Jobs/RabbitMQJob.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
class RabbitMQJob extends Job implements JobContract
1616
{
17-
1817
use DetectsDeadlocks;
1918

2019
/**
@@ -42,8 +41,7 @@ public function __construct(
4241
AMQPChannel $channel,
4342
$queue,
4443
AMQPMessage $message
45-
)
46-
{
44+
) {
4745
$this->container = $container;
4846
$this->connection = $connection;
4947
$this->channel = $channel;
@@ -211,5 +209,4 @@ private function unserialize(array $body)
211209
throw $exception;
212210
}
213211
}
214-
215212
}

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/RabbitMQQueue.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ public function pop($queue = null)
168168
if ($message instanceof AMQPMessage) {
169169
return new RabbitMQJob($this->container, $this, $this->channel, $queue, $message);
170170
}
171-
}
172-
catch(ErrorException $exception) {
171+
} catch (ErrorException $exception) {
173172
$this->reportConnectionError('pop', $exception);
174173
}
175174

@@ -328,5 +327,4 @@ private function reportConnectionError($action, Exception $e)
328327
// Sleep so that we don't flood the log file
329328
sleep($this->sleepOnError);
330329
}
331-
332330
}

0 commit comments

Comments
 (0)