@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function encrypter() |
| 14 | 14 | { |
| 15 | - if(! $this->magrosEncrypter){ |
|
| 15 | + if (!$this->magrosEncrypter) { |
|
| 16 | 16 | $this->magrosEncrypter = new Encrypter(); |
| 17 | 17 | } |
| 18 | 18 | return $this->magrosEncrypter; |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public function encryptable($key) |
| 34 | 34 | { |
| 35 | - if(self::$enableEncryption){ |
|
| 35 | + if (self::$enableEncryption) { |
|
| 36 | 36 | return in_array($key, $this->encryptable); |
| 37 | 37 | } |
| 38 | 38 | return false; |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | if ($this->encryptable($key)) { |
| 92 | 92 | $value = $this->decryptAttribute($value); |
| 93 | 93 | } |
| 94 | - if ($this->isCamelcase($key)){ |
|
| 94 | + if ($this->isCamelcase($key)) { |
|
| 95 | 95 | $value = $this->camelCaseAttribute($value); |
| 96 | 96 | } |
| 97 | 97 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | if ($this->encryptable($key)) { |
| 129 | 129 | $attributes[$key] = $this->decryptAttribute($attribute); |
| 130 | 130 | } |
| 131 | - if ($this->isCamelcase($key)){ |
|
| 131 | + if ($this->isCamelcase($key)) { |
|
| 132 | 132 | $attributes[$key] = $this->camelCaseAttribute($attributes[$key]); |
| 133 | 133 | } |
| 134 | 134 | } |