From 3cf41f727837fbf9e28f9f8880f7759147269940 Mon Sep 17 00:00:00 2001 From: Spomky Date: Thu, 3 Mar 2016 06:54:53 -0500 Subject: [PATCH] Applied fixes from StyleCI --- src/EncryptorInterface.php | 2 +- src/OpenSSLEncryptor.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/EncryptorInterface.php b/src/EncryptorInterface.php index a09e8cf..5480044 100644 --- a/src/EncryptorInterface.php +++ b/src/EncryptorInterface.php @@ -25,5 +25,5 @@ public function encrypt($data); * * @return string */ - public function decrypt( $data); + public function decrypt($data); } diff --git a/src/OpenSSLEncryptor.php b/src/OpenSSLEncryptor.php index a265294..b5c0c4b 100644 --- a/src/OpenSSLEncryptor.php +++ b/src/OpenSSLEncryptor.php @@ -19,7 +19,7 @@ final class OpenSSLEncryptor implements EncryptorInterface public function __construct($kek) { $this->kek = $kek; - $this->method = 'aes-'.(strlen($kek)*8).'-ecb'; + $this->method = 'aes-'.(strlen($kek) * 8).'-ecb'; } /** @@ -27,7 +27,7 @@ public function __construct($kek) */ public function encrypt($data) { - return openssl_encrypt($data, $this->method, $this->kek, OPENSSL_ZERO_PADDING|OPENSSL_RAW_DATA); + return openssl_encrypt($data, $this->method, $this->kek, OPENSSL_ZERO_PADDING | OPENSSL_RAW_DATA); } /** @@ -35,6 +35,6 @@ public function encrypt($data) */ public function decrypt($data) { - return openssl_decrypt($data, $this->method, $this->kek, OPENSSL_ZERO_PADDING|OPENSSL_RAW_DATA); + return openssl_decrypt($data, $this->method, $this->kek, OPENSSL_ZERO_PADDING | OPENSSL_RAW_DATA); } }