Skip to content

Commit

Permalink
Code cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Feb 12, 2024
1 parent 0982fc6 commit 74b71f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Classes/Command/BoostQueueCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function configure(): void
*
* @throws NoSuchCacheException
*
* @return null|int null or 0 if everything went fine, or an error code
* @return int null or 0 if everything went fine, or an error code
*
* @see setCode()
*/
Expand Down Expand Up @@ -91,7 +91,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$this->cleanupQueue($io);
}

return 0;
return self::SUCCESS;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions Classes/Command/FlushCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected function configure(): void
* @throws NoSuchCacheException
* @throws NoSuchCacheGroupException
*
* @return null|int null or 0 if everything went fine, or an error code
* @return int null or 0 if everything went fine, or an error code
*
* @see setCode()
*/
Expand All @@ -49,6 +49,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$cacheService = GeneralUtility::makeInstance(CacheService::class);
$cacheService->flush((bool) $input->getOption('force-boost-mode-flush'));

return 0;
return self::SUCCESS;
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"phpunit -c Tests/UnitTests.xml"
],
"phpstan": [
".Build/bin/phpstan --memory-limit=1024M"
"phpstan --memory-limit=1024M"
]
}
}

0 comments on commit 74b71f7

Please sign in to comment.