Passed
Push — master ( a14cf8...f41a59 )
by Níckolas Daniel
05:15
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.
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.
bootstrap.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
 /** @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
 });
Please login to merge, or discard this patch.
test/unit/Application/Service/FileProcessing/PostProcessFilesTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.