mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
Fix code style
This commit is contained in:
parent
b16958f44e
commit
811115958e
24 changed files with 33 additions and 35 deletions
|
@ -93,8 +93,7 @@ switch ($_REQUEST['action']) {
|
|||
$artist = scrub_in($_REQUEST['artist_name']);
|
||||
} elseif ($album->artist_count == '1') {
|
||||
$artist = $album->f_artist_name;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$artist = "";
|
||||
}
|
||||
if (isset($_REQUEST['album_name'])) {
|
||||
|
|
|
@ -38,7 +38,7 @@ class Access
|
|||
public $user;
|
||||
public $type;
|
||||
public $enabled;
|
||||
|
||||
|
||||
public $f_start;
|
||||
public $f_end;
|
||||
public $f_user;
|
||||
|
|
|
@ -430,7 +430,7 @@ class Art extends database_object
|
|||
debug_event('Art', 'Eror: No mime type found.', 1);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$data = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
|
@ -589,7 +589,7 @@ class Art extends database_object
|
|||
case 'artist':
|
||||
case 'video':
|
||||
default:
|
||||
$allowed_methods = array();
|
||||
$allowed_methods = array();
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -836,7 +836,7 @@ class Art extends database_object
|
|||
'MediumImage',
|
||||
'SmallImage'
|
||||
);
|
||||
|
||||
|
||||
if ($this->type == 'album') {
|
||||
$album = new Album($this->uid);
|
||||
} else {
|
||||
|
|
|
@ -35,7 +35,7 @@ class Artist extends database_object
|
|||
public $mbid; // MusicBrainz ID
|
||||
public $catalog_id;
|
||||
public $time;
|
||||
|
||||
|
||||
public $tags;
|
||||
public $f_tags;
|
||||
public $object_cnt;
|
||||
|
@ -44,7 +44,7 @@ class Artist extends database_object
|
|||
public $f_link;
|
||||
public $f_name_link;
|
||||
public $f_time;
|
||||
|
||||
|
||||
|
||||
// Constructed vars
|
||||
public $_fake = false; // Set if construct_from_array() used
|
||||
|
@ -440,7 +440,7 @@ class Artist extends database_object
|
|||
|
||||
$updated = false;
|
||||
$songs = array();
|
||||
|
||||
|
||||
// If it's changed we need to update
|
||||
if ($artist_id != $this->id) {
|
||||
$songs = $this->get_songs();
|
||||
|
|
|
@ -28,7 +28,7 @@ class Broadcast extends database_object
|
|||
public $song;
|
||||
public $song_position;
|
||||
public $name;
|
||||
|
||||
|
||||
public $tags;
|
||||
public $f_name;
|
||||
public $f_link;
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
class Browse extends Query
|
||||
{
|
||||
public $show_header;
|
||||
|
||||
|
||||
public function __construct($id = null, $cached = true)
|
||||
{
|
||||
parent::__construct($id, $cached);
|
||||
|
|
|
@ -38,7 +38,7 @@ abstract class Catalog extends database_object
|
|||
public $rename_pattern;
|
||||
public $sort_pattern;
|
||||
public $catalog_type;
|
||||
|
||||
|
||||
public $f_name;
|
||||
public $f_name_link;
|
||||
public $f_update;
|
||||
|
@ -737,7 +737,7 @@ abstract class Catalog extends database_object
|
|||
|
||||
echo "Starting Dump Album Art...\n";
|
||||
$i = 0;
|
||||
|
||||
|
||||
// Run through them and get the art!
|
||||
foreach ($albums as $album_id) {
|
||||
|
||||
|
|
|
@ -37,10 +37,10 @@ class Channel extends database_object
|
|||
public $loop;
|
||||
public $bitrate;
|
||||
public $name;
|
||||
|
||||
|
||||
public $tags;
|
||||
public $f_tags;
|
||||
|
||||
|
||||
private $is_init;
|
||||
private $playlist;
|
||||
private $song_pos;
|
||||
|
|
|
@ -138,7 +138,7 @@ class Core
|
|||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (!isset($_SESSION['forms'][$sid])) {
|
||||
debug_event('Core', "Form $sid not found in session, rejecting request", 2);
|
||||
return false;
|
||||
|
|
|
@ -35,7 +35,7 @@ class Democratic extends Tmp_Playlist
|
|||
public $user;
|
||||
public $primary;
|
||||
public $base_playlist;
|
||||
|
||||
|
||||
public $f_cooldown;
|
||||
public $f_primary;
|
||||
public $f_level;
|
||||
|
|
|
@ -28,7 +28,7 @@ class Localplay
|
|||
public $f_name;
|
||||
public $f_description;
|
||||
public $f_version;
|
||||
|
||||
|
||||
/* Built Variables */
|
||||
private $_player;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ class Playlist extends playlist_object
|
|||
/* Variables from the database */
|
||||
public $genre;
|
||||
public $date;
|
||||
|
||||
|
||||
public $f_link;
|
||||
public $f_name_link;
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ abstract class playlist_object extends database_object
|
|||
public $name;
|
||||
public $user;
|
||||
public $type;
|
||||
|
||||
|
||||
public $f_type;
|
||||
public $f_name;
|
||||
public $f_user;
|
||||
|
|
|
@ -38,7 +38,7 @@ class Radio extends database_object implements media
|
|||
public $genre;
|
||||
public $codec;
|
||||
public $catalog;
|
||||
|
||||
|
||||
public $f_link;
|
||||
public $f_name_link;
|
||||
public $f_url_link;
|
||||
|
|
|
@ -34,7 +34,7 @@ class Search extends playlist_object
|
|||
|
||||
public $basetypes;
|
||||
public $types;
|
||||
|
||||
|
||||
public $f_link;
|
||||
public $f_name_link;
|
||||
|
||||
|
|
|
@ -35,14 +35,14 @@ class Share extends database_object
|
|||
public $counter;
|
||||
public $secret;
|
||||
public $public_url;
|
||||
|
||||
|
||||
public $f_object_link;
|
||||
public $f_user;
|
||||
public $f_allow_stream;
|
||||
public $f_allow_download;
|
||||
public $f_creation_date;
|
||||
public $f_lastvisite_date;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
|
|
|
@ -29,7 +29,7 @@ class Shoutbox
|
|||
public $sticky;
|
||||
public $text;
|
||||
public $data;
|
||||
|
||||
|
||||
public $f_link;
|
||||
|
||||
/**
|
||||
|
|
|
@ -46,7 +46,7 @@ class Song extends database_object implements media
|
|||
public $mbid; // MusicBrainz ID
|
||||
public $catalog;
|
||||
public $waveform;
|
||||
|
||||
|
||||
public $tags;
|
||||
public $language;
|
||||
public $comment;
|
||||
|
@ -505,7 +505,7 @@ class Song extends database_object implements media
|
|||
{
|
||||
// Remove some stuff we don't care about
|
||||
unset($song->catalog,$song->played,$song->enabled,$song->addition_time,$song->update_time,$song->type);
|
||||
|
||||
|
||||
$array = array();
|
||||
$string_array = array('title','comment','lyrics');
|
||||
$skip_array = array('id','tag_id','mime','mb_artistid','mbid');
|
||||
|
|
|
@ -34,7 +34,7 @@ class Song_Preview extends database_object implements media
|
|||
public $mime;
|
||||
public $mbid; // MusicBrainz ID
|
||||
public $enabled = true;
|
||||
|
||||
|
||||
public $f_file;
|
||||
public $f_artist;
|
||||
public $f_artist_full;
|
||||
|
|
|
@ -46,7 +46,7 @@ class User extends database_object
|
|||
// Constructed variables
|
||||
public $prefs = array();
|
||||
public $playlist;
|
||||
|
||||
|
||||
public $f_last_seen;
|
||||
public $f_create_date;
|
||||
public $link;
|
||||
|
|
|
@ -33,7 +33,7 @@ class Video extends database_object implements media
|
|||
public $resolution_y;
|
||||
public $time;
|
||||
public $mime;
|
||||
|
||||
|
||||
public $tags;
|
||||
public $f_title;
|
||||
public $f_link;
|
||||
|
|
|
@ -35,12 +35,12 @@ class Wanted extends database_object
|
|||
public $accepted;
|
||||
public $release_mbid;
|
||||
public $user;
|
||||
|
||||
|
||||
public $f_name_link;
|
||||
public $f_artist_link;
|
||||
public $f_user;
|
||||
public $songs;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
|
|
|
@ -67,8 +67,7 @@ if (empty($_REQUEST['step'])) {
|
|||
$username = $_SERVER['REMOTE_USER'];
|
||||
} elseif ($_SERVER['HTTP_REMOTE_USER']) {
|
||||
$username = $_SERVER['HTTP_REMOTE_USER'];
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$username = '';
|
||||
}
|
||||
$password = '';
|
||||
|
|
|
@ -188,7 +188,7 @@ function show_preference_box($preferences)
|
|||
function show_album_select($name='album',$album_id=0,$allow_add=0,$song_id=0)
|
||||
{
|
||||
static $album_id_cnt = 0;
|
||||
|
||||
|
||||
// Generate key to use for HTML element ID
|
||||
if ($song_id) {
|
||||
$key = "album_select_" . $song_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue