Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Command/CollectionDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function configure() {
*
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
$collection = $input->getArgument('name');
if (!$this->collectionService->hasCollection($collection)) {
throw new CollectionArgumentException('unknown collection');
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/CollectionList.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected function configure() {
*
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
$collections = $this->collectionService->getCollections();
$output->writeln('found ' . sizeof($collections) . ' collection(s)');

Expand Down
2 changes: 1 addition & 1 deletion lib/Command/DocumentPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function configure() {
*
* @throws Exception
*/
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
$providerId = $input->getArgument('providerId');
$documentId = $input->getArgument('documentId');

Expand Down
2 changes: 1 addition & 1 deletion lib/Command/DocumentProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function configure() {
*
* @throws Exception
*/
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
$providerId = $input->getArgument('providerId');
$documentId = $input->getArgument('documentId');
$userId = $input->getArgument('userId');
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/DocumentStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected function configure() {
*
* @throws Exception
*/
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
$providerId = $input->getArgument('provider');
$documentId = $input->getArgument('document');
$value = $input->getOption('value');
Expand Down
3 changes: 1 addition & 2 deletions lib/Command/Live.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,9 @@ protected function configure(): void {
* @param InputInterface $input
* @param OutputInterface $output
*
* @return int|null|void
* @throws Exception
*/
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
if (!$input->getOption('service') && !$input->getOption('no-readline')) {
try {
/** do not get stuck while waiting interactive input */
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function configure() {
* @return int
* @throws Exception
*/
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
$searchRequest = new SearchRequest();
$searchRequest->importFromArray(
[
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/Stop.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function configure() {
*
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
$output->writeln('stopping all running indexes');

$this->runningService->forceStop();
Expand Down
Loading