@@ -22,19 +22,19 @@ |
||
22 | 22 | $class = get_called_class(); |
23 | 23 | $instance = new $class; |
24 | 24 | |
25 | - static::created(function () use ($instance) { |
|
25 | + static::created(function() use ($instance) { |
|
26 | 26 | $instance->flushCache(); |
27 | 27 | }); |
28 | 28 | |
29 | - static::deleted(function () use ($instance) { |
|
29 | + static::deleted(function() use ($instance) { |
|
30 | 30 | $instance->flushCache(); |
31 | 31 | }); |
32 | 32 | |
33 | - static::saved(function () use ($instance) { |
|
33 | + static::saved(function() use ($instance) { |
|
34 | 34 | $instance->flushCache(); |
35 | 35 | }); |
36 | 36 | |
37 | - static::updated(function () use ($instance) { |
|
37 | + static::updated(function() use ($instance) { |
|
38 | 38 | $instance->flushCache(); |
39 | 39 | }); |
40 | 40 | } |