Skip to content

Commit 6550241

Browse files
authored
Remove unused arguments
1 parent 196ab80 commit 6550241

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Plugin/Url/Scope.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,11 @@ public function afterGetBaseUrl(
3535
};
3636
$cacheKey = $scope->getId() . '/' . $type . '/' . $isSecure;
3737

38-
return $this->cache[$cacheKey] ??= $this->processBaseUrl($scope, $baseUrl, $type, $secure);
38+
return $this->cache[$cacheKey] ??= $this->processBaseUrl($scope, $baseUrl, $type);
3939
}
4040

41-
private function processBaseUrl(
42-
ScopeInterface $scope,
43-
string $baseUrl,
44-
string $type = UrlInterface::URL_TYPE_LINK,
45-
?bool $secure = null
46-
) {
41+
private function processBaseUrl(ScopeInterface $scope, string $baseUrl, string $type): string
42+
{
4743
return $type === UrlInterface::URL_TYPE_LINK && $scope instanceof StoreInterface && $this->config->isEnabled()
4844
? $this->uriUtils->replaceScopeCode($baseUrl, $scope)
4945
: $baseUrl;

0 commit comments

Comments
 (0)