@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | 'googleTagManagerId' => 'GTM-TEST-ID', |
| 11 | 11 | 'collections' => [ |
| 12 | 12 | 'episodes' => [ |
| 13 | - 'path' => function (\TightenCo\Jigsaw\PageVariable $page) { |
|
| 13 | + 'path' => function(\TightenCo\Jigsaw\PageVariable $page) { |
|
| 14 | 14 | $builder = new \PODEntender\Domain\Model\Post\EpisodeSlugBuilder(); |
| 15 | 15 | return $builder->build( |
| 16 | 16 | $page->episode['number'], |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | 'sort' => ['-date'], |
| 22 | 22 | ], |
| 23 | 23 | 'authors' => [ |
| 24 | - 'path' => function (\TightenCo\Jigsaw\PageVariable $page) { |
|
| 24 | + 'path' => function(\TightenCo\Jigsaw\PageVariable $page) { |
|
| 25 | 25 | $builder = new \PODEntender\Domain\Model\Author\AuthorSlugBuilder(); |
| 26 | 26 | |
| 27 | 27 | return $builder->build($page->author['uid']); |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | $jigsaw->setConfig('latestEpisodesPerCategory', $latestEpisodesPerCategory); |
| 30 | 30 | |
| 31 | 31 | $authors = $jigsaw->getCollection('authors') |
| 32 | - ->map(function ($author) { |
|
| 32 | + ->map(function($author) { |
|
| 33 | 33 | return $author->author; |
| 34 | 34 | }) |
| 35 | 35 | ->toArray(); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $jigsaw->setConfig('allAuthors', $authors); |
| 38 | 38 | |
| 39 | 39 | $jigsaw->getCollection('episodes') |
| 40 | - ->each(function (PageVariable $page) use ($factory, $recommendationsService) { |
|
| 40 | + ->each(function(PageVariable $page) use ($factory, $recommendationsService) { |
|
| 41 | 41 | // AudioEpisode |
| 42 | 42 | $page->audioEpisode = $factory->newAudioEpisodeFromPageVariable($page); |
| 43 | 43 | |
@@ -51,12 +51,12 @@ discard block |
||
| 51 | 51 | }); |
| 52 | 52 | |
| 53 | 53 | $jigsaw->getCollection('authors') |
| 54 | - ->each(function (PageVariable $authorPage) use ($jigsaw) { |
|
| 54 | + ->each(function(PageVariable $authorPage) use ($jigsaw) { |
|
| 55 | 55 | $authorPage->episodes = $jigsaw->getCollection('episodes') |
| 56 | - ->filter(function (PageVariable $episode) use ($authorPage) { |
|
| 56 | + ->filter(function(PageVariable $episode) use ($authorPage) { |
|
| 57 | 57 | return in_array($authorPage->author['uid'], $episode->tags ?? []); |
| 58 | 58 | }) |
| 59 | - ->sortByDesc(function (PageVariable $episode) { |
|
| 59 | + ->sortByDesc(function(PageVariable $episode) { |
|
| 60 | 60 | return $episode->date; |
| 61 | 61 | }); |
| 62 | 62 | }); |