From cfdc27f665dc4f0484f0b5ab42a31fc2847b2d1e Mon Sep 17 00:00:00 2001 From: Diana Date: Mon, 22 Jun 2015 15:51:59 +0000 Subject: [PATCH] remove empty line --- services/Parser/Nodes/Node.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/Parser/Nodes/Node.php b/services/Parser/Nodes/Node.php index 902cd4c..a6d2600 100644 --- a/services/Parser/Nodes/Node.php +++ b/services/Parser/Nodes/Node.php @@ -9,9 +9,9 @@ class Node { const DATA_SRC_ATTR_NAME = 'source'; const DEFAULT_TAG_NAME = 'default'; - const VALUE_TAG_NAME = 'value'; - const LABEL_TAG_NAME = 'label'; const FORMAT_TAG_NAME = 'format'; + const LABEL_TAG_NAME = 'label'; + const VALUE_TAG_NAME = 'value'; protected $xmlNode; protected $children; @@ -144,7 +144,6 @@ class Node { } protected function getValueWithDefault( \SimpleXMLElement $xmlNode ) { - $value = $this->extractDataFromSource( $xmlNode ); if ( !$value && $xmlNode->{self::DEFAULT_TAG_NAME} ) { return $this->extractDataFromNode( $xmlNode->{self::DEFAULT_TAG_NAME} );