Passed
Push — master ( 6c8356...07c9b9 )
by Mike
03:43
created
src/Traits/Cachable.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $usesCachableTrait = collect(class_uses($this))
34 34
             ->contains("GeneaLabs\LaravelModelCaching\Traits\Cachable");
35 35
 
36
-        if (! $usesCachableTrait) {
36
+        if (!$usesCachableTrait) {
37 37
             array_push($tags, str_slug(get_called_class()));
38 38
         }
39 39
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
     public static function bootCachable()
81 81
     {
82
-        static::saved(function ($instance) {
82
+        static::saved(function($instance) {
83 83
             $instance->flushCache();
84 84
         });
85 85
     }
@@ -92,14 +92,14 @@  discard block
 block discarded – undo
92 92
         $key = $instance->makeCacheKey();
93 93
 
94 94
         return $instance->cache($tags)
95
-            ->rememberForever($key, function () use ($columns) {
95
+            ->rememberForever($key, function() use ($columns) {
96 96
                 return parent::all($columns);
97 97
             });
98 98
     }
99 99
 
100 100
     public function newEloquentBuilder($query)
101 101
     {
102
-        if (! $this->isCachable) {
102
+        if (!$this->isCachable) {
103 103
             $this->isCachable = true;
104 104
 
105 105
             return new EloquentBuilder($query);
Please login to merge, or discard this patch.
src/CachedBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
     public function pluck($column, $key = null)
97 97
     {
98
-        $keyDifferentiator = "-pluck_{$column}" . ($key ? "_{$key}" : "");
98
+        $keyDifferentiator = "-pluck_{$column}".($key ? "_{$key}" : "");
99 99
         $arguments = func_get_args();
100 100
         $cacheKey = $this->makeCacheKey([$column], null, $keyDifferentiator);
101 101
         $method = 'pluck';
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         return $this->cache($cacheTags)
178 178
             ->rememberForever(
179 179
                 $hashedCacheKey,
180
-                function () use ($arguments, $cacheKey, $method) {
180
+                function() use ($arguments, $cacheKey, $method) {
181 181
                     return [
182 182
                         'key' => $cacheKey,
183 183
                         'value' => parent::{$method}(...$arguments),
Please login to merge, or discard this patch.