Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-indices/Model/Healthcheck/ReplicasConfigCheck.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 3 of 3 total issues

Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

IndexSettingsHelper $indexSettingsHelper,
Client $client,
UrlInterface $urlBuilder,
int $sortOrder = 30,
int $severity = MessageInterface::SEVERITY_CRITICAL

    Invalid offset "total" of array type array{}
    Open

    return $nodeInfo['total'] ?? 0;

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    public function __construct(
    IndexSettingsHelper $indexSettingsHelper,
    Client $client,
    UrlInterface $urlBuilder,
    int $sortOrder = 30,
    src/module-elasticsuite-indices/Model/Healthcheck/PrimaryShardsConfigCheck.php on lines 68..78
    Category
    Status