Skip to content

Commit

Permalink
refactor: Apply code quality level 15 for Rector
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Oct 28, 2024
1 parent 11d9721 commit 70816be
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 70816be

Please sign in to comment.