function Linter::escapeWindowsPath
Escapes a Windows file path
Parameters
string $path:
Return value
string The escaped path
1 call to Linter::escapeWindowsPath()
- Linter::lint in vendor/
seld/ phar-utils/ src/ Linter.php - Lints all php files inside a given phar with the current PHP version
File
-
vendor/
seld/ phar-utils/ src/ Linter.php, line 106
Class
Namespace
Seld\PharUtilsCode
private static function escapeWindowsPath($path) {
// Quote if path contains spaces or brackets
if (strpbrk($path, " ()") !== false) {
$path = '"' . $path . '"';
}
return $path;
}