summaryrefslogtreecommitdiffstats
path: root/system/helpers/string_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-26 12:47:29 +0200
committerAndrey Andreev <narf@bofh.bg>2012-03-26 12:47:29 +0200
commite684bdac2d6282e3b9a5c57e1006d5ed1664f647 (patch)
tree1b5de541fb5a314b06f7a1c625c7bd839f52030b /system/helpers/string_helper.php
parente734b38e0f4cde3ebe17cdb1844faa0129fe8b11 (diff)
Clear some spaces and fix some inconsistencies in the Zip library and system/helpers/ files
Diffstat (limited to 'system/helpers/string_helper.php')
-rw-r--r--system/helpers/string_helper.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/helpers/string_helper.php b/system/helpers/string_helper.php
index 607a12bcb..c61b26592 100644
--- a/system/helpers/string_helper.php
+++ b/system/helpers/string_helper.php
@@ -1,13 +1,13 @@
-<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.2.4 or newer
*
* NOTICE OF LICENSE
- *
+ *
* Licensed under the Open Software License version 3.0
- *
+ *
* This source file is subject to the Open Software License (OSL 3.0) that is
* bundled with this package in the files license.txt / license.rst. It is
* also available through the world wide web at this URL:
@@ -227,9 +227,9 @@ if ( ! function_exists('random_string'))
case 'nozero' : $pool = '123456789';
break;
}
-
+
$str = substr(str_shuffle(str_repeat($pool, ceil($len/strlen($pool)))),0,$len);
-
+
return $str;
break;
case 'unique' :