aboutsummaryrefslogtreecommitdiff
path: root/bridges/WorldCosplayBridge.php
diff options
context:
space:
mode:
Diffstat (limited to 'bridges/WorldCosplayBridge.php')
-rw-r--r--bridges/WorldCosplayBridge.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/bridges/WorldCosplayBridge.php b/bridges/WorldCosplayBridge.php
index 4fc31e67..21776ff1 100644
--- a/bridges/WorldCosplayBridge.php
+++ b/bridges/WorldCosplayBridge.php
@@ -2,7 +2,7 @@
class WorldCosplayBridge extends BridgeAbstract {
const NAME = 'WorldCosplay Bridge';
const URI = 'https://worldcosplay.net/';
- const DESCRIPTION ='Returns WorldCosplay photos';
+ const DESCRIPTION = 'Returns WorldCosplay photos';
const MAINTAINER = 'AxorPL';
const API_CHARACTER = 'api/photo/list.json?character_id=%u&limit=%u';
@@ -95,14 +95,12 @@ class WorldCosplayBridge extends BridgeAbstract {
$json = json_decode(getContents($url))
or returnServerError(sprintf(self::ERR_QUERY, $url));
- if($json->has_error)
- {
+ if($json->has_error) {
returnServerError($json->message);
}
$list = $json->list;
- foreach($list as $img)
- {
+ foreach($list as $img) {
$item = array();
$item['uri'] = self::URI . substr($img->photo->url, 1);
$item['title'] = $img->photo->subject;