From 9d1c6031cd7cc7e994e37134d24b348fff67471f Mon Sep 17 00:00:00 2001 From: Diana Date: Fri, 22 May 2015 15:46:54 +0000 Subject: [PATCH] whitespaces2 --- services/PortableInfoboxRenderService.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/PortableInfoboxRenderService.class.php b/services/PortableInfoboxRenderService.class.php index 781c966..88186a8 100644 --- a/services/PortableInfoboxRenderService.class.php +++ b/services/PortableInfoboxRenderService.class.php @@ -171,17 +171,17 @@ class PortableInfoboxRenderService extends WikiaService { $url = $data['url']; // TODO: remove 'if' condition when unified thumb method // will be implemented: https://wikia­inc.atlassian.net/browse/PLATFORM­1237 - if ( VignetteRequest::isVignetteUrl( $url )) { - return VignetteRequest::fromUrl($url) + if ( VignetteRequest::isVignetteUrl( $url ) ) { + return VignetteRequest::fromUrl( $url ) ->thumbnailDown() - ->width(F::app()->checkSkin('wikiamobile') ? + ->width(F::app()->checkSkin( 'wikiamobile' ) ? self::MOBILE_THUMBNAIL_WIDTH : self::DESKTOP_THUMBNAIL_WIDTH ) - ->height(self::THUMBNAIL_HEIGHT) + ->height( self::THUMBNAIL_HEIGHT ) ->url(); } else { - $url = $this->createOldThumbnail($data['name']); + $url = $this->createOldThumbnail( $data['name'] ); } return $url; }