1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 09:49:30 +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']); $artist = scrub_in($_REQUEST['artist_name']);
} elseif ($album->artist_count == '1') { } elseif ($album->artist_count == '1') {
$artist = $album->f_artist_name; $artist = $album->f_artist_name;
} } else {
else {
$artist = ""; $artist = "";
} }
if (isset($_REQUEST['album_name'])) { if (isset($_REQUEST['album_name'])) {

View file

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

View file

@ -430,7 +430,7 @@ class Art extends database_object
debug_event('Art', 'Eror: No mime type found.', 1); debug_event('Art', 'Eror: No mime type found.', 1);
return false; return false;
} }
$data = ob_get_contents(); $data = ob_get_contents();
ob_end_clean(); ob_end_clean();
@ -589,7 +589,7 @@ class Art extends database_object
case 'artist': case 'artist':
case 'video': case 'video':
default: default:
$allowed_methods = array(); $allowed_methods = array();
break; break;
} }
@ -836,7 +836,7 @@ class Art extends database_object
'MediumImage', 'MediumImage',
'SmallImage' 'SmallImage'
); );
if ($this->type == 'album') { if ($this->type == 'album') {
$album = new Album($this->uid); $album = new Album($this->uid);
} else { } else {

View file

@ -35,7 +35,7 @@ class Artist extends database_object
public $mbid; // MusicBrainz ID public $mbid; // MusicBrainz ID
public $catalog_id; public $catalog_id;
public $time; public $time;
public $tags; public $tags;
public $f_tags; public $f_tags;
public $object_cnt; public $object_cnt;
@ -44,7 +44,7 @@ class Artist extends database_object
public $f_link; public $f_link;
public $f_name_link; public $f_name_link;
public $f_time; public $f_time;
// Constructed vars // Constructed vars
public $_fake = false; // Set if construct_from_array() used public $_fake = false; // Set if construct_from_array() used
@ -440,7 +440,7 @@ class Artist extends database_object
$updated = false; $updated = false;
$songs = array(); $songs = array();
// If it's changed we need to update // If it's changed we need to update
if ($artist_id != $this->id) { if ($artist_id != $this->id) {
$songs = $this->get_songs(); $songs = $this->get_songs();

View file

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

View file

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

View file

@ -38,7 +38,7 @@ abstract class Catalog extends database_object
public $rename_pattern; public $rename_pattern;
public $sort_pattern; public $sort_pattern;
public $catalog_type; public $catalog_type;
public $f_name; public $f_name;
public $f_name_link; public $f_name_link;
public $f_update; public $f_update;
@ -737,7 +737,7 @@ abstract class Catalog extends database_object
echo "Starting Dump Album Art...\n"; echo "Starting Dump Album Art...\n";
$i = 0; $i = 0;
// Run through them and get the art! // Run through them and get the art!
foreach ($albums as $album_id) { foreach ($albums as $album_id) {

View file

@ -37,10 +37,10 @@ class Channel extends database_object
public $loop; public $loop;
public $bitrate; public $bitrate;
public $name; public $name;
public $tags; public $tags;
public $f_tags; public $f_tags;
private $is_init; private $is_init;
private $playlist; private $playlist;
private $song_pos; private $song_pos;

View file

@ -138,7 +138,7 @@ class Core
default: default:
return false; return false;
} }
if (!isset($_SESSION['forms'][$sid])) { if (!isset($_SESSION['forms'][$sid])) {
debug_event('Core', "Form $sid not found in session, rejecting request", 2); debug_event('Core', "Form $sid not found in session, rejecting request", 2);
return false; return false;

View file

@ -35,7 +35,7 @@ class Democratic extends Tmp_Playlist
public $user; public $user;
public $primary; public $primary;
public $base_playlist; public $base_playlist;
public $f_cooldown; public $f_cooldown;
public $f_primary; public $f_primary;
public $f_level; public $f_level;

View file

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

View file

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

View file

@ -31,7 +31,7 @@ abstract class playlist_object extends database_object
public $name; public $name;
public $user; public $user;
public $type; public $type;
public $f_type; public $f_type;
public $f_name; public $f_name;
public $f_user; public $f_user;

View file

@ -38,7 +38,7 @@ class Radio extends database_object implements media
public $genre; public $genre;
public $codec; public $codec;
public $catalog; public $catalog;
public $f_link; public $f_link;
public $f_name_link; public $f_name_link;
public $f_url_link; public $f_url_link;

View file

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

View file

@ -35,14 +35,14 @@ class Share extends database_object
public $counter; public $counter;
public $secret; public $secret;
public $public_url; public $public_url;
public $f_object_link; public $f_object_link;
public $f_user; public $f_user;
public $f_allow_stream; public $f_allow_stream;
public $f_allow_download; public $f_allow_download;
public $f_creation_date; public $f_creation_date;
public $f_lastvisite_date; public $f_lastvisite_date;
/** /**
* Constructor * Constructor
*/ */

View file

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

View file

@ -46,7 +46,7 @@ class Song extends database_object implements media
public $mbid; // MusicBrainz ID public $mbid; // MusicBrainz ID
public $catalog; public $catalog;
public $waveform; public $waveform;
public $tags; public $tags;
public $language; public $language;
public $comment; public $comment;
@ -505,7 +505,7 @@ class Song extends database_object implements media
{ {
// Remove some stuff we don't care about // Remove some stuff we don't care about
unset($song->catalog,$song->played,$song->enabled,$song->addition_time,$song->update_time,$song->type); unset($song->catalog,$song->played,$song->enabled,$song->addition_time,$song->update_time,$song->type);
$array = array(); $array = array();
$string_array = array('title','comment','lyrics'); $string_array = array('title','comment','lyrics');
$skip_array = array('id','tag_id','mime','mb_artistid','mbid'); $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 $mime;
public $mbid; // MusicBrainz ID public $mbid; // MusicBrainz ID
public $enabled = true; public $enabled = true;
public $f_file; public $f_file;
public $f_artist; public $f_artist;
public $f_artist_full; public $f_artist_full;

View file

@ -46,7 +46,7 @@ class User extends database_object
// Constructed variables // Constructed variables
public $prefs = array(); public $prefs = array();
public $playlist; public $playlist;
public $f_last_seen; public $f_last_seen;
public $f_create_date; public $f_create_date;
public $link; public $link;

View file

@ -33,7 +33,7 @@ class Video extends database_object implements media
public $resolution_y; public $resolution_y;
public $time; public $time;
public $mime; public $mime;
public $tags; public $tags;
public $f_title; public $f_title;
public $f_link; public $f_link;

View file

@ -35,12 +35,12 @@ class Wanted extends database_object
public $accepted; public $accepted;
public $release_mbid; public $release_mbid;
public $user; public $user;
public $f_name_link; public $f_name_link;
public $f_artist_link; public $f_artist_link;
public $f_user; public $f_user;
public $songs; public $songs;
/** /**
* Constructor * Constructor
*/ */

View file

@ -67,8 +67,7 @@ if (empty($_REQUEST['step'])) {
$username = $_SERVER['REMOTE_USER']; $username = $_SERVER['REMOTE_USER'];
} elseif ($_SERVER['HTTP_REMOTE_USER']) { } elseif ($_SERVER['HTTP_REMOTE_USER']) {
$username = $_SERVER['HTTP_REMOTE_USER']; $username = $_SERVER['HTTP_REMOTE_USER'];
} } else {
else {
$username = ''; $username = '';
} }
$password = ''; $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) function show_album_select($name='album',$album_id=0,$allow_add=0,$song_id=0)
{ {
static $album_id_cnt = 0; static $album_id_cnt = 0;
// Generate key to use for HTML element ID // Generate key to use for HTML element ID
if ($song_id) { if ($song_id) {
$key = "album_select_" . $song_id; $key = "album_select_" . $song_id;