Passed
Push — analysis-8mbOPb ( e92f84 )
by Greg
11:52 queued 04:02
created
app/Http/Controllers/ReportEngineController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function reportList(Tree $tree, User $user): Response
71 71
     {
72
-        $title   = I18N::translate('Choose a report to run');
72
+        $title = I18N::translate('Choose a report to run');
73 73
 
74 74
         return $this->viewResponse('report-select-page', [
75 75
             'reports' => $this->module_service->findByComponent('report', $tree, $user),
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
             }
255 255
         }
256 256
 
257
-        $report_xml =WT_ROOT . 'resources/xml/reports/' . $module->name() . '.xml';
257
+        $report_xml = WT_ROOT . 'resources/xml/reports/' . $module->name() . '.xml';
258 258
 
259 259
 
260 260
         switch ($output) {
Please login to merge, or discard this patch.
app/Services/ModuleService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
     public function findByName(string $module_name): ?ModuleInterface
483 483
     {
484 484
         return self::all()
485
-            ->filter(function (ModuleInterface $module) use ($module_name): bool {
485
+            ->filter(function (ModuleInterface $module) use ($module_name) : bool {
486 486
                 return $module->isEnabled() && $module->name() === $module_name;
487 487
             })
488 488
             ->first();
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
     public function findByClass(string $class_name): ?ModuleInterface
499 499
     {
500 500
         return self::all()
501
-            ->filter(function (ModuleInterface $module) use ($class_name): bool {
501
+            ->filter(function (ModuleInterface $module) use ($class_name) : bool {
502 502
                 return $module->isEnabled() && $module instanceof $class_name;
503 503
             })
504 504
             ->first();
Please login to merge, or discard this patch.
app/Statistics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2580,7 +2580,7 @@
 block discarded – undo
2580 2580
     {
2581 2581
         /** @var ModuleBlockInterface $module */
2582 2582
         $module = app(ModuleService::class)->findByComponent('block', $this->tree, Auth::user())
2583
-            ->filter(function (ModuleInterface $module) use ($block): bool {
2583
+            ->filter(function (ModuleInterface $module) use ($block) : bool {
2584 2584
                 return $module->name() === $block && $module->name() !== 'html';
2585 2585
             })
2586 2586
             ->first();
Please login to merge, or discard this patch.