Completed
Push — master ( 6650f7...849580 )
by Níckolas Daniel
05:04
created
config/dependency-injection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 use PODEntender\Infrastructure\Domain\Model\FileProcessing\JigsawBuiltOutputFilesRepository;
11 11
 use TightenCo\Jigsaw\Jigsaw;
12 12
 
13
-return function (Container $dic, Jigsaw $jigsaw) {
13
+return function(Container $dic, Jigsaw $jigsaw) {
14 14
     /** @var array $config */
15 15
     $config = $dic->get('config');
16 16
 
Please login to merge, or discard this patch.
config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     ],
55 55
     'collections' => [
56 56
         'episodes' => [
57
-            'path' => function (\TightenCo\Jigsaw\PageVariable $page) {
57
+            'path' => function(\TightenCo\Jigsaw\PageVariable $page) {
58 58
                 $builder = new \PODEntender\Domain\Model\Post\EpisodeSlugBuilder();
59 59
                 return $builder->build(
60 60
                     $page->episode['number'],
Please login to merge, or discard this patch.
src/Application/Service/FileProcessing/GenerateRssFeed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             ->category($configuration->category());
45 45
 
46 46
         $episodes = $this->postsRepository->withAudio()
47
-            ->sortByDesc(function (AudioEpisode $episode) {
47
+            ->sortByDesc(function(AudioEpisode $episode) {
48 48
                 return $episode->createdAt();
49 49
             });
50 50
 
Please login to merge, or discard this patch.
src/Application/Service/Post/FetchExistentCategoryNames.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         return $this->postRepository
20 20
             ->withAudio()
21
-            ->map(function (AudioEpisode $episode) {
21
+            ->map(function(AudioEpisode $episode) {
22 22
                 return $episode->category();
23 23
             })
24 24
             ->unique()
Please login to merge, or discard this patch.
src/Application/Service/Post/FetchLatestEpisodes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
     {
20 20
         return $this->postRepository
21 21
             ->withAudio()
22
-            ->filter(function (AudioEpisode $episode) use ($category) {
22
+            ->filter(function(AudioEpisode $episode) use ($category) {
23 23
                 return is_null($category) || $episode->category() === $category;
24 24
             })
25
-            ->sortByDesc(function (AudioEpisode $episode) {
25
+            ->sortByDesc(function(AudioEpisode $episode) {
26 26
                 return $episode->createdAt();
27 27
             })
28 28
             ->take($amount);
Please login to merge, or discard this patch.
src/Domain/Model/Post/PostImageCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 class PostImageCollection extends ArrayObject
9 9
 {
10 10
     public function __construct(array $images = []) {
11
-        $nonPostImageItems = array_filter($images, function ($postImage) {
11
+        $nonPostImageItems = array_filter($images, function($postImage) {
12 12
             return !$postImage instanceof PostImage;
13 13
         });
14 14
 
Please login to merge, or discard this patch.
Application/StaticSite/JigsawDecoratePagesAfterCollections.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $jigsaw->setConfig('latestEpisodesPerCategory', $latestEpisodesPerCategory);
30 30
 
31 31
         $jigsaw->getCollection('episodes')
32
-            ->each(function (PageVariable $page) use ($factory, $recommendationsService) {
32
+            ->each(function(PageVariable $page) use ($factory, $recommendationsService) {
33 33
                 // AudioEpisode
34 34
                 $page->audioEpisode = $factory->newAudioEpisodeFromPageVariable($page);
35 35
 
Please login to merge, or discard this patch.
Application/StaticSite/GenerateCategoriesAfterCollections.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
         $episodes
19 19
             ->groupBy('category')
20
-            ->each(function (PageVariable $episodes, string $category) use ($jigsaw) {
20
+            ->each(function(PageVariable $episodes, string $category) use ($jigsaw) {
21 21
                 $jigsaw
22 22
                     ->getSiteData()
23 23
                     ->put($category, $episodes);
Please login to merge, or discard this patch.
Domain/Model/FileProcessing/JigsawBuiltOutputFilesRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
     {
21 21
         return new OutputFileCollection(
22 22
             collect($this->jigsaw->getOutputPaths())
23
-                ->map(function (string $path) {
23
+                ->map(function(string $path) {
24 24
                     return $this->jigsaw->getDestinationPath() . $path . '/index.html';
25 25
                 })
26
-                ->filter(function (string $path) {
26
+                ->filter(function(string $path) {
27 27
                     return file_exists($path);
28 28
                 })
29
-                ->map(function (string $path) {
29
+                ->map(function(string $path) {
30 30
                     return new OutputFile($path, file_get_contents($path));
31 31
                 })
32 32
                 ->toArray()
Please login to merge, or discard this patch.