Passed
Push — master ( 9782a4...be7447 )
by Mike
02:56
created
src/Console/Commands/Flush.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     {
12 12
         $option = $this->option('model');
13 13
 
14
-        if (! $option) {
14
+        if (!$option) {
15 15
             $this->error("You must specify a model to flush a model's cache:");
16 16
             $this->line("modelCache:flush --model=App\\Model");
17 17
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         $usesCachableTrait = collect(class_uses($model))
23 23
             ->contains("GeneaLabs\LaravelModelCaching\Traits\Cachable");
24 24
 
25
-        if (! $usesCachableTrait) {
25
+        if (!$usesCachableTrait) {
26 26
             $this->error("'{$option}' is not an instance of CachedModel.");
27 27
             $this->line("Only CachedModel instances can be flushed.");
28 28
 
Please login to merge, or discard this patch.
src/Traits/Cachable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $usesCachableTrait = collect(class_uses($this))
35 35
             ->contains("GeneaLabs\LaravelModelCaching\Traits\Cachable");
36 36
 
37
-        if (! $usesCachableTrait) {
37
+        if (!$usesCachableTrait) {
38 38
             array_push($tags, str_slug(get_called_class()));
39 39
         }
40 40
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     public static function bootCachable()
84 84
     {
85
-        static::saved(function ($instance) {
85
+        static::saved(function($instance) {
86 86
             $instance->flushCache();
87 87
         });
88 88
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         $key = $instance->makeCacheKey();
100 100
 
101 101
         return $instance->cache($tags)
102
-            ->rememberForever($key, function () use ($columns) {
102
+            ->rememberForever($key, function() use ($columns) {
103 103
                 return parent::all($columns);
104 104
             });
105 105
     }
Please login to merge, or discard this patch.