From c5dcf0fe5438c127bb0e75174f0a9df0325c2729 Mon Sep 17 00:00:00 2001 From: Vadym Honcharuk Date: Mon, 25 Nov 2024 15:37:05 +0200 Subject: [PATCH] [Core] Feature #3432, phpcs warning --- src/module-elasticsuite-core/Healthcheck/GhostIndicesCheck.php | 2 +- .../System/Message/GenericWarningAboutClusterMisconfig.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/module-elasticsuite-core/Healthcheck/GhostIndicesCheck.php b/src/module-elasticsuite-core/Healthcheck/GhostIndicesCheck.php index 9e9133dee..37fbe2b08 100644 --- a/src/module-elasticsuite-core/Healthcheck/GhostIndicesCheck.php +++ b/src/module-elasticsuite-core/Healthcheck/GhostIndicesCheck.php @@ -157,7 +157,7 @@ private function getNumberOfGhostIndices(): int * * @return string */ - public function getElasticsuiteIndicesUrl(): string + private function getElasticsuiteIndicesUrl(): string { return $this->urlBuilder->getUrl(self::ROUTE_ELASTICSUITE_INDICES); } diff --git a/src/module-elasticsuite-core/Model/System/Message/GenericWarningAboutClusterMisconfig.php b/src/module-elasticsuite-core/Model/System/Message/GenericWarningAboutClusterMisconfig.php index a164d456c..675a7fe53 100644 --- a/src/module-elasticsuite-core/Model/System/Message/GenericWarningAboutClusterMisconfig.php +++ b/src/module-elasticsuite-core/Model/System/Message/GenericWarningAboutClusterMisconfig.php @@ -85,12 +85,14 @@ public function getText() { $issuesCount = $this->getIssueCount(); + // @codingStandardsIgnoreStart return __( 'You have %1 health checks in a warning state. ' . 'Please head to the Elasticsuite Healthcheck page to get more details and see how to fix them.', $issuesCount, $this->getElasticsuiteHealthcheckUrl() ); + // @codingStandardsIgnoreEnd } /**