Adding table layout to the generated HTML - fixed php-cs-fixer error

This commit is contained in:
Abubakkar Rangara 2018-07-24 14:23:23 +01:00
parent e61c40e71d
commit 4b9ae18d5a
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class Table extends AbstractElement
if ($rowCount > 0) {
$tableStyle = $this->element->getStyle();
$tableLayout = $tableStyle === null ? '' : $tableStyle->getLayout();
$content .= '<table'. (empty($tableLayout) ? '' : ' style="table-layout: '.$tableLayout.'"') .'>'. PHP_EOL;
$content .= '<table' . (empty($tableLayout) ? '' : ' style="table-layout: ' . $tableLayout . '"') . '>' . PHP_EOL;
for ($i = 0; $i < $rowCount; $i++) {
/** @var $row \PhpOffice\PhpWord\Element\Row Type hint */
$rowStyle = $rows[$i]->getStyle();