PHPCS fixes
This commit is contained in:
parent
3c3eecd4da
commit
17521e7593
|
|
@ -177,11 +177,13 @@ class Html
|
|||
$cNodes = $node->childNodes;
|
||||
if (count($cNodes) > 0) {
|
||||
foreach ($cNodes as $cNode) {
|
||||
if ($element instanceof AbstractContainer) {
|
||||
self::parseNode($cNode, $element, $styles, $data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse paragraph node
|
||||
|
|
@ -230,9 +232,11 @@ class Html
|
|||
{
|
||||
$styles['font'] = self::parseInlineStyle($node, $styles['font']);
|
||||
|
||||
if (is_callable(array($element, 'addText'))) {
|
||||
// Commented as source of bug #257. `method_exists` doesn't seems to work properly in this case.
|
||||
// @todo Find better error checking for this one
|
||||
// if (method_exists($element, 'addText')) {
|
||||
$element->addText($node->nodeValue, $styles['font'], $styles['paragraph']);
|
||||
}
|
||||
// }
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue