1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 02:09:23 +02:00

Fix code style

This commit is contained in:
Afterster 2013-11-25 01:56:46 +01:00
parent 3eea65ad1d
commit 3d13df9e0c
9 changed files with 89 additions and 89 deletions

View file

@ -71,8 +71,7 @@ class Plex_Api
public static function createError($code) public static function createError($code)
{ {
$error = ""; $error = "";
switch ($code) switch ($code) {
{
case 404: case 404:
$error = "Not Found"; $error = "Not Found";
break; break;
@ -225,7 +224,7 @@ class Plex_Api
} }
} else { } else {
$subact = $params[1]; $subact = $params[1];
if($subact == "children") { if ($subact == "children") {
if (Plex_XML_Data::isArtist($key)) { if (Plex_XML_Data::isArtist($key)) {
$artist = new Artist($id); $artist = new Artist($id);
$artist->format(); $artist->format();

View file

@ -380,7 +380,7 @@ class Plex_XML_Data
$xml->addAttribute('librarySectionID', $catalog->id); $xml->addAttribute('librarySectionID', $catalog->id);
$xml->addAttribute('librarySectionUUID', self::uuidFromKey($catalog->id)); $xml->addAttribute('librarySectionUUID', self::uuidFromKey($catalog->id));
foreach($artists as $artist) { foreach ($artists as $artist) {
self::addArtist($xml, $artist); self::addArtist($xml, $artist);
} }
} }
@ -397,7 +397,7 @@ class Plex_XML_Data
$xml->addAttribute('viewGroup', 'album'); $xml->addAttribute('viewGroup', 'album');
$xml->addAttribute('viewMode', '65592'); $xml->addAttribute('viewMode', '65592');
foreach($albums as $id) { foreach ($albums as $id) {
$album = new Album($id); $album = new Album($id);
$album->format(); $album->format();
self::addAlbum($xml, $album); self::addAlbum($xml, $album);

View file

@ -1107,7 +1107,8 @@ class Song extends database_object implements media
'command' => $cmd . ' ' . $args); 'command' => $cmd . ' ' . $args);
} }
public function get_lyrics() { public function get_lyrics()
{
if ($this->lyrics) { if ($this->lyrics) {
return array('text' => $this->lyrics); return array('text' => $this->lyrics);
} }