Passed
Push — master ( bc3293...4020a2 )
by Mike
07:13
created
tests/database/factories/ProfileFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/CachedModel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,19 +22,19 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Builder.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.