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