From 63961fbfcaf492bd0ae8e40653f6c3c750c2f8ad Mon Sep 17 00:00:00 2001 From: Daniel Opitz Date: Sat, 17 Jul 2021 12:03:02 +0200 Subject: [PATCH] Fix cs --- src/BasePathDetector.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/BasePathDetector.php b/src/BasePathDetector.php index a04dea0..fef9584 100644 --- a/src/BasePathDetector.php +++ b/src/BasePathDetector.php @@ -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); } /** @@ -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)); @@ -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 '';