File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,11 @@ public function afterGetBaseUrl(
35
35
};
36
36
$ cacheKey = $ scope ->getId () . '/ ' . $ type . '/ ' . $ isSecure ;
37
37
38
- return $ this ->cache [$ cacheKey ] ??= $ this ->processBaseUrl ($ scope , $ baseUrl , $ type, $ secure );
38
+ return $ this ->cache [$ cacheKey ] ??= $ this ->processBaseUrl ($ scope , $ baseUrl , $ type );
39
39
}
40
40
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
+ {
47
43
return $ type === UrlInterface::URL_TYPE_LINK && $ scope instanceof StoreInterface && $ this ->config ->isEnabled ()
48
44
? $ this ->uriUtils ->replaceScopeCode ($ baseUrl , $ scope )
49
45
: $ baseUrl ;
You can’t perform that action at this time.
0 commit comments