Passed
Push — analysis-zdbO1j ( ec2a64 )
by Greg
21:16 queued 13:20
created
app/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
     public static function getModuleByName(string $module_name): ?ModuleInterface
380 380
     {
381 381
         return self::all()
382
-            ->filter(function (ModuleInterface $module) use ($module_name): bool {
382
+            ->filter(function (ModuleInterface $module) use ($module_name) : bool {
383 383
                 return $module->isEnabled() && $module->getName() === $module_name;
384 384
             })
385 385
             ->first();
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
     public static function getModuleByClassName(string $class_name): ?ModuleInterface
396 396
     {
397 397
         return self::all()
398
-            ->filter(function (ModuleInterface $module) use ($class_name): bool {
398
+            ->filter(function (ModuleInterface $module) use ($class_name) : bool {
399 399
                 return $module->isEnabled() && $module instanceof $class_name;
400 400
             })
401 401
             ->first();
Please login to merge, or discard this patch.
app/Http/Controllers/HomePageController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -668,7 +668,7 @@
 block discarded – undo
668 668
     private function filterActiveBlocks(Collection $blocks, Collection $active_blocks): Collection
669 669
     {
670 670
         return $blocks->map(function (string $block_name) use ($active_blocks): ?ModuleBlockInterface {
671
-            return $active_blocks->filter(function (ModuleInterface $block) use ($block_name): bool {
671
+            return $active_blocks->filter(function (ModuleInterface $block) use ($block_name) : bool {
672 672
                 return $block->getName() === $block_name;
673 673
             })->first();
674 674
         })
Please login to merge, or discard this patch.