From e334c472fb4be44feec3a73402fc4a2b062cbfc0 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Oct 2006 19:44:22 +0000 Subject: --- system/helpers/string_helper.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'system/helpers/string_helper.php') diff --git a/system/helpers/string_helper.php b/system/helpers/string_helper.php index d5a3591f9..ba704df9e 100644 --- a/system/helpers/string_helper.php +++ b/system/helpers/string_helper.php @@ -7,12 +7,12 @@ * @package CodeIgniter * @author Rick Ellis * @copyright Copyright (c) 2006, pMachine, Inc. - * @license http://www.codeignitor.com/user_guide/license.html + * @license http://www.codeignitor.com/user_guide/license.html * @link http://www.codeigniter.com * @since Version 1.0 * @filesource */ - + // ------------------------------------------------------------------------ /** @@ -67,7 +67,7 @@ function trim_slashes($str) */ function reduce_double_slashes($str) { - return preg_replace("#([^:])//+#", "\\1/", $str); + return preg_replace("#([^:])//+#", "\\1/", $str); } // ------------------------------------------------------------------------ @@ -101,15 +101,15 @@ function random_string($type = 'alnum', $len = 8) } $str = ''; - for ($i=0; $i < $len; $i++) - { - $str .= substr($pool, mt_rand(0, strlen($pool) -1), 1); + for ($i=0; $i < $len; $i++) + { + $str .= substr($pool, mt_rand(0, strlen($pool) -1), 1); } - return $str; + return $str; break; - case 'unique' : return md5(uniqid(mt_rand())); - break; - } + case 'unique' : return md5(uniqid(mt_rand())); + break; + } } // ------------------------------------------------------------------------ -- cgit v1.2.3-24-g4f1b