Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Jul 17, 2021
1 parent c8d6309 commit 63961fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BasePathDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public function getBasePath(): string
{
// The built-in server
if ($this->phpSapi === 'cli-server') {
return $this->getBasePathFromScriptName($this->server);
return $this->getBasePathByScriptName($this->server);
}

return $this->getBasePathFromRequestUri($this->server);
return $this->getBasePathByRequestUri($this->server);
}

/**
Expand All @@ -51,7 +51,7 @@ public function getBasePath(): string
*
* @return string The base path
*/
private function getBasePathFromScriptName(array $server): string
private function getBasePathByScriptName(array $server): string
{
$scriptName = $server['SCRIPT_NAME'];
$basePath = str_replace('\\', '/', dirname($scriptName));
Expand All @@ -70,7 +70,7 @@ private function getBasePathFromScriptName(array $server): string
*
* @return string The base path
*/
private function getBasePathFromRequestUri(array $server): string
private function getBasePathByRequestUri(array $server): string
{
if (!isset($server['REQUEST_URI'])) {
return '';
Expand Down

0 comments on commit 63961fb

Please sign in to comment.