From 70816be6c8c38667b7a6102a29bcd594a8e9853d Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 28 Oct 2024 22:16:15 +0700 Subject: [PATCH] refactor: Apply code quality level 15 for Rector --- rector.php | 2 +- system/HTTP/CLIRequest.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/rector.php b/rector.php index 6c24c66e5539..913dc7277e41 100644 --- a/rector.php +++ b/rector.php @@ -216,4 +216,4 @@ // keep '\\' prefix string on string '\Foo\Bar' StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true, ]) - ->withCodeQualityLevel(14); + ->withCodeQualityLevel(15); diff --git a/system/HTTP/CLIRequest.php b/system/HTTP/CLIRequest.php index 0b2c57377e65..fbc5165e9a9a 100644 --- a/system/HTTP/CLIRequest.php +++ b/system/HTTP/CLIRequest.php @@ -95,9 +95,7 @@ public function __construct(App $config) */ public function getPath(): string { - $path = implode('/', $this->segments); - - return ($path === '') ? '' : $path; + return implode('/', $this->segments); } /**