From 6e30512eab09b87ca2a3c04a853119b3304a098a Mon Sep 17 00:00:00 2001 From: kpitn Date: Thu, 22 Aug 2024 12:02:27 +0200 Subject: [PATCH] remove website parameter for getdelay function --- Model/Config/Entity/Erasure.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Model/Config/Entity/Erasure.php b/Model/Config/Entity/Erasure.php index 57f98a7..eb216d6 100644 --- a/Model/Config/Entity/Erasure.php +++ b/Model/Config/Entity/Erasure.php @@ -54,16 +54,10 @@ public function getAllowedStatesToErase(int|string|null $website = null): array } /** - * @param int|string|null $website - * * @return int */ - public function getDelay(int|string|null $website = null): int + public function getDelay(): int { - return (int)$this->scopeConfig->getValue( - self::CONFIG_PATH_ERASURE_DELAY, - ScopeInterface::SCOPE_WEBSITE, - $website - ); + return (int)$this->scopeConfig->getValue(self::CONFIG_PATH_ERASURE_DELAY, ScopeInterface::SCOPE_WEBSITE); } }