Skip to content

Commit 70816be

Browse files
committed
refactor: Apply code quality level 15 for Rector
1 parent 11d9721 commit 70816be

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,4 +216,4 @@
216216
// keep '\\' prefix string on string '\Foo\Bar'
217217
StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true,
218218
])
219-
->withCodeQualityLevel(14);
219+
->withCodeQualityLevel(15);

system/HTTP/CLIRequest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ public function __construct(App $config)
9595
*/
9696
public function getPath(): string
9797
{
98-
$path = implode('/', $this->segments);
99-
100-
return ($path === '') ? '' : $path;
98+
return implode('/', $this->segments);
10199
}
102100

103101
/**

0 commit comments

Comments
 (0)