Skip to content

Commit f5fe10b

Browse files
committed
fixed coding standards
1 parent a0f56c0 commit f5fe10b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

library/Md5Crypt/Md5Crypt.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected static function to64($v, $n)
5555
$ret = '';
5656

5757
while (--$n >= 0) {
58-
$ret .= $itoa64[$v & 0x3f];
58+
$ret .= $itoa64[$v & 0x3F];
5959
$v = $v >> 6;
6060
}
6161

@@ -135,20 +135,20 @@ public static function unix($pw, $salt = null, $Magic = '$1$')
135135
$passwd = '';
136136
$passwd .= self::to64((intval(ord($final[0])) << 16)
137137
| (intval(ord($final[6])) << 8)
138-
| (intval(ord($final[12]))), 4);
138+
| intval(ord($final[12])), 4);
139139
$passwd .= self::to64((intval(ord($final[1])) << 16)
140140
| (intval(ord($final[7])) << 8)
141-
| (intval(ord($final[13]))), 4);
141+
| intval(ord($final[13])), 4);
142142
$passwd .= self::to64((intval(ord($final[2])) << 16)
143143
| (intval(ord($final[8])) << 8)
144-
| (intval(ord($final[14]))), 4);
144+
| intval(ord($final[14])), 4);
145145
$passwd .= self::to64((intval(ord($final[3])) << 16)
146146
| (intval(ord($final[9])) << 8)
147-
| (intval(ord($final[15]))), 4);
148-
$passwd .= self::to64((intval(ord($final[4]) << 16)
147+
| intval(ord($final[15])), 4);
148+
$passwd .= self::to64(intval(ord($final[4]) << 16)
149149
| (intval(ord($final[10])) << 8)
150-
| (intval(ord($final[5])))), 4);
151-
$passwd .= self::to64((intval(ord($final[11]))), 2);
150+
| intval(ord($final[5])), 4);
151+
$passwd .= self::to64(intval(ord($final[11])), 2);
152152

153153
// Return the final string
154154
return $Magic . $salt . '$' . $passwd;

0 commit comments

Comments
 (0)