1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 19:41:55 +02:00

Use latest php-cs-fixer version

This commit is contained in:
Afterster 2015-07-29 21:59:12 +02:00
parent 356b8f1e43
commit 47a6585c88
298 changed files with 7977 additions and 4559 deletions

View file

@ -47,7 +47,6 @@ class Random
$results = Dba::fetch_assoc($db_results);
return $results['id'];
} // artist
/**
@ -65,7 +64,6 @@ class Random
$results = Dba::fetch_assoc($db_results);
return $results['id'];
} // playlist
/**
@ -83,7 +81,6 @@ class Random
$song_id = array_pop($song_ids);
return $song_id;
} // get_single_song
/**
@ -112,7 +109,6 @@ class Random
}
return $results;
} // get_default
/**
@ -146,7 +142,6 @@ class Random
}
return $results;
} // get_album
/**
@ -179,7 +174,6 @@ class Random
}
return $results;
} // get_artist
/**
@ -196,7 +190,11 @@ class Random
/* If they've passed -1 as limit then get everything */
$limit_sql = "";
if ($data['random'] == "-1") { unset($data['random']); } else { $limit_sql = "LIMIT " . Dba::escape($limit); }
if ($data['random'] == "-1") {
unset($data['random']);
} else {
$limit_sql = "LIMIT " . Dba::escape($limit);
}
$search_data = Search::clean_request($data);
@ -304,7 +302,8 @@ class Random
// If we are within 4mb of target then jump ship
if (($data['size_limit'] - floor($size_total)) < 4) {
break; }
break;
}
} // if size_limit
// If length really does matter
@ -313,7 +312,8 @@ class Random
$new_time = floor($row['time'] / 60);
if ($fuzzy_time > 100) {
break;;
break;
;
}
// If the new one would go over skip!
@ -334,7 +334,6 @@ class Random
if (!$data['size_limit'] && !$data['length']) {
$results[] = $row['id'];
}
} // end while results
switch ($type) {
@ -358,5 +357,5 @@ class Random
return false;
}
} // advanced
} //end of random class