diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-09-24 11:26:59 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-09-24 11:27:09 +0100 |
| commit | 82bc5e5f3605c3041cd7038d742c33dd3c647b91 (patch) | |
| tree | e2c169813b1ed3224742b098bd84908915b22e73 /app/Stats.php | |
| parent | 6500df3048aaf46b6732720e5c78bea0436beede (diff) | |
| download | webtrees-82bc5e5f3605c3041cd7038d742c33dd3c647b91.tar.gz webtrees-82bc5e5f3605c3041cd7038d742c33dd3c647b91.tar.bz2 webtrees-82bc5e5f3605c3041cd7038d742c33dd3c647b91.zip | |
CodeStyle fixes
Diffstat (limited to 'app/Stats.php')
| -rw-r--r-- | app/Stats.php | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/app/Stats.php b/app/Stats.php index d939e4f481..4fe94ad353 100644 --- a/app/Stats.php +++ b/app/Stats.php @@ -1694,8 +1694,8 @@ class Stats $WT_STATS_MAP_X = Theme::theme()->parameter('distribution-chart-x'); $WT_STATS_MAP_Y = Theme::theme()->parameter('distribution-chart-y'); - $chart_shows = $params[0] ?? $chart_shows = 'world'; - $chart_type = $params[1] ?? $chart_type = ''; + $chart_shows = $params[0] ?? 'world'; + $chart_type = $params[1] ?? ''; $surname = $params[2] ?? ''; if ($this->totalPlacesQuery() == 0) { @@ -5062,8 +5062,6 @@ class Stats */ public function totalChildren(): string { - $rows = $this->runSql("SELECT SUM(f_numchil) AS tot FROM `##families` WHERE f_file={$this->tree->getTreeId()}"); - $total = (int) Database::prepare( "SELECT SUM(f_numchil) FROM `##families` WHERE f_file = :tree_id" )->execute([ @@ -6364,23 +6362,6 @@ class Stats } /** - * Get the newest registered user. - * - * @param string $type - * @param string[] $params - * - * @return string - */ - private function getLatestUserData($type, $params = []) - { - $user = $this->latestUser(); - - switch ($type) { - case 'loggedin': - } - } - - /** * Get the newest registered user's ID. * * @return string |
