Completed
Pull Request — master (#1)
by
unknown
03:18
created
src/Bcrypt.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 		$salt = self::generate_salt($cost, 17, $bcrypt_version);
11 11
 		$ciphertext = crypt($plaintext, $salt);
12 12
 
13
-    return $ciphertext;
13
+	return $ciphertext;
14 14
 	}
15 15
 
16 16
 	public static function verify($plaintext, $ciphertext)
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
          */
33 33
 	 $bytes = openssl_random_pseudo_bytes($length);
34 34
    if ($bytes === false){
35
-       throw new RuntimeException('Unable to generate a random string');
35
+	   throw new RuntimeException('Unable to generate a random string');
36 36
 	 }
37 37
 	 $salt=substr(base64_encode($bytes),0,22);
38 38
 
@@ -41,12 +41,12 @@  discard block
 block discarded – undo
41 41
          * anything about the '=', as this only occurs when the b64 string is
42 42
          * padded, which is always after the first 22 characters.
43 43
          */
44
-        $salt=str_replace("+",".",$salt);
44
+		$salt=str_replace("+",".",$salt);
45 45
 
46
-        /* Create a string that will be passed to crypt, containing all
46
+		/* Create a string that will be passed to crypt, containing all
47 47
          * of the settings, separated by dollar signs
48 48
          */
49
-        $salt='$'.implode('$',[$bcrypt_version, $cost, $salt]);
49
+		$salt='$'.implode('$',[$bcrypt_version, $cost, $salt]);
50 50
 				return $salt;
51 51
 	}
52 52
 }
Please login to merge, or discard this patch.