@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | return new PostCollection( |
| 26 | 26 | $collection |
| 27 | - ->map(function (PageVariable $post) { |
|
| 27 | + ->map(function(PageVariable $post) { |
|
| 28 | 28 | $factory = $this->jigsaw->app->make(JigsawPostFactory::class); |
| 29 | 29 | |
| 30 | 30 | return $factory->newPostFromPageVariable($post); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | return new AudioEpisodeCollection( |
| 39 | 39 | $collection |
| 40 | - ->map(function (PageVariable $post) { |
|
| 40 | + ->map(function(PageVariable $post) { |
|
| 41 | 41 | $factory = $this->jigsaw->app->make(JigsawPostFactory::class); |
| 42 | 42 | |
| 43 | 43 | return $factory->newAudioEpisodeFromPageVariable($post); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | /** @var $container \Illuminate\Container\Container */ |
| 11 | 11 | /** @var $events \TightenCo\Jigsaw\Events\EventBus */ |
| 12 | 12 | |
| 13 | -$events->beforeBuild(function (Jigsaw $jigsaw) use ($container) { |
|
| 13 | +$events->beforeBuild(function(Jigsaw $jigsaw) use ($container) { |
|
| 14 | 14 | $configureDependencyInjection = require __DIR__ . '/config/dependency-injection.php'; |
| 15 | 15 | $configureDependencyInjection($container, $jigsaw); |
| 16 | 16 | }); |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | ' ', |
| 40 | 40 | (new Crawler($testFileContent)) |
| 41 | 41 | ->filter('p, strong') |
| 42 | - ->each(function (Crawler $elm) { |
|
| 42 | + ->each(function(Crawler $elm) { |
|
| 43 | 43 | return $elm->attr('class'); |
| 44 | 44 | }) |
| 45 | 45 | ); |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | public function fetchByPath(string $path): ?OutputFile |
| 10 | 10 | { |
| 11 | 11 | return $this |
| 12 | - ->filter(function (OutputFile $file) use ($path) { |
|
| 12 | + ->filter(function(OutputFile $file) use ($path) { |
|
| 13 | 13 | return $file->path() === $path; |
| 14 | 14 | }) |
| 15 | 15 | ->first(); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | public function testExecuteFetchesExactAmount(): void |
| 27 | 27 | { |
| 28 | 28 | $audioEpisodeCollection = $this->createDefaultAudioEpisodeCollection() |
| 29 | - ->sortByDesc(function (AudioEpisode $episode) { |
|
| 29 | + ->sortByDesc(function(AudioEpisode $episode) { |
|
| 30 | 30 | return $episode->createdAt(); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function testExecuteFiltersCategoryName(): void |
| 46 | 46 | { |
| 47 | 47 | $audioEpisodeCollection = $this->createDefaultAudioEpisodeCollection() |
| 48 | - ->sortByDesc(function (AudioEpisode $episode) { |
|
| 48 | + ->sortByDesc(function(AudioEpisode $episode) { |
|
| 49 | 49 | return $episode->createdAt(); |
| 50 | 50 | }); |
| 51 | 51 | |