summaryrefslogtreecommitdiff
path: root/app/Statistics.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2019-01-30 18:18:23 +0000
committerGitHub <noreply@github.com>2019-01-30 18:18:23 +0000
commit98afcacf0c29c8076314f8d5948c4ea775a693b1 (patch)
tree0c20062f5e1a3d3209792661b93f3ec17fe4c891 /app/Statistics.php
parent9219296a1acfac69c7d7f13505951ddeee5f8899 (diff)
downloadwebtrees-98afcacf0c29c8076314f8d5948c4ea775a693b1.tar.gz
webtrees-98afcacf0c29c8076314f8d5948c4ea775a693b1.tar.bz2
webtrees-98afcacf0c29c8076314f8d5948c4ea775a693b1.zip
Apply fixes from StyleCI (#2164)
Diffstat (limited to 'app/Statistics.php')
-rw-r--r--app/Statistics.php39
1 files changed, 13 insertions, 26 deletions
diff --git a/app/Statistics.php b/app/Statistics.php
index cba1541d75..e3cfaf022e 100644
--- a/app/Statistics.php
+++ b/app/Statistics.php
@@ -198,8 +198,7 @@ class Statistics implements
public function __construct(
ModuleService $module_service,
Tree $tree
- )
- {
+ ) {
$this->tree = $tree;
$this->gedcomRepository = new GedcomRepository($tree);
$this->individualRepository = new IndividualRepository($tree);
@@ -405,8 +404,7 @@ class Statistics implements
string $size = null,
string $color_from = null,
string $color_to = null
- ): string
- {
+ ): string {
return $this->individualRepository->chartIndisWithSources($size, $color_from, $color_to);
}
@@ -449,8 +447,7 @@ class Statistics implements
string $size = null,
string $color_from = null,
string $color_to = null
- ): string
- {
+ ): string {
return $this->individualRepository->chartFamsWithSources($size, $color_from, $color_to);
}
@@ -654,8 +651,7 @@ class Statistics implements
string $color_female = null,
string $color_male = null,
string $color_unknown = null
- ): string
- {
+ ): string {
return $this->individualRepository->chartSex($size, $color_female, $color_male, $color_unknown);
}
@@ -890,8 +886,7 @@ class Statistics implements
string $chart_shows = 'world',
string $chart_type = '',
string $surname = ''
- ): string
- {
+ ): string {
return $this->placeRepository->chartDistribution($chart_shows, $chart_type, $surname);
}
@@ -1903,8 +1898,7 @@ class Statistics implements
string $color_from = null,
string $color_to = null,
string $total = '10'
- ): string
- {
+ ): string {
return $this->familyRepository->chartLargestFamilies($size, $color_from, $color_to, (int) $total);
}
@@ -1995,8 +1989,7 @@ class Statistics implements
string $size = '220x200',
string $year1 = '-1',
string $year2 = '-1'
- ): string
- {
+ ): string {
return $this->familyRepository->chartNoChildrenFamilies($size, (int) $year1, (int) $year2);
}
@@ -2031,8 +2024,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 +2035,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 +2046,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 +2057,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);
}
@@ -2081,8 +2070,7 @@ class Statistics implements
string $color_from = null,
string $color_to = null,
string $number_of_surnames = '10'
- ): string
- {
+ ): string {
return $this->individualRepository
->chartCommonSurnames($size, $color_from, $color_to, (int) $number_of_surnames);
}
@@ -2255,8 +2243,7 @@ class Statistics implements
string $color_from = null,
string $color_to = null,
string $maxtoshow = '7'
- ): string
- {
+ ): string {
return $this->individualRepository->chartCommonGiven($size, $color_from, $color_to, (int) $maxtoshow);
}