summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2016-06-01 21:45:48 +0100
committerGreg Roach <fisharebest@gmail.com>2016-06-01 21:45:48 +0100
commit86bb533aeb706508a3da93857e62e1af48773642 (patch)
treee46be1249952b1dadc9c71b278d06a161825c95f
parentdf7b9a6e61d3195d32b7fc7c1673e2e251e5f2f8 (diff)
downloadwebtrees-86bb533aeb706508a3da93857e62e1af48773642.tar.gz
webtrees-86bb533aeb706508a3da93857e62e1af48773642.tar.bz2
webtrees-86bb533aeb706508a3da93857e62e1af48773642.zip
Scrutinizer
-rw-r--r--app/Functions/FunctionsDb.php4
-rw-r--r--app/Module/FamilyTreeStatisticsModule.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/Functions/FunctionsDb.php b/app/Functions/FunctionsDb.php
index 7e2f011194..e0a701a631 100644
--- a/app/Functions/FunctionsDb.php
+++ b/app/Functions/FunctionsDb.php
@@ -647,7 +647,7 @@ class FunctionsDb {
* @param int $min The number of times a surname must occur before it is added to the array
* @param Tree $tree
*
- * @return mixed[][]
+ * @return int[]
*/
public static function getCommonSurnames($min, Tree $tree) {
return self::getTopSurnames($tree->getTreeId(), $min, 0);
@@ -660,7 +660,7 @@ class FunctionsDb {
* @param int $min only fetch surnames occuring this many times
* @param int $max only fetch this number of surnames (0=all)
*
- * @return string[]
+ * @return int[]
*/
public static function getTopSurnames($ged_id, $min, $max) {
// Use n_surn, rather than n_surname, as it is used to generate URLs for
diff --git a/app/Module/FamilyTreeStatisticsModule.php b/app/Module/FamilyTreeStatisticsModule.php
index 9b3952a9dd..3e0684f5e8 100644
--- a/app/Module/FamilyTreeStatisticsModule.php
+++ b/app/Module/FamilyTreeStatisticsModule.php
@@ -75,7 +75,7 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn
$stat_avg_chil = $this->getBlockSetting($block_id, 'stat_avg_chil', '1');
// This can be overriden when embedding in an HTML block
- $block = '0';
+ $block = '0';
foreach (array('show_common_surnames', 'number_common_surnames', 'stat_indi', 'stat_fam', 'stat_sour', 'stat_media', 'stat_surname', 'stat_events', 'stat_users', 'stat_first_birth', 'stat_last_birth', 'stat_first_death', 'stat_last_death', 'stat_long_life', 'stat_avg_life', 'stat_most_chil', 'stat_avg_chil', 'block') as $name) {
if (array_key_exists($name, $cfg)) {