diff options
Diffstat (limited to 'bridges/SafebooruBridge.php')
-rw-r--r-- | bridges/SafebooruBridge.php | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/bridges/SafebooruBridge.php b/bridges/SafebooruBridge.php index 0ca7a45d..b0ebea19 100644 --- a/bridges/SafebooruBridge.php +++ b/bridges/SafebooruBridge.php @@ -1,15 +1,16 @@ <?php -class SafebooruBridge extends GelbooruBridge { +class SafebooruBridge extends GelbooruBridge +{ + const MAINTAINER = 'mitsukarenai'; + const NAME = 'Safebooru'; + const URI = 'https://safebooru.org/'; + const DESCRIPTION = 'Returns images from given page'; - const MAINTAINER = 'mitsukarenai'; - const NAME = 'Safebooru'; - const URI = 'https://safebooru.org/'; - const DESCRIPTION = 'Returns images from given page'; - - protected function buildThumbnailURI($element){ - $regex = '/\.\w+$/'; - return $this->getURI() . 'thumbnails/' . $element->directory - . '/thumbnail_' . preg_replace($regex, '.jpg', $element->image); - } + protected function buildThumbnailURI($element) + { + $regex = '/\.\w+$/'; + return $this->getURI() . 'thumbnails/' . $element->directory + . '/thumbnail_' . preg_replace($regex, '.jpg', $element->image); + } } |