Skip to content

Commit

Permalink
Add missing exit codes (#24)
Browse files Browse the repository at this point in the history
* Add missing exit codes

* Fix return types in doc blocks
  • Loading branch information
mantiz authored Mar 26, 2020
1 parent 38096cd commit 8c00fac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Command/DeleteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function configure()
* @param InputInterface $input
* @param OutputInterface $output
*
* @return void
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
Expand All @@ -51,5 +51,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->consumer = $this->getContainer()
->get(sprintf($this->getConsumerService(), $input->getArgument('name')));
$this->consumer->delete();

return 0;
}
}
4 changes: 3 additions & 1 deletion Command/PurgeConsumerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function configure()
* @param InputInterface $input
* @param OutputInterface $output
*
* @return void
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
Expand All @@ -51,5 +51,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->consumer = $this->getContainer()
->get(sprintf($this->getConsumerService(), $input->getArgument('name')));
$this->consumer->purge($input->getArgument('name'));

return 0;
}
}
2 changes: 2 additions & 0 deletions RabbitMq/BatchConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ public function consume()
}
}
}

return 0;
}

private function batchConsume()
Expand Down

0 comments on commit 8c00fac

Please sign in to comment.