@@ -81,7 +81,7 @@ public function toUrl($url)
8181 }
8282
8383 if (! $ parser ->isSuffixValid ($ domain )) {
84- throw new InvalidArgumentException (sprintf (
84+ throw new InvalidArgumentException (\ sprintf (
8585 '%s is not a valid domain ' ,
8686 $ domain
8787 ));
@@ -95,8 +95,8 @@ public function toUrl($url)
9595
9696 $ uriTargetHost = (new Uri ($ url ))->getHost ();
9797 if (true === $ allow_not_routed_url ||
98- in_array ($ url , $ exclude_urls ) ||
99- in_array ($ uriTargetHost , $ exclude_hosts ) ||
98+ \ in_array ($ url , $ exclude_urls ) ||
99+ \ in_array ($ uriTargetHost , $ exclude_hosts ) ||
100100 $ redirectOfDomain
101101 ) {
102102 return parent ::toUrl ($ url );
@@ -112,10 +112,10 @@ public function toUrl($url)
112112 : '/ ' ;
113113
114114 if ($ basePath !== '' ) {
115- if (substr ($ url , 0 , strlen ($ basePath )) !== $ basePath ) {
115+ if (\ substr ($ url , 0 , \ strlen ($ basePath )) !== $ basePath ) {
116116 $ url = $ basePath . $ url ;
117117 }
118- if (substr ($ default_url , 0 , strlen ($ basePath )) !== $ basePath ) {
118+ if (\ substr ($ default_url , 0 , \ strlen ($ basePath )) !== $ basePath ) {
119119 $ default_url = $ basePath . $ default_url ;
120120 }
121121 }
0 commit comments