Skip to content

Commit 85f8164

Browse files
committed
Single quotes are preferred over double quotes
1 parent 0f622e6 commit 85f8164

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Cryptor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ public function __construct($cipher_algo = 'aes-256-ctr', $hash_algo = 'sha256',
5757

5858
if (!in_array($cipher_algo, openssl_get_cipher_methods(true), false))
5959
{
60-
throw new UnknownAlgoException("Unknown cipher algo {$cipher_algo}");
60+
throw new UnknownAlgoException('Unknown cipher algo ' . $cipher_algo);
6161
}
6262

6363
if (!in_array($hash_algo, openssl_get_md_methods(true), false))
6464
{
65-
throw new UnknownAlgoException("Unknown hash algo {$hash_algo}");
65+
throw new UnknownAlgoException('Unknown hash algo ' . $hash_algo);
6666
}
6767

6868
$this->iv_num_bytes = openssl_cipher_iv_length($cipher_algo);
@@ -158,7 +158,7 @@ public function decryptString($in, $key, $fmt = null)
158158
// and do an integrity check on the size.
159159
if (strlen($raw) < $this->iv_num_bytes)
160160
{
161-
throw new UnexpectedResultException('Data length ' . strlen($raw) . " is less than iv length {$this->iv_num_bytes}");
161+
throw new UnexpectedResultException('Data length ' . strlen($raw) . ' is less than iv length ' . $this->iv_num_bytes);
162162
}
163163

164164
// Extract the initialisation vector and encrypted data

0 commit comments

Comments
 (0)