Skip to content

Commit

Permalink
PowerPoint2007 Writer : Keynote incompatibility (CodePlex#237322) (Fi…
Browse files Browse the repository at this point in the history
…x PHPCS + UnitTests)
  • Loading branch information
Progi1984 committed Aug 12, 2014
1 parent 29a3321 commit c0ef044
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/PhpPowerpoint/Writer/PowerPoint2007.php
Expand Up @@ -214,8 +214,8 @@ public function save($pFilename)
$objZip->addFromString('[Content_Types].xml', $wPartContentTypes->writeContentTypes($this->presentation));

// Add PPT properties and styles to ZIP file - Required for Apple Keynote compatibility.
$objZip->addFromString('ppt/presProps.xml', $wPptProps->writePresProps($this->presentation));
$objZip->addFromString('ppt/tableStyles.xml', $wPptProps->writeTableStyles($this->presentation));
$objZip->addFromString('ppt/presProps.xml', $wPptProps->writePresProps());
$objZip->addFromString('ppt/tableStyles.xml', $wPptProps->writeTableStyles());

// Add relationships to ZIP file
$objZip->addFromString('_rels/.rels', $wPartRels->writeRelationships());
Expand Down
4 changes: 2 additions & 2 deletions src/PhpPowerpoint/Writer/PowerPoint2007/PptProps.php
Expand Up @@ -28,7 +28,7 @@ class PptProps extends AbstractPart
* @return string XML Output
* @throws \Exception
*/
public function writePresProps(PhpPowerpoint $pPHPPowerPoint = null)
public function writePresProps()
{
// Create XML writer
$objWriter = $this->getXMLWriter();
Expand Down Expand Up @@ -85,7 +85,7 @@ public function writePresProps(PhpPowerpoint $pPHPPowerPoint = null)
* @return string XML Output
* @throws \Exception
*/
public function writeTableStyles(PhpPowerpoint $pPHPPowerPoint = null)
public function writeTableStyles()
{
// Create XML writer
$objWriter = $this->getXMLWriter();
Expand Down
Expand Up @@ -18,16 +18,8 @@
namespace PhpOffice\PhpPowerpoint\Tests\Writer\PowerPoint2007;

use PhpOffice\PhpPowerpoint\PhpPowerpoint;
use PhpOffice\PhpPowerpoint\Shared\Drawing;
use PhpOffice\PhpPowerpoint\Style\Alignment;
use PhpOffice\PhpPowerpoint\Style\Bullet;
use PhpOffice\PhpPowerpoint\Style\Color;
use PhpOffice\PhpPowerpoint\Style\Fill;
use PhpOffice\PhpPowerpoint\Tests\TestHelperDOCX;
use PhpOffice\PhpPowerpoint\Writer\PowerPoint2007;
use PhpOffice\PhpPowerpoint\Style\Border;
use PhpOffice\PhpPowerpoint\Shape\Hyperlink;
use PhpOffice\PhpPowerpoint\Writer\PowerPoint2007\Slide;

/**
* Test class for PowerPoint2007
Expand Down

0 comments on commit c0ef044

Please sign in to comment.