Passed
Push — master ( e56705...817784 )
by Marco
04:23
created
src/Encryptable.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function decryptAttribute($value)
59 59
     {
60
-       return $value ? $this->encrypter()->decrypt($value) : '';
60
+        return $value ? $this->encrypter()->decrypt($value) : '';
61 61
     }
62 62
 
63 63
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function encrypter()
14 14
     {
15
-        if(! $this->encrypter){
15
+        if (!$this->encrypter) {
16 16
             $this->encrypter = new Encrypter();
17 17
         }
18 18
         return $this->encrypter;
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.