Commit 39dfe936 authored by Côme Chilliet's avatar Côme Chilliet Committed by Mortier Benoit
Browse files

Fixed a few styling problems

parent a0a406c0
...@@ -715,12 +715,12 @@ class plugin ...@@ -715,12 +715,12 @@ class plugin
} }
$res = ''; $res = '';
for ($i = 0; $i < $args[0]; ++$i) { for ($i = 0; $i < $args[0]; ++$i) {
switch($chars) { switch ($chars) {
case 'l': case 'l':
$res .= (string)rand(0,9); $res .= (string)rand(0, 9);
break; break;
case 'd': case 'd':
$nb = mt_rand(65,116); $nb = mt_rand(65, 116);
if ($nb > 90) { if ($nb > 90) {
/* lowercase */ /* lowercase */
$nb += 6; $nb += 6;
...@@ -729,7 +729,7 @@ class plugin ...@@ -729,7 +729,7 @@ class plugin
break; break;
case 'b': case 'b':
default: default:
$nb = mt_rand(65,126); $nb = mt_rand(65, 126);
if ($nb > 116) { if ($nb > 116) {
/* digit */ /* digit */
$nb = (string)($nb - 117); $nb = (string)($nb - 117);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment