fix formatting

This commit is contained in:
troosan 2018-12-02 23:54:25 +01:00
parent 31968fa814
commit 5b688d50d8
2 changed files with 23 additions and 19 deletions

View File

@ -111,9 +111,15 @@ class Chart extends AbstractStyle
*/ */
private $valueAxisTitle; private $valueAxisTitle;
/**
* The position for major tick marks
* Possible values are 'in', 'out', 'cross', 'none'
*
* @var string
*/
private $majorTickMarkPos = 'none'; private $majorTickMarkPos = 'none';
/* /**
* Show labels for axis * Show labels for axis
* *
* @var bool * @var bool
@ -262,7 +268,7 @@ class Chart extends AbstractStyle
* *
* @return bool * @return bool
*/ */
public function getShowLegend() public function isShowLegend()
{ {
return $this->showLegend; return $this->showLegend;
} }
@ -452,8 +458,8 @@ class Chart extends AbstractStyle
} }
/** /**
* set the position for major tick marks * Set the position for major tick marks
* @param string $position [description] * @param string $position
*/ */
public function setMajorTickPosition($position) public function setMajorTickPosition($position)
{ {
@ -461,7 +467,7 @@ class Chart extends AbstractStyle
$this->majorTickMarkPos = $this->setEnumVal($position, $enum, $this->majorTickMarkPos); $this->majorTickMarkPos = $this->setEnumVal($position, $enum, $this->majorTickMarkPos);
} }
/* /**
* Show Gridlines for X-Axis * Show Gridlines for X-Axis
* *
* @return bool * @return bool

View File

@ -130,7 +130,7 @@ class Chart extends AbstractPart
$this->options = $this->types[$type]; $this->options = $this->types[$type];
$title = $style->getTitle(); $title = $style->getTitle();
$showLegend = $style->getShowLegend(); $showLegend = $style->isShowLegend();
//Chart title //Chart title
if ($title) { if ($title) {
@ -145,11 +145,9 @@ class Chart extends AbstractPart
<a:defRPr/></a:pPr><a:r><a:rPr/><a:t>' . $title . '</a:t></a:r> <a:defRPr/></a:pPr><a:r><a:rPr/><a:t>' . $title . '</a:t></a:r>
<a:endParaRPr/> <a:endParaRPr/>
</a:p>'); </a:p>');
$xmlWriter->endElement(); // c:rich $xmlWriter->endElement(); // c:rich
$xmlWriter->endElement(); // c:tx $xmlWriter->endElement(); // c:tx
$xmlWriter->endElement(); // c:title $xmlWriter->endElement(); // c:title
} else { } else {
$xmlWriter->writeElementBlock('c:autoTitleDeleted', 'val', 1); $xmlWriter->writeElementBlock('c:autoTitleDeleted', 'val', 1);
} }