Skip to content

Commit 781e7bb

Browse files
committed
github-issue; #2228; Fixes to Simplexml Element class to satisfy static tests
1 parent de8028e commit 781e7bb

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

lib/internal/Magento/Framework/Simplexml/Element.php

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ class Element extends \SimpleXMLElement
2424
*/
2525
protected $_parent = null;
2626

27-
/**
28-
* For future use
29-
*
30-
* @param \Magento\Framework\Simplexml\Element $element
31-
* @return void
32-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
33-
*/
34-
public function setParent($element)
35-
{
36-
//$this->_parent = $element;
37-
}
38-
3927
/**
4028
* Returns parent node for the element
4129
*
@@ -179,7 +167,8 @@ public function asArray()
179167
}
180168

181169
/**
182-
* asArray() analog, but without attributes
170+
* The asArray() analog, but without attributes
171+
*
183172
* @return array|string
184173
*/
185174
public function asCanonicalArray()
@@ -469,8 +458,8 @@ public function setNode($path, $value, $overwrite = true)
469458

470459
/**
471460
* Unset self from the XML-node tree
472-
*
473461
* Note: trying to refer this object as a variable after "unsetting" like this will result in E_WARNING
462+
*
474463
* @return void
475464
*/
476465
public function unsetSelf()

0 commit comments

Comments
 (0)