@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * Validate unique binary encrypted |
| 32 | 32 | */ |
| 33 | - Validator::extend('unique_encrypted', function ($attribute, $value, array $parameters) { |
|
| 33 | + Validator::extend('unique_encrypted', function($attribute, $value, array $parameters) { |
|
| 34 | 34 | if (!isset($parameters[0])) { |
| 35 | 35 | throw new Exception('unique_encrypted requires at least one parameter'); |
| 36 | 36 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * Validate exists binary encrypted |
| 47 | 47 | */ |
| 48 | - Validator::extend('exists_encrypted', function ($attribute, $value, array $parameters) { |
|
| 48 | + Validator::extend('exists_encrypted', function($attribute, $value, array $parameters) { |
|
| 49 | 49 | if (!isset($parameters[0])) { |
| 50 | 50 | throw new Exception('exists_encrypted requires at least one parameter'); |
| 51 | 51 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | * |
| 70 | 70 | * @return false|string |
| 71 | 71 | */ |
| 72 | - public function aesDecrypt($val, string $cypher = 'aes-128-ecb', bool $mySqlKey = true): bool|string |
|
| 72 | + public function aesDecrypt($val, string $cypher = 'aes-128-ecb', bool $mySqlKey = true): bool | string |
|
| 73 | 73 | { |
| 74 | 74 | $secret = getenv('ENCRYPTION_KEY'); |
| 75 | 75 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * |
| 123 | 123 | * @return false|string |
| 124 | 124 | */ |
| 125 | - public function aesEncrypt($val, string $cypher = 'aes-128-ecb', bool $mySqlKey = true): bool|string |
|
| 125 | + public function aesEncrypt($val, string $cypher = 'aes-128-ecb', bool $mySqlKey = true): bool | string |
|
| 126 | 126 | { |
| 127 | 127 | $secret = getenv('ENCRYPTION_KEY'); |
| 128 | 128 | |