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
3eea65ad1d
commit
3d13df9e0c
9 changed files with 89 additions and 89 deletions
|
@ -71,8 +71,7 @@ class Plex_Api
|
|||
public static function createError($code)
|
||||
{
|
||||
$error = "";
|
||||
switch ($code)
|
||||
{
|
||||
switch ($code) {
|
||||
case 404:
|
||||
$error = "Not Found";
|
||||
break;
|
||||
|
@ -225,7 +224,7 @@ class Plex_Api
|
|||
}
|
||||
} else {
|
||||
$subact = $params[1];
|
||||
if($subact == "children") {
|
||||
if ($subact == "children") {
|
||||
if (Plex_XML_Data::isArtist($key)) {
|
||||
$artist = new Artist($id);
|
||||
$artist->format();
|
||||
|
|
|
@ -380,7 +380,7 @@ class Plex_XML_Data
|
|||
$xml->addAttribute('librarySectionID', $catalog->id);
|
||||
$xml->addAttribute('librarySectionUUID', self::uuidFromKey($catalog->id));
|
||||
|
||||
foreach($artists as $artist) {
|
||||
foreach ($artists as $artist) {
|
||||
self::addArtist($xml, $artist);
|
||||
}
|
||||
}
|
||||
|
@ -397,7 +397,7 @@ class Plex_XML_Data
|
|||
$xml->addAttribute('viewGroup', 'album');
|
||||
$xml->addAttribute('viewMode', '65592');
|
||||
|
||||
foreach($albums as $id) {
|
||||
foreach ($albums as $id) {
|
||||
$album = new Album($id);
|
||||
$album->format();
|
||||
self::addAlbum($xml, $album);
|
||||
|
|
|
@ -1107,7 +1107,8 @@ class Song extends database_object implements media
|
|||
'command' => $cmd . ' ' . $args);
|
||||
}
|
||||
|
||||
public function get_lyrics() {
|
||||
public function get_lyrics()
|
||||
{
|
||||
if ($this->lyrics) {
|
||||
return array('text' => $this->lyrics);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue