src/module-elasticsuite-indices/Model/IndexStatusProvider.php
Showing 9 of 9 total issues
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ClientInterface $client, IndexSettingsHelper $indexSettingsHelper, StoreIndicesCollectionFactory $storeIndicesFactory, WorkingIndexerCollectionFactory $indexerCollectionFactory, LoggerInterface $logger
Function isRebuilding
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
private function isRebuilding(string $indexName, $indexDate): bool { if ($indexDate === false) { // If $indexDate is false, we cannot rebuild. return false;
- Read upRead up
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return IndexStatus::UNDEFINED_STATUS;
Avoid too many return
statements within this method. Open
Open
return IndexStatus::GHOST_STATUS;
Avoid too many return
statements within this method. Open
Open
return IndexStatus::REBUILDING_STATUS;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return IndexStatus::LIVE_STATUS;