Passed
Push — master ( 328eca...a3f109 )
by
unknown
04:31
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
             })
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     {
196 196
         // $time = \Carbon\Carbon::now()->addSeconds($time);
197 197
 
198
-         return $this->model->where(['primary_key' => $this->prefix.$key])
198
+            return $this->model->where(['primary_key' => $this->prefix.$key])
199 199
                                 ->where(function($q) {
200 200
                                     return $q->where('expired_at', '>', \Carbon\Carbon::now())->orWhereNull('expired_at');
201 201
                                 })
Please login to merge, or discard this patch.