Passed
Push — master ( a3f109...7fb3ff )
by
unknown
02:57
created
src/DataEngines/EloquentEngine.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function get(string $key, $member = null)
67 67
     {
68 68
         if(! empty($member) || is_numeric($member)) {
69
-             return $this->model->where(['primary_key' => $this->prefix.$key, 'secondary_key' => $member])
69
+                return $this->model->where(['primary_key' => $this->prefix.$key, 'secondary_key' => $member])
70 70
             ->where(function($q) {
71 71
                 return $q->where('expired_at', '>', \Carbon\Carbon::now())->orWhereNull('expired_at');
72 72
             })
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 
193 193
     public function setExpiration(string $key, int $time): bool
194 194
     {
195
-         return $this->model->where(['primary_key' => $this->prefix.$key])
195
+            return $this->model->where(['primary_key' => $this->prefix.$key])
196 196
                                 ->where(function($q) {
197 197
                                     return $q->where('expired_at', '>', \Carbon\Carbon::now())->orWhereNull('expired_at');
198 198
                                 })
Please login to merge, or discard this patch.