Skip to content

Commit c08f271

Browse files
committed
check style fixes
1 parent 45e2e92 commit c08f271

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

samples/Sample_32_Chart.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,14 @@
4949

5050
$chartTypes = array('pie', 'bar', 'column', 'line', 'area');
5151
$multiSeries = array('bar', 'column', 'line', 'area');
52-
$style = array('width' => Converter::cmToEmu(5), 'height' => Converter::cmToEmu(4), '3d' => true,
53-
'showAxisLabels' => $showAxisLabels, 'showGridX' => $showGridLines, 'showGridY' => $showGridLines);
52+
$style = array(
53+
'width' => Converter::cmToEmu(5),
54+
'height' => Converter::cmToEmu(4),
55+
'3d' => true,
56+
'showAxisLabels' => $showAxisLabels,
57+
'showGridX' => $showGridLines,
58+
'showGridY' => $showGridLines,
59+
);
5460
foreach ($chartTypes as $chartType) {
5561
$section->addTitle(ucfirst($chartType), 2);
5662
$chart = $section->addChart($chartType, $categories, $series1, $style);

src/PhpWord/Writer/Word2007/Part/Chart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ private function writeAxis(XMLWriter $xmlWriter, $type)
280280
}
281281
$xmlWriter->writeElementBlock('c:crosses', 'val', 'autoZero');
282282
}
283-
if (isset($this->options['radar']) || ($type == "cat" && $style->showGridX()) || ($type == "val" && $style->showGridY())) {
283+
if (isset($this->options['radar']) || ($type == 'cat' && $style->showGridX()) || ($type == 'val' && $style->showGridY())) {
284284
$xmlWriter->writeElement('c:majorGridlines');
285285
}
286286

0 commit comments

Comments
 (0)