diff options
author | Derek Jones <derek.jones@ellislab.com> | 2010-03-05 17:24:50 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2010-03-05 17:24:50 +0100 |
commit | 1e1419229ea85b9928f2b0f7d2bad1f5cefc3946 (patch) | |
tree | cc7272da54cb9043db55df108fa63778f0bb25e2 /system/helpers/string_helper.php | |
parent | 48822fa77cd02a7974a56cf92d989aefbd98e9af (diff) |
whitespace, code comments
Diffstat (limited to 'system/helpers/string_helper.php')
-rw-r--r-- | system/helpers/string_helper.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/system/helpers/string_helper.php b/system/helpers/string_helper.php index 4767f0b5f..60f6ed171 100644 --- a/system/helpers/string_helper.php +++ b/system/helpers/string_helper.php @@ -30,7 +30,7 @@ /** * Trim Slashes * - * Removes any leading/traling slashes from a string: + * Removes any leading/trailing slashes from a string: * * /this/that/theother/ * @@ -46,10 +46,10 @@ if ( ! function_exists('trim_slashes')) { function trim_slashes($str) { - return trim($str, '/'); - } + return trim($str, '/'); + } } - + // ------------------------------------------------------------------------ /** @@ -120,6 +120,7 @@ if ( ! function_exists('quotes_to_entities')) } // ------------------------------------------------------------------------ + /** * Reduce Double Slashes * @@ -143,7 +144,7 @@ if ( ! function_exists('reduce_double_slashes')) return preg_replace("#(^|[^:])//+#", "\\1/", $str); } } - + // ------------------------------------------------------------------------ /** @@ -173,7 +174,7 @@ if ( ! function_exists('reduce_multiples')) { $str = trim($str, $character); } - + return $str; } } @@ -238,6 +239,7 @@ if ( ! function_exists('random_string')) } } } + // ------------------------------------------------------------------------ /** |