Skip to content

Commit 776efe6

Browse files
committed
- Fixed multiline if statement
- Fixed wrong identation
1 parent fe2cdc1 commit 776efe6

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

lib/internal/Magento/Framework/Config/Dom.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,10 @@ protected function _mergeNode(\DOMElement $node, $parentPath)
169169
/* Update matched node attributes and value */
170170
if ($matchedNode) {
171171
//different node type
172-
if ($this->typeAttributeName && $node->hasAttribute(
173-
$this->typeAttributeName
174-
) && $matchedNode->hasAttribute(
175-
$this->typeAttributeName
176-
) && $node->getAttribute(
177-
$this->typeAttributeName
178-
) !== $matchedNode->getAttribute(
179-
$this->typeAttributeName
180-
)
172+
if ($this->typeAttributeName &&
173+
$node->hasAttribute($this->typeAttributeName) &&
174+
$matchedNode->hasAttribute($this->typeAttributeName) &&
175+
$node->getAttribute($this->typeAttributeName) !== $matchedNode->getAttribute($this->typeAttributeName)
181176
) {
182177
$parentMatchedNode = $this->_getMatchedNode($parentPath);
183178
$newNode = $this->dom->importNode($node, true);

lib/internal/Magento/Framework/Config/Test/Unit/DataTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class DataTest extends \PHPUnit_Framework_TestCase
1010
{
11-
/**
11+
/**
1212
* @var \Magento\Framework\Config\ReaderInterface|\PHPUnit_Framework_MockObject_MockObject
1313
*/
1414
private $readerMock;

0 commit comments

Comments
 (0)