We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f7a96d commit dc6efd0Copy full SHA for dc6efd0
src/Traits/FileSystemFuncTrait.php
@@ -175,12 +175,12 @@ public static function realpath(string $path): string
175
$start = '';
176
$isUnix = DIRECTORY_SEPARATOR === '/';
177
if ($isUnix) {
178
- // ~: is user home dir in *nix OS
179
- if ($parts[0] === '~') {
180
- $parts[0] = OS::getUserHomeDir();
181
- } else {
182
- $start = '/';
183
- }
+ $start = '/';
+ }
+
+ // ~: is user home dir in *nix OS
+ if ($parts[0] === '~') {
+ $parts[0] = OS::getUserHomeDir();
184
}
185
186
$absolutes = [];
0 commit comments