Refactoring

This commit is contained in:
Gabriel Caruso 2018-01-16 20:19:54 -02:00 committed by GitHub
parent 4c68ebbe9d
commit 8ed3cacfe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class Container extends AbstractElement
return;
}
$containerClass = substr(get_class($container), strrpos(get_class($container), '\\') + 1);
$withoutP = in_array($containerClass, array('TextRun', 'Footnote', 'Endnote', 'ListItemRun')) ? true : false;
$withoutP = in_array($containerClass, array('TextRun', 'Footnote', 'Endnote', 'ListItemRun'));
$xmlWriter = $this->getXmlWriter();
// Loop through elements