Skip to content

Commit

Permalink
Fix TravisCI errors (#33 - #35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jul 21, 2014
1 parent 99c0c9a commit c2b8e8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PhpPowerpoint/Writer/ODPresentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function save($pFilename)

// Add charts
foreach ($this->chartArray as $keyChart => $shapeChart) {
$arrayFile = $this->getWriterPart('charts')->writePart(shapeChart);
$arrayFile = $this->getWriterPart('charts')->writePart($shapeChart);
foreach ($arrayFile as $file => $content) {
if (!empty($content)) {
$objZip->addFromString('Object '.$keyChart.'/' . $file, $content);
Expand Down
2 changes: 1 addition & 1 deletion src/PhpPowerpoint/Writer/ODPresentation/ObjectsChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ private function writeSeries(Chart $chart, Chart\Series $series)
} elseif ($chartType instanceof Pie3D) {
$count = $series->getDataPointFills();
$inc = 0;
for ($inc = 0 ; $inc < $count ; $inc++) {
for ($inc = 0; $inc < $count; $inc++) {
// chart:data-point
$this->xmlContent->startElement('chart:data-point');
$this->xmlContent->writeAttribute('chart:style-name', 'styleSeries'.$this->numSeries.'_'.$inc);
Expand Down

0 comments on commit c2b8e8f

Please sign in to comment.