Skip to content

Commit c0ef044

Browse files
committed
PowerPoint2007 Writer : Keynote incompatibility (CodePlex#237322) (Fix PHPCS + UnitTests)
1 parent 29a3321 commit c0ef044

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

src/PhpPowerpoint/Writer/PowerPoint2007.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ public function save($pFilename)
214214
$objZip->addFromString('[Content_Types].xml', $wPartContentTypes->writeContentTypes($this->presentation));
215215

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

220220
// Add relationships to ZIP file
221221
$objZip->addFromString('_rels/.rels', $wPartRels->writeRelationships());

src/PhpPowerpoint/Writer/PowerPoint2007/PptProps.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class PptProps extends AbstractPart
2828
* @return string XML Output
2929
* @throws \Exception
3030
*/
31-
public function writePresProps(PhpPowerpoint $pPHPPowerPoint = null)
31+
public function writePresProps()
3232
{
3333
// Create XML writer
3434
$objWriter = $this->getXMLWriter();
@@ -85,7 +85,7 @@ public function writePresProps(PhpPowerpoint $pPHPPowerPoint = null)
8585
* @return string XML Output
8686
* @throws \Exception
8787
*/
88-
public function writeTableStyles(PhpPowerpoint $pPHPPowerPoint = null)
88+
public function writeTableStyles()
8989
{
9090
// Create XML writer
9191
$objWriter = $this->getXMLWriter();

tests/PhpPowerpoint/Tests/Writer/PowerPoint2007/PptPropsTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,8 @@
1818
namespace PhpOffice\PhpPowerpoint\Tests\Writer\PowerPoint2007;
1919

2020
use PhpOffice\PhpPowerpoint\PhpPowerpoint;
21-
use PhpOffice\PhpPowerpoint\Shared\Drawing;
22-
use PhpOffice\PhpPowerpoint\Style\Alignment;
23-
use PhpOffice\PhpPowerpoint\Style\Bullet;
24-
use PhpOffice\PhpPowerpoint\Style\Color;
25-
use PhpOffice\PhpPowerpoint\Style\Fill;
2621
use PhpOffice\PhpPowerpoint\Tests\TestHelperDOCX;
2722
use PhpOffice\PhpPowerpoint\Writer\PowerPoint2007;
28-
use PhpOffice\PhpPowerpoint\Style\Border;
29-
use PhpOffice\PhpPowerpoint\Shape\Hyperlink;
30-
use PhpOffice\PhpPowerpoint\Writer\PowerPoint2007\Slide;
3123

3224
/**
3325
* Test class for PowerPoint2007

0 commit comments

Comments
 (0)