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>
This commit is contained in:
Lukas Fleischer 2012-03-22 09:38:18 +01:00
parent 985795a210
commit 132856a938
3 changed files with 19 additions and 38 deletions

View file

@ -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');