@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | $authors = (new Author)->with('books', 'profile') |
| 52 | 52 | ->disableCache() |
| 53 | - ->chunk($chunkSize, function ($chunk) use (&$cachedChunks, $chunkSize) { |
|
| 53 | + ->chunk($chunkSize, function($chunk) use (&$cachedChunks, $chunkSize) { |
|
| 54 | 54 | $offset = ''; |
| 55 | 55 | |
| 56 | 56 | if ($cachedChunks['authors']->count()) { |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | }); |
| 66 | 66 | |
| 67 | 67 | $liveResults = (new UncachedAuthor)->with('books', 'profile') |
| 68 | - ->chunk($chunkSize, function ($chunk) use (&$uncachedChunks) { |
|
| 68 | + ->chunk($chunkSize, function($chunk) use (&$uncachedChunks) { |
|
| 69 | 69 | $uncachedChunks->push($chunk); |
| 70 | 70 | }); |
| 71 | 71 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | /** @var Collection $publishers */ |
| 20 | 20 | $publishers = factory(UncachedPublisher::class, 5)->create(); |
| 21 | 21 | |
| 22 | - $publishers->each(function (UncachedPublisher $publisher) { |
|
| 22 | + $publishers->each(function(UncachedPublisher $publisher) { |
|
| 23 | 23 | factory(UncachedBook::class, 2)->create(['publisher_id' => $publisher->id]); |
| 24 | 24 | }); |
| 25 | 25 | |