mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 20:09:44 +00:00
remove empty line
This commit is contained in:
parent
da9648461e
commit
cfdc27f665
|
@ -9,9 +9,9 @@ class Node {
|
||||||
|
|
||||||
const DATA_SRC_ATTR_NAME = 'source';
|
const DATA_SRC_ATTR_NAME = 'source';
|
||||||
const DEFAULT_TAG_NAME = 'default';
|
const DEFAULT_TAG_NAME = 'default';
|
||||||
const VALUE_TAG_NAME = 'value';
|
|
||||||
const LABEL_TAG_NAME = 'label';
|
|
||||||
const FORMAT_TAG_NAME = 'format';
|
const FORMAT_TAG_NAME = 'format';
|
||||||
|
const LABEL_TAG_NAME = 'label';
|
||||||
|
const VALUE_TAG_NAME = 'value';
|
||||||
|
|
||||||
protected $xmlNode;
|
protected $xmlNode;
|
||||||
protected $children;
|
protected $children;
|
||||||
|
@ -144,7 +144,6 @@ class Node {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getValueWithDefault( \SimpleXMLElement $xmlNode ) {
|
protected function getValueWithDefault( \SimpleXMLElement $xmlNode ) {
|
||||||
|
|
||||||
$value = $this->extractDataFromSource( $xmlNode );
|
$value = $this->extractDataFromSource( $xmlNode );
|
||||||
if ( !$value && $xmlNode->{self::DEFAULT_TAG_NAME} ) {
|
if ( !$value && $xmlNode->{self::DEFAULT_TAG_NAME} ) {
|
||||||
return $this->extractDataFromNode( $xmlNode->{self::DEFAULT_TAG_NAME} );
|
return $this->extractDataFromNode( $xmlNode->{self::DEFAULT_TAG_NAME} );
|
||||||
|
|
Loading…
Reference in a new issue