File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ class UriUtils
2121{
2222 public function __construct (private PathResolver $ pathResolver ) {}
2323
24- public function replaceScopeCode (string $ url , StoreInterface $ scope ): string
24+ public function replaceScopeCode (string $ url , StoreInterface $ store ): string
2525 {
26- return $ this ->replaceLeadingPath ($ scope ->getCode (), $ this ->pathResolver ->resolve ($ scope ), $ url );
26+ return $ this ->replaceLeadingPath ($ store ->getCode (), $ this ->pathResolver ->resolve ($ store ), $ url );
2727 }
2828
29- public function replacePathCode (string $ url , StoreInterface $ scope ): string
29+ public function replacePathCode (string $ url , StoreInterface $ store ): string
3030 {
31- return $ this ->replaceLeadingPath ($ this ->pathResolver ->resolve ($ scope ), $ scope ->getCode (), $ url );
31+ return $ this ->replaceLeadingPath ($ this ->pathResolver ->resolve ($ store ), $ store ->getCode (), $ url );
3232 }
3333
3434 private function replaceLeadingPath (string $ search , string $ replace , string $ uri ): string
You can’t perform that action at this time.
0 commit comments