|
107 | 107 | $section->addPageBreak();
|
108 | 108 | $section->addText('Table with colspan and rowspan', $header);
|
109 | 109 |
|
110 |
| -$styleTable = ['borderSize' => 6, 'borderColor' => '999999']; |
| 110 | +$styleTable = array('borderSize' => 6, 'borderColor' => '999999'); |
111 | 111 | $phpWord->addTableStyle('Colspan Rowspan', $styleTable);
|
112 | 112 | $table = $section->addTable('Colspan Rowspan');
|
113 | 113 |
|
114 | 114 | $row = $table->addRow();
|
115 | 115 |
|
116 |
| -$row->addCell(null, ['vMerge' => 'restart'])->addText('A'); |
117 |
| -$row->addCell(null, ['gridSpan' => 2, 'vMerge' => 'restart',])->addText('B'); |
| 116 | +$row->addCell(null, array('vMerge' => 'restart'))->addText('A'); |
| 117 | +$row->addCell(null, array('gridSpan' => 2, 'vMerge' => 'restart',))->addText('B'); |
118 | 118 | $row->addCell()->addText('1');
|
119 | 119 |
|
120 | 120 | $row = $table->addRow();
|
121 |
| -$row->addCell(null, ['vMerge' => 'continue']); |
122 |
| -$row->addCell(null, ['vMerge' => 'continue','gridSpan' => 2,]); |
| 121 | +$row->addCell(null, array('vMerge' => 'continue')); |
| 122 | +$row->addCell(null, array('vMerge' => 'continue','gridSpan' => 2,)); |
123 | 123 | $row->addCell()->addText('2');
|
124 | 124 | $row = $table->addRow();
|
125 |
| -$row->addCell(null, ['vMerge' => 'continue']); |
| 125 | +$row->addCell(null, array('vMerge' => 'continue')); |
126 | 126 | $row->addCell()->addText('C');
|
127 | 127 | $row->addCell()->addText('D');
|
128 | 128 | $row->addCell()->addText('3');
|
|
0 commit comments