Merge pull request #1248 from carusogabriel/patch-1

Refactoring
This commit is contained in:
troosan 2018-02-18 01:40:24 +01:00 committed by GitHub
commit def023752d
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; return;
} }
$containerClass = substr(get_class($container), strrpos(get_class($container), '\\') + 1); $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(); $xmlWriter = $this->getXmlWriter();
// Loop through elements // Loop through elements