From 1e1419229ea85b9928f2b0f7d2bad1f5cefc3946 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Fri, 5 Mar 2010 10:24:50 -0600 Subject: whitespace, code comments --- system/helpers/string_helper.php | 14 ++++++++------ 1 file 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')) } } } + // ------------------------------------------------------------------------ /** -- cgit v1.2.3-24-g4f1b