summaryrefslogtreecommitdiffstats
path: root/web/lib/stats.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-03-22 09:38:18 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2012-03-24 10:34:35 +0100
commit132856a9383776d7e7788620df656db9fbd9883a (patch)
treef256f6896e38e08940fc6b93383b1ee2a1d64bbd /web/lib/stats.inc.php
parent985795a21000ea92bcc9e817ddc3a17c380b1ed1 (diff)
downloadaur-132856a9383776d7e7788620df656db9fbd9883a.tar.gz
aur-132856a9383776d7e7788620df656db9fbd9883a.tar.xz
Unify function declaration style
Always put the opening brace on the same line as the beginning of the function declaration. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/stats.inc.php')
-rw-r--r--web/lib/stats.inc.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/web/lib/stats.inc.php b/web/lib/stats.inc.php
index 8f0f7707..01e67003 100644
--- a/web/lib/stats.inc.php
+++ b/web/lib/stats.inc.php
@@ -2,8 +2,7 @@
include_once('aur.inc.php');
-function updates_table($dbh)
-{
+function updates_table($dbh) {
$key = 'recent_updates';
if(!($newest_packages = get_cache_value($key))) {
$q = 'SELECT * FROM Packages ORDER BY ModifiedTS DESC LIMIT 10';
@@ -18,8 +17,7 @@ function updates_table($dbh)
include('stats/updates_table.php');
}
-function user_table($user, $dbh)
-{
+function user_table($user, $dbh) {
$escuser = db_escape_string($user);
$base_q = "SELECT count(*) FROM Packages,Users WHERE Packages.MaintainerUID = Users.ID AND Users.Username='" . $escuser . "'";
@@ -37,8 +35,7 @@ function user_table($user, $dbh)
include('stats/user_table.php');
}
-function general_stats_table($dbh)
-{
+function general_stats_table($dbh) {
# AUR statistics
$q = "SELECT count(*) FROM Packages";
$unsupported_count = db_cache_value($q, $dbh, 'unsupported_count');