Skip to content

Commit

Permalink
Merge pull request codeigniter4#9243 from samsonasik/refactor-apply-c…
Browse files Browse the repository at this point in the history
…ode-quality-level-15

refactor: enable rector code quality level 15
  • Loading branch information
samsonasik authored Oct 28, 2024
2 parents 11d9721 + 70816be commit 8522a37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,4 @@
// keep '\\' prefix string on string '\Foo\Bar'
StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true,
])
->withCodeQualityLevel(14);
->withCodeQualityLevel(15);
4 changes: 1 addition & 3 deletions system/HTTP/CLIRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ public function __construct(App $config)
*/
public function getPath(): string
{
$path = implode('/', $this->segments);

return ($path === '') ? '' : $path;
return implode('/', $this->segments);
}

/**
Expand Down

0 comments on commit 8522a37

Please sign in to comment.