@@ -69,7 +69,7 @@ discard block |
||
| 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 |
||
| 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) { |
@@ -482,7 +482,7 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -2580,7 +2580,7 @@ |
||
| 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(); |