@@ -3,7 +3,7 @@ |
||
| 3 | 3 | use Faker\Generator as Faker; |
| 4 | 4 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Store; |
| 5 | 5 | |
| 6 | -$factory->define(Store::class, function (Faker $faker) { |
|
| 6 | +$factory->define(Store::class, function(Faker $faker) { |
|
| 7 | 7 | return [ |
| 8 | 8 | 'address' => $faker->address, |
| 9 | 9 | 'name' => $faker->company, |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | use Faker\Generator as Faker; |
| 4 | 4 | use GeneaLabs\LaravelModelCaching\Tests\Fixtures\Profile; |
| 5 | 5 | |
| 6 | -$factory->define(Profile::class, function (Faker $faker) { |
|
| 6 | +$factory->define(Profile::class, function(Faker $faker) { |
|
| 7 | 7 | return [ |
| 8 | 8 | 'first_name' => $faker->firstName, |
| 9 | 9 | 'first_name' => $faker->lastName, |
@@ -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 | } |