1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 01:39:28 +02:00

Fix code style

This commit is contained in:
Afterster 2013-11-24 02:44:22 +01:00
parent 92580278bd
commit 7af54ac88c
5 changed files with 24 additions and 26 deletions

View file

@ -208,9 +208,9 @@ class Recommendation
$xml = self::get_lastfm_results('artist.getinfo', $query); $xml = self::get_lastfm_results('artist.getinfo', $query);
$results = array(); $results = array();
$results['summary'] = strip_tags(preg_replace("#<a href=([^<]*)Last\.fm</a>.#", "", (string)$xml->artist->bio->summary)); $results['summary'] = strip_tags(preg_replace("#<a href=([^<]*)Last\.fm</a>.#", "", (string) $xml->artist->bio->summary));
$results['placeformed'] = (string)$xml->artist->bio->placeformed; $results['placeformed'] = (string) $xml->artist->bio->placeformed;
$results['yearformed'] = (string)$xml->artist->bio->yearformed; $results['yearformed'] = (string) $xml->artist->bio->yearformed;
return $results; return $results;
} // get_artist_info } // get_artist_info

View file

@ -140,7 +140,8 @@ class Catalog_soundcloud extends Catalog
require_once Config::get('prefix') . '/modules/php-soundcloud/Soundcloud.php'; 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"; 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"; echo "<p>" . T_('API Error: cannot connect to SoundCloud.') . "</p><hr />\n";
flush(); flush();
} }
} } catch (Exception $ex) {
catch (Exception $ex) {
echo "<p>" . T_('SoundCloud exception: ') . $ex->getMessage() . "</p><hr />\n"; 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"; echo "<p>" . T_('API Error: cannot connect to SoundCloud.') . "</p><hr />\n";
flush(); flush();
} }
} } catch (Exception $ex) {
catch (Exception $ex) {
echo "<p>" . T_('SoundCloud exception: ') . $ex->getMessage() . "</p><hr />\n"; 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"; echo "<p>" . T_('API Error: cannot connect to SoundCloud.') . "</p><hr />\n";
flush(); flush();
} }
} } catch (Exception $ex) {
catch (Exception $ex) {
echo "<p>" . T_('SoundCloud exception: ') . $ex->getMessage() . "</p><hr />\n"; echo "<p>" . T_('SoundCloud exception: ') . $ex->getMessage() . "</p><hr />\n";
} }