XW-2448: cleanup

This commit is contained in:
Mateusz Rybarski 2017-01-13 08:51:14 +01:00
parent e6edafb61c
commit 1723811417

View file

@ -2,6 +2,7 @@
namespace Wikia\PortableInfobox\Parser\Nodes;
use HtmlHelper;
use Wikia\PortableInfobox\Helpers\PortableInfoboxDataBag;
use WikiaFileHelper;
class NodeImage extends Node {
@ -18,7 +19,7 @@ class NodeImage extends Node {
}
public static function getGalleryData( $marker ) {
$galleryData = \Wikia\PortableInfobox\Helpers\PortableInfoboxDataBag::getInstance()->getGallery( $marker );
$galleryData = PortableInfoboxDataBag::getInstance()->getGallery( $marker );
return array_map( function ( $image ) {
return [
'label' => $image[ 'caption' ],