remove redundant var

This commit is contained in:
Diana 2015-06-12 00:11:23 +00:00
parent 098b1f9b89
commit 3418836533
2 changed files with 2 additions and 2 deletions

View file

@ -124,7 +124,7 @@ class Node {
if ( isset($attr) && in_array( $attr, $supportedAttributes ) ) {
return $attr;
}
return self::DEFAULT_TAG_NAME;
return (string)$xmlNode->{self::DEFAULT_TAG_NAME};
}
protected function getRawInfoboxData( $key ) {

View file

@ -5,7 +5,7 @@ use Wikia\PortableInfobox\Parser\XmlParser;
class NodeGroup extends Node {
const DATA_LAYOUT_ATTR_NAME = 'layout';
const GROUP_LAYOUT_PREFIX = 'group-layout-';
const DEFAULT_TAG_NAME = 'default';
private $supportedGroupLayouts = [
'default',