1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00

Fix code style

This commit is contained in:
Afterster 2013-11-23 01:11:19 +01:00
parent 619ca48ffe
commit 1745e204cd
17 changed files with 120 additions and 117 deletions

View file

@ -160,7 +160,8 @@ class Stats
* get_top_sql
* This returns the get_top sql
*/
public static function get_top_sql($type, $threshold = '') {
public static function get_top_sql($type, $threshold = '')
{
$type = self::validate_type($type);
/* If they don't pass one, then use the preference */
if (!$threshold) {
@ -304,7 +305,8 @@ class Stats
* get_newest_sql
* This returns the get_newest sql
*/
public static function get_newest_sql($type) {
public static function get_newest_sql($type)
{
$type = self::validate_type($type);
$sql = "SELECT DISTINCT(`$type`) as `id`, MIN(`addition_time`) AS `real_atime` FROM `song` GROUP BY `$type` ORDER BY `real_atime` ";

View file

@ -159,7 +159,8 @@ class Userflag extends database_object
* get_latest_sql
* Get the latest sql
*/
public static function get_latest_sql($type, $user_id=null) {
public static function get_latest_sql($type, $user_id=null)
{
if (is_null($user_id)) {
$user_id = $GLOBALS['user']->id;
}