Skip to content

Commit

Permalink
remove website parameter for getdelay function
Browse files Browse the repository at this point in the history
  • Loading branch information
kpitn committed Aug 22, 2024
1 parent 2234a18 commit 6e30512
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Model/Config/Entity/Erasure.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 6e30512

Please sign in to comment.