Skip to content

Commit d6fc4f0

Browse files
committed
php function call optimize
1 parent a037a9e commit d6fc4f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HttpsTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private function isSchemeHttps($uriScheme)
2929
private function isGoingToBeForcedToHttps($match)
3030
{
3131
if (! $this->config['force_all_routes'] &&
32-
! in_array(
32+
! \in_array(
3333
$match->getMatchedRouteName(),
3434
$this->config['force_specific_routes']
3535
)
@@ -70,12 +70,12 @@ private function withWwwPrefixWhenRequired($httpsRequestUri)
7070
! $this->config['add_www_prefix'] ||
7171
(
7272
$this->config['add_www_prefix'] === true &&
73-
substr($httpsRequestUri, 8, 4) === 'www.'
73+
\substr($httpsRequestUri, 8, 4) === 'www.'
7474
)
7575
) {
7676
return $httpsRequestUri;
7777
}
7878

79-
return substr_replace($httpsRequestUri, 'www.', 8, 0);
79+
return \substr_replace($httpsRequestUri, 'www.', 8, 0);
8080
}
8181
}

0 commit comments

Comments
 (0)