@@ -14,8 +14,8 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | namespace Dcrypt; |
| 16 | 16 | |
| 17 | -class OpenSSL |
|
| 18 | -{
|
|
| 17 | +class OpenSSL |
|
| 18 | +{ |
|
| 19 | 19 | /** |
| 20 | 20 | * OpenSSL encrypt wrapper function |
| 21 | 21 | * |
@@ -58,9 +58,9 @@ discard block |
||
| 58 | 58 | * @param string $data |
| 59 | 59 | * @throws \Exception |
| 60 | 60 | */ |
| 61 | - private static function exceptionIfFalse(string $data) |
|
| 62 | - {
|
|
| 63 | - if ($data === false) {
|
|
| 61 | + private static function exceptionIfFalse(string $data) |
|
| 62 | + { |
|
| 63 | + if ($data === false) { |
|
| 64 | 64 | throw new \Exception('OpenSSL failed to encrypt/decrypt message.');
|
| 65 | 65 | } |
| 66 | 66 | } |