Skip to content

Commit

Permalink
Fix phpdoc; style.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 20, 2014
1 parent 823d82d commit 77cb47b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions framework/Xml_Element/lib/Horde/Xml/Element.php
Expand Up @@ -110,10 +110,10 @@ public function __construct($element)
/**
* Get a DOM representation of the element
*
* Returns the underlying DOM object, which can then be
* manipulated with full DOM methods.
* Returns the underlying DOM object, which can then be manipulated with
* full DOM methods.
*
* @return DOMDocument
* @return DOMElement
*/
public function getDom()
{
Expand Down Expand Up @@ -531,13 +531,15 @@ protected function _children($var)
protected function _cacheChildren()
{
foreach ($this->_element->childNodes as $child) {
if (!isset($this->_children[$child->localName]))
if (!isset($this->_children[$child->localName])) {
$this->_children[$child->localName] = array();
}
$this->_children[$child->localName][] = $child;

if ($child->prefix) {
if (!isset($this->_children[$child->prefix . ':' . $child->localName]))
if (!isset($this->_children[$child->prefix . ':' . $child->localName])) {
$this->_children[$child->prefix . ':' . $child->localName] = array();
}
$this->_children[$child->prefix . ':' . $child->localName][] = $child;
}
}
Expand Down

0 comments on commit 77cb47b

Please sign in to comment.