summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)) {