Skip to content

Commit fd418e0

Browse files
committed
Make sample php 5.3 compliant
1 parent ccccb3d commit fd418e0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

samples/Sample_09_Tables.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,22 @@
107107
$section->addPageBreak();
108108
$section->addText('Table with colspan and rowspan', $header);
109109

110-
$styleTable = ['borderSize' => 6, 'borderColor' => '999999'];
110+
$styleTable = array('borderSize' => 6, 'borderColor' => '999999');
111111
$phpWord->addTableStyle('Colspan Rowspan', $styleTable);
112112
$table = $section->addTable('Colspan Rowspan');
113113

114114
$row = $table->addRow();
115115

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');
118118
$row->addCell()->addText('1');
119119

120120
$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,));
123123
$row->addCell()->addText('2');
124124
$row = $table->addRow();
125-
$row->addCell(null, ['vMerge' => 'continue']);
125+
$row->addCell(null, array('vMerge' => 'continue'));
126126
$row->addCell()->addText('C');
127127
$row->addCell()->addText('D');
128128
$row->addCell()->addText('3');

0 commit comments

Comments
 (0)