Skip to content

Commit 8ed3cac

Browse files
Refactoring
1 parent 4c68ebb commit 8ed3cac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Writer/Word2007/Element/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function write()
4646
return;
4747
}
4848
$containerClass = substr(get_class($container), strrpos(get_class($container), '\\') + 1);
49-
$withoutP = in_array($containerClass, array('TextRun', 'Footnote', 'Endnote', 'ListItemRun')) ? true : false;
49+
$withoutP = in_array($containerClass, array('TextRun', 'Footnote', 'Endnote', 'ListItemRun'));
5050
$xmlWriter = $this->getXmlWriter();
5151

5252
// Loop through elements

0 commit comments

Comments
 (0)