mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +02:00
Fix code style
This commit is contained in:
parent
92580278bd
commit
7af54ac88c
5 changed files with 24 additions and 26 deletions
|
@ -208,9 +208,9 @@ class Recommendation
|
|||
$xml = self::get_lastfm_results('artist.getinfo', $query);
|
||||
|
||||
$results = array();
|
||||
$results['summary'] = strip_tags(preg_replace("#<a href=([^<]*)Last\.fm</a>.#", "", (string)$xml->artist->bio->summary));
|
||||
$results['placeformed'] = (string)$xml->artist->bio->placeformed;
|
||||
$results['yearformed'] = (string)$xml->artist->bio->yearformed;
|
||||
$results['summary'] = strip_tags(preg_replace("#<a href=([^<]*)Last\.fm</a>.#", "", (string) $xml->artist->bio->summary));
|
||||
$results['placeformed'] = (string) $xml->artist->bio->placeformed;
|
||||
$results['yearformed'] = (string) $xml->artist->bio->yearformed;
|
||||
|
||||
return $results;
|
||||
} // get_artist_info
|
||||
|
|
|
@ -140,7 +140,8 @@ class Catalog_soundcloud extends Catalog
|
|||
require_once Config::get('prefix') . '/modules/php-soundcloud/Soundcloud.php';
|
||||
}
|
||||
|
||||
protected function getRedirectUri() {
|
||||
protected function getRedirectUri()
|
||||
{
|
||||
return Config::get('web_path') . "/show_get.php?param_name=code";
|
||||
}
|
||||
|
||||
|
@ -298,8 +299,7 @@ class Catalog_soundcloud extends Catalog
|
|||
echo "<p>" . T_('API Error: cannot connect to SoundCloud.') . "</p><hr />\n";
|
||||
flush();
|
||||
}
|
||||
}
|
||||
catch (Exception $ex) {
|
||||
} catch (Exception $ex) {
|
||||
echo "<p>" . T_('SoundCloud exception: ') . $ex->getMessage() . "</p><hr />\n";
|
||||
}
|
||||
|
||||
|
@ -357,8 +357,7 @@ class Catalog_soundcloud extends Catalog
|
|||
echo "<p>" . T_('API Error: cannot connect to SoundCloud.') . "</p><hr />\n";
|
||||
flush();
|
||||
}
|
||||
}
|
||||
catch (Exception $ex) {
|
||||
} catch (Exception $ex) {
|
||||
echo "<p>" . T_('SoundCloud exception: ') . $ex->getMessage() . "</p><hr />\n";
|
||||
}
|
||||
|
||||
|
@ -430,8 +429,7 @@ class Catalog_soundcloud extends Catalog
|
|||
echo "<p>" . T_('API Error: cannot connect to SoundCloud.') . "</p><hr />\n";
|
||||
flush();
|
||||
}
|
||||
}
|
||||
catch (Exception $ex) {
|
||||
} catch (Exception $ex) {
|
||||
echo "<p>" . T_('SoundCloud exception: ') . $ex->getMessage() . "</p><hr />\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue