Skip to content

Commit e08ea0f

Browse files
committed
A little cleanup
1 parent 4625252 commit e08ea0f

8 files changed

+9
-14
lines changed

Command/AnonConsumerCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
class AnonConsumerCommand extends BaseConsumerCommand
66
{
7-
87
protected function configure()
98
{
109
parent::configure();

Command/BaseConsumerCommand.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
8686
throw new \InvalidArgumentException("The -m option should be null or greater than 0");
8787
}
8888
$this->initConsumer($input);
89-
89+
9090
return $this->consumer->consume($this->amount);
9191
}
92-
93-
protected function initConsumer($input) {
92+
93+
protected function initConsumer($input)
94+
{
9495
$this->consumer = $this->getContainer()
9596
->get(sprintf($this->getConsumerService(), $input->getArgument('name')));
9697

Command/ConsumerCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
class ConsumerCommand extends BaseConsumerCommand
66
{
7-
87
protected function configure()
98
{
109
parent::configure();

Command/DynamicConsumerCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DynamicConsumerCommand extends BaseConsumerCommand
1717
protected function configure()
1818
{
1919
parent::configure();
20-
20+
2121
$this
2222
->setName('rabbitmq:dynamic-consumer')
2323
->setDescription('Executes context-aware consumer')
@@ -29,10 +29,10 @@ protected function getConsumerService()
2929
{
3030
return 'old_sound_rabbit_mq.%s_dynamic';
3131
}
32-
32+
3333
protected function initConsumer($input)
3434
{
3535
parent::initConsumer($input);
3636
$this->consumer->setContext($input->getArgument('context'));
3737
}
38-
}
38+
}

Command/MultipleConsumerCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
class MultipleConsumerCommand extends BaseConsumerCommand
66
{
7-
87
protected function configure()
98
{
109
parent::configure();
11-
10+
1211
$this->setDescription('Executes a consumer that uses multiple queues');
1312
$this->setName('rabbitmq:multiple-consumer');
1413
}

Command/RpcServerCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
class RpcServerCommand extends BaseRabbitMqCommand
1111
{
12-
1312
protected function configure()
1413
{
1514
parent::configure();

Command/SetupFabricCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
2323
define('AMQP_DEBUG', (bool) $input->getOption('debug'));
2424
}
2525

26-
2726
$output->writeln('Setting up the Rabbit MQ fabric');
2827

2928
$partsHolder = $this->getContainer()->get('old_sound_rabbit_mq.parts_holder');

DependencyInjection/Configuration.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
66
use Symfony\Component\Config\Definition\ConfigurationInterface;
7-
use \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
7+
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
88

99
/**
1010
* Configuration
@@ -74,7 +74,6 @@ protected function addConnections(ArrayNodeDefinition $node)
7474
;
7575
}
7676

77-
7877
protected function addProducers(ArrayNodeDefinition $node)
7978
{
8079
$node

0 commit comments

Comments
 (0)