@@ -42,7 +42,6 @@ public static function resetOpCache()
4242 * For e.g. "phar:///home/user/bundle.phar/content.txt" that would result
4343 * into "/home/user/bundle.phar".
4444 *
45- * @param string $path
4645 * @return string|null
4746 */
4847 public static function determineBaseFile (string $ path )
@@ -60,19 +59,11 @@ public static function determineBaseFile(string $path)
6059 return null ;
6160 }
6261
63- /**
64- * @param string $path
65- * @return bool
66- */
6762 public static function hasPharPrefix (string $ path ): bool
6863 {
6964 return stripos ($ path , 'phar:// ' ) === 0 ;
7065 }
7166
72- /**
73- * @param string $path
74- * @return string
75- */
7667 public static function removePharPrefix (string $ path ): string
7768 {
7869 $ path = trim ($ path );
@@ -84,10 +75,7 @@ public static function removePharPrefix(string $path): string
8475
8576 /**
8677 * Normalizes a path, removes phar:// prefix, fixes Windows directory
87- * separators. Result is without trailing slash.
88- *
89- * @param string $path
90- * @return string
78+ * separators. The result is without a trailing slash.
9179 */
9280 public static function normalizePath (string $ path ): string
9381 {
@@ -101,9 +89,6 @@ public static function normalizePath(string $path): string
10189
10290 /**
10391 * Fixes a path for windows-backslashes and reduces double-slashes to single slashes
104- *
105- * @param string $path File path to process
106- * @return string
10792 */
10893 public static function normalizeWindowsPath (string $ path ): string
10994 {
@@ -113,10 +98,9 @@ public static function normalizeWindowsPath(string $path): string
11398 /**
11499 * Resolves all dots, slashes and removes spaces after or before a path...
115100 *
116- * @param string $path Input string
117101 * @return string Canonical path, always without trailing slash
118102 */
119- private static function getCanonicalPath ($ path ): string
103+ private static function getCanonicalPath (string $ path ): string
120104 {
121105 $ path = static ::normalizeWindowsPath ($ path );
122106
@@ -173,11 +157,8 @@ private static function getCanonicalPath($path): string
173157 /**
174158 * Checks if the $path is absolute or relative (detecting either '/' or
175159 * 'x:/' as first part of string) and returns TRUE if so.
176- *
177- * @param string $path File path to evaluate
178- * @return bool
179160 */
180- private static function isAbsolutePath ($ path ): bool
161+ private static function isAbsolutePath (string $ path ): bool
181162 {
182163 // Path starting with a / is always absolute, on every system
183164 // On Windows also a path starting with a drive letter is absolute: X:/
0 commit comments