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 2014-05-25 22:54:29 +02:00
parent b16958f44e
commit 811115958e
24 changed files with 33 additions and 35 deletions

View file

@ -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'])) {

View file

@ -38,7 +38,7 @@ class Access
public $user;
public $type;
public $enabled;
public $f_start;
public $f_end;
public $f_user;

View file

@ -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 {

View file

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

View file

@ -28,7 +28,7 @@ class Broadcast extends database_object
public $song;
public $song_position;
public $name;
public $tags;
public $f_name;
public $f_link;

View file

@ -32,7 +32,7 @@
class Browse extends Query
{
public $show_header;
public function __construct($id = null, $cached = true)
{
parent::__construct($id, $cached);

View file

@ -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) {

View file

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

View file

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

View file

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

View file

@ -28,7 +28,7 @@ class Localplay
public $f_name;
public $f_description;
public $f_version;
/* Built Variables */
private $_player;

View file

@ -32,7 +32,7 @@ class Playlist extends playlist_object
/* Variables from the database */
public $genre;
public $date;
public $f_link;
public $f_name_link;

View file

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

View file

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

View file

@ -34,7 +34,7 @@ class Search extends playlist_object
public $basetypes;
public $types;
public $f_link;
public $f_name_link;

View file

@ -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
*/

View file

@ -29,7 +29,7 @@ class Shoutbox
public $sticky;
public $text;
public $data;
public $f_link;
/**

View file

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

View file

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

View file

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

View file

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

View file

@ -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
*/

View file

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

View file

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