Completed
Push — master ( bce521...e6422f )
by Alexander
02:22
created
src/RandomStr.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
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,14 +180,14 @@  discard block
 block discarded – undo
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 186
             while ($len > 16) {
187 187
                 $output .= md5($start++, true);
188
-                $len-=16;
188
+                $len -= 16;
189 189
             }
190
-            $output .= substr( md5($start, true), 0, $len);
190
+            $output .= substr(md5($start, true), 0, $len);
191 191
             return $output;
192 192
         }
193 193
     }
Please login to merge, or discard this patch.