private static function Redirects::cleanLineEnds in Hook Update Deploy Tools 8
Same name and namespace in other branches
- 7 src/Redirects.php \HookUpdateDeployTools\Redirects::cleanLineEnds()
Trim the ends of the string.
Parameters
string $string: The string to be trimmed.
Return value
string The trimmed string.
1 call to Redirects::cleanLineEnds()
- Redirects::parseList in src/
Redirects.php - Create redirects from a list of redirects.
File
- src/
Redirects.php, line 317
Class
- Redirects
- Public methods for importing redirects.
Namespace
HookUpdateDeployToolsCode
private static function cleanLineEnds($string) {
$string = trim($string);
$string = rtrim($string, "\n");
return $string;
}