Skip to content

Commit 3a25177

Browse files
committed
Removed complains of php-codesniffer
removed whitespace changed inline if statement
1 parent 62d3f97 commit 3a25177

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,20 @@ private function writeAxis(XMLWriter $xmlWriter, $type)
274274
$xmlWriter->startElement($axisType);
275275

276276
$xmlWriter->writeElementBlock('c:axId', 'val', $axisId);
277-
$xmlWriter->writeElementBlock('c:axPos', 'val', $axisPos);
277+
$xmlWriter->writeElementBlock('c:axPos', 'val', $axisPos);
278278
$xmlWriter->writeElementBlock('c:crossAx', 'val', $axisCross);
279279
$xmlWriter->writeElementBlock('c:auto', 'val', 1);
280280

281281
if (isset($this->options['axes'])) {
282282
$xmlWriter->writeElementBlock('c:delete', 'val', 0);
283283
$xmlWriter->writeElementBlock('c:majorTickMark', 'val', 'none');
284284
$xmlWriter->writeElementBlock('c:minorTickMark', 'val', 'none');
285-
if($style->showAxisLabels())
285+
if($style->showAxisLabels()) {
286286
$xmlWriter->writeElementBlock('c:tickLblPos', 'val', 'nextTo');
287-
else $xmlWriter->writeElementBlock('c:tickLblPos', 'val', 'none');
287+
}
288+
else {
289+
$xmlWriter->writeElementBlock('c:tickLblPos', 'val', 'none');
290+
}
288291
$xmlWriter->writeElementBlock('c:crosses', 'val', 'autoZero');
289292
}
290293
if (isset($this->options['radar']) || ($type == "cat" && $style->showGridX()) || ($type == "val" && $style->showGridY())) {

0 commit comments

Comments
 (0)