Passed
Push — master ( 7a7bed...269118 )
by Mike
02:35
created
src/Traits/ModelCaching.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,29 +17,29 @@  discard block
 block discarded – undo
17 17
         $key = $instance->makeCacheKey();
18 18
 
19 19
         return $instance->cache($tags)
20
-            ->rememberForever($key, function () use ($columns) {
20
+            ->rememberForever($key, function() use ($columns) {
21 21
                 return parent::all($columns);
22 22
             });
23 23
     }
24 24
 
25 25
     public static function bootCachable()
26 26
     {
27
-        static::deleted(function ($instance) {
27
+        static::deleted(function($instance) {
28 28
             $instance->checkCooldownAndFlushAfterPersiting($instance);
29 29
         });
30
-        static::saved(function ($instance) {
30
+        static::saved(function($instance) {
31 31
             $instance->checkCooldownAndFlushAfterPersiting($instance);
32 32
         });
33 33
 
34
-        static::pivotAttached(function ($instance) {
34
+        static::pivotAttached(function($instance) {
35 35
             $instance->checkCooldownAndFlushAfterPersiting($instance);
36 36
         });
37 37
 
38
-        static::pivotDetached(function ($instance) {
38
+        static::pivotDetached(function($instance) {
39 39
             $instance->checkCooldownAndFlushAfterPersiting($instance);
40 40
         });
41 41
 
42
-        static::pivotUpdated(function ($instance) {
42
+        static::pivotUpdated(function($instance) {
43 43
             $instance->checkCooldownAndFlushAfterPersiting($instance);
44 44
         });
45 45
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function newEloquentBuilder($query)
57 57
     {
58
-        if (! $this->isCachable()) {
58
+        if (!$this->isCachable()) {
59 59
             $this->isCachable = true;
60 60
 
61 61
             return new EloquentBuilder($query);
@@ -82,13 +82,13 @@  discard block
 block discarded – undo
82 82
         $cacheKey = "{$cachePrefix}:{$modelClassName}-cooldown:seconds";
83 83
 
84 84
         $this->cache()
85
-            ->rememberForever($cacheKey, function () use ($seconds) {
85
+            ->rememberForever($cacheKey, function() use ($seconds) {
86 86
                 return $seconds;
87 87
             });
88 88
 
89 89
         $cacheKey = "{$cachePrefix}:{$modelClassName}-cooldown:invalidated-at";
90 90
         $this->cache()
91
-            ->rememberForever($cacheKey, function () {
91
+            ->rememberForever($cacheKey, function() {
92 92
                 return now();
93 93
             });
94 94
 
Please login to merge, or discard this patch.