Skip to content

Commit 4b9ae18

Browse files
author
Abubakkar Rangara
committed
Adding table layout to the generated HTML - fixed php-cs-fixer error
1 parent e61c40e commit 4b9ae18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Writer/HTML/Element/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function write()
4141
if ($rowCount > 0) {
4242
$tableStyle = $this->element->getStyle();
4343
$tableLayout = $tableStyle === null ? '' : $tableStyle->getLayout();
44-
$content .= '<table'. (empty($tableLayout) ? '' : ' style="table-layout: '.$tableLayout.'"') .'>'. PHP_EOL;
44+
$content .= '<table' . (empty($tableLayout) ? '' : ' style="table-layout: ' . $tableLayout . '"') . '>' . PHP_EOL;
4545
for ($i = 0; $i < $rowCount; $i++) {
4646
/** @var $row \PhpOffice\PhpWord\Element\Row Type hint */
4747
$rowStyle = $rows[$i]->getStyle();

0 commit comments

Comments
 (0)