Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjunges authored and actions-user committed Nov 29, 2021
1 parent 015cc17 commit 340b675
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Consumers/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Junges\Kafka\Consumers;

use Closure;
use Junges\Kafka\Commit\CommitterFactory;
use Junges\Kafka\Commit\Contracts\Committer;
use Junges\Kafka\Commit\NativeSleeper;
Expand All @@ -18,7 +19,6 @@
use RdKafka\Message;
use RdKafka\Producer as KafkaProducer;
use Throwable;
use Closure;

class Consumer
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Consumers/ConsumerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ public function testCanStopConsume()
$this->mockProducer();

$this->stoppableConsumer = Kafka::createConsumer(['test'])
->withHandler(function(KafkaConsumerMessage $message) {
->withHandler(function (KafkaConsumerMessage $message) {
if ($message->getKey() === 'key2' && $this->stoppableConsumer) {
$this->stoppableConsumer->stopConsume(function() {
$this->stoppableConsumer->stopConsume(function () {
$this->stoppableConsumerStopped = true;
});
}
Expand Down
2 changes: 1 addition & 1 deletion tests/LaravelKafkaTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected function mockConsumerWithMessage(Message ...$message)
->andReturn(m::self())
->shouldReceive('consume')
->withAnyArgs()
->andReturnUsing(function() use (&$message) {
->andReturnUsing(function () use (&$message) {
return array_splice($message, 0, 1)[0] ?? null;
})
->shouldReceive('commit')
Expand Down

0 comments on commit 340b675

Please sign in to comment.