summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Services/ModuleService.php3
-rw-r--r--app/Statistics.php24
-rw-r--r--modules_v4/example-footer.disable/module.php3
-rw-r--r--tests/app/Http/RequestHandlers/ModuleActionTest.php3
4 files changed, 12 insertions, 21 deletions
diff --git a/app/Services/ModuleService.php b/app/Services/ModuleService.php
index e9030c581e..f135124903 100644
--- a/app/Services/ModuleService.php
+++ b/app/Services/ModuleService.php
@@ -770,7 +770,8 @@ class ModuleService
*
* @param ModuleThemeInterface $current_theme
*/
- public function bootModules(ModuleThemeInterface $current_theme): void {
+ public function bootModules(ModuleThemeInterface $current_theme): void
+ {
$bootable_modules = $this->all()->filter(static function (ModuleInterface $module) {
return method_exists($module, 'boot');
});
diff --git a/app/Statistics.php b/app/Statistics.php
index 003d479b9b..1b47c61692 100644
--- a/app/Statistics.php
+++ b/app/Statistics.php
@@ -1904,8 +1904,7 @@ class Statistics implements
string $color_from = null,
string $color_to = null,
string $total = '10'
- ): string
- {
+ ): string {
return $this->familyRepository->chartLargestFamilies($color_from, $color_to, (int) $total);
}
@@ -1995,8 +1994,7 @@ class Statistics implements
public function chartNoChildrenFamilies(
string $year1 = '-1',
string $year2 = '-1'
- ): string
- {
+ ): string {
return $this->familyRepository->chartNoChildrenFamilies((int) $year1, (int) $year2);
}
@@ -2031,8 +2029,7 @@ class Statistics implements
string $threshold = '1',
string $number_of_surnames = '10',
string $sorting = 'alpha'
- ): string
- {
+ ): string {
return $this->individualRepository->commonSurnames((int) $threshold, (int) $number_of_surnames, $sorting);
}
@@ -2043,8 +2040,7 @@ class Statistics implements
string $threshold = '1',
string $number_of_surnames = '10',
string $sorting = 'rcount'
- ): string
- {
+ ): string {
return $this->individualRepository->commonSurnamesTotals((int) $threshold, (int) $number_of_surnames, $sorting);
}
@@ -2055,8 +2051,7 @@ class Statistics implements
string $threshold = '1',
string $number_of_surnames = '10',
string $sorting = 'alpha'
- ): string
- {
+ ): string {
return $this->individualRepository->commonSurnamesList((int) $threshold, (int) $number_of_surnames, $sorting);
}
@@ -2067,8 +2062,7 @@ class Statistics implements
string $threshold = '1',
string $number_of_surnames = '10',
string $sorting = 'rcount'
- ): string
- {
+ ): string {
return $this->individualRepository
->commonSurnamesListTotals((int) $threshold, (int) $number_of_surnames, $sorting);
}
@@ -2080,8 +2074,7 @@ class Statistics implements
string $color_from = null,
string $color_to = null,
string $number_of_surnames = '10'
- ): string
- {
+ ): string {
return $this->individualRepository
->chartCommonSurnames($color_from, $color_to, (int) $number_of_surnames);
}
@@ -2253,8 +2246,7 @@ class Statistics implements
string $color_from = null,
string $color_to = null,
string $maxtoshow = '7'
- ): string
- {
+ ): string {
return $this->individualRepository->chartCommonGiven($color_from, $color_to, (int) $maxtoshow);
}
diff --git a/modules_v4/example-footer.disable/module.php b/modules_v4/example-footer.disable/module.php
index b893f86b6e..c6f57666f9 100644
--- a/modules_v4/example-footer.disable/module.php
+++ b/modules_v4/example-footer.disable/module.php
@@ -16,8 +16,7 @@ use Fisharebest\Webtrees\View;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
-return new class extends AbstractModule implements ModuleCustomInterface, ModuleFooterInterface
-{
+return new class extends AbstractModule implements ModuleCustomInterface, ModuleFooterInterface {
use ModuleCustomTrait;
use ModuleFooterTrait;
diff --git a/tests/app/Http/RequestHandlers/ModuleActionTest.php b/tests/app/Http/RequestHandlers/ModuleActionTest.php
index b4946f82be..8fe997f95c 100644
--- a/tests/app/Http/RequestHandlers/ModuleActionTest.php
+++ b/tests/app/Http/RequestHandlers/ModuleActionTest.php
@@ -128,8 +128,7 @@ class ModuleActionTest extends TestCase
*/
private function dummyModule(): ModuleInterface
{
- return new class extends AbstractModule
- {
+ return new class extends AbstractModule {
public function getTestAction(ServerRequestInterface $request): ResponseInterface
{
return response('It works!');