We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f55dae commit 15692fcCopy full SHA for 15692fc
src/Utility/PathUtility.php
@@ -93,12 +93,9 @@ public static function resolveFilePath(string $filePath): string
93
return $filePath;
94
}
95
96
- if (!self::isAbsolutePath($filePath)) {
97
- $filePath = self::getAbsolutePath($filePath);
98
- }
99
-
100
- if (file_exists($filePath)) {
101
- return $filePath;
+ $absolutePath = self::isAbsolutePath($filePath) ? $filePath : self::getAbsolutePath($filePath);
+ if (file_exists($absolutePath)) {
+ return $absolutePath;
102
103
104
$altPath1 = $_SERVER['DOCUMENT_ROOT'] . $filePath;
0 commit comments