Skip to content

Commit 8c00fac

Browse files
authored
Add missing exit codes (#24)
* Add missing exit codes * Fix return types in doc blocks
1 parent 38096cd commit 8c00fac

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Command/DeleteCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function configure()
2626
* @param InputInterface $input
2727
* @param OutputInterface $output
2828
*
29-
* @return void
29+
* @return int
3030
*/
3131
protected function execute(InputInterface $input, OutputInterface $output)
3232
{
@@ -51,5 +51,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
5151
$this->consumer = $this->getContainer()
5252
->get(sprintf($this->getConsumerService(), $input->getArgument('name')));
5353
$this->consumer->delete();
54+
55+
return 0;
5456
}
5557
}

Command/PurgeConsumerCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function configure()
2626
* @param InputInterface $input
2727
* @param OutputInterface $output
2828
*
29-
* @return void
29+
* @return int
3030
*/
3131
protected function execute(InputInterface $input, OutputInterface $output)
3232
{
@@ -51,5 +51,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
5151
$this->consumer = $this->getContainer()
5252
->get(sprintf($this->getConsumerService(), $input->getArgument('name')));
5353
$this->consumer->purge($input->getArgument('name'));
54+
55+
return 0;
5456
}
5557
}

RabbitMq/BatchConsumer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ public function consume()
126126
}
127127
}
128128
}
129+
130+
return 0;
129131
}
130132

131133
private function batchConsume()

0 commit comments

Comments
 (0)