@@ -116,11 +116,11 @@ discard block |
||
| 116 | 116 | if ($len == \strlen($chars)) { |
| 117 | 117 | continue; |
| 118 | 118 | } |
| 119 | - $arr=[]; |
|
| 119 | + $arr = []; |
|
| 120 | 120 | for ($i = 0; $i < $len; $i++) { |
| 121 | 121 | $arr[] = \mb_substr($chars, $i, 1, "UTF-8"); |
| 122 | 122 | } |
| 123 | - $this->char_sets[$k]=$arr; |
|
| 123 | + $this->char_sets[$k] = $arr; |
|
| 124 | 124 | } |
| 125 | 125 | } |
| 126 | 126 | |
@@ -180,10 +180,10 @@ discard block |
||
| 180 | 180 | */ |
| 181 | 181 | public function md5RandomBytes($len) |
| 182 | 182 | { |
| 183 | - if ($len>0) { |
|
| 183 | + if ($len > 0) { |
|
| 184 | 184 | $start = mt_rand(9, PHP_INT_MAX); |
| 185 | 185 | $output = ''; |
| 186 | - for ($i=$start; strlen($output) < $len; $i++) { |
|
| 186 | + for ($i = $start; strlen($output) < $len; $i++) { |
|
| 187 | 187 | $output .= md5($i, true); |
| 188 | 188 | } |
| 189 | 189 | return substr($output, 0, $len); |