@@ -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 | } |
@@ -33,10 +33,10 @@ |
||
| 33 | 33 | "{$parentName}_{$parentIds}-{$childName}s", |
| 34 | 34 | function () use ($relation, $models, $name) { |
| 35 | 35 | return $relation->match( |
| 36 | - $relation->initRelation($models, $name), |
|
| 37 | - $relation->getEager(), |
|
| 38 | - $name |
|
| 39 | - ); |
|
| 36 | + $relation->initRelation($models, $name), |
|
| 37 | + $relation->getEager(), |
|
| 38 | + $name |
|
| 39 | + ); |
|
| 40 | 40 | } |
| 41 | 41 | ); |
| 42 | 42 | |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | $cachedResults = $cache->rememberForever( |
| 33 | 33 | "{$parentName}_{$parentIds}-{$childName}s", |
| 34 | - function () use ($relation, $models, $name) { |
|
| 34 | + function() use ($relation, $models, $name) { |
|
| 35 | 35 | return $relation->match( |
| 36 | 36 | $relation->initRelation($models, $name), |
| 37 | 37 | $relation->getEager(), |