File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
src/PhpPresentation/Writer/PowerPoint2007
tests/PhpPresentation/Tests/Writer/PowerPoint2007 Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function render()
18
18
* @var Author[]
19
19
*/
20
20
$ arrayAuthors = array ();
21
- foreach ($ this ->getPresentation ()->getAllSlides () as $ numSlide => $ oSlide ) {
21
+ foreach ($ this ->getPresentation ()->getAllSlides () as $ oSlide ) {
22
22
foreach ($ oSlide ->getShapeCollection () as $ oShape ) {
23
23
if (!($ oShape instanceof Comment)) {
24
24
continue ;
@@ -54,7 +54,7 @@ protected function writeCommentsAuthors($arrayAuthors)
54
54
$ objWriter ->writeAttribute ('xmlns:p ' , 'http://schemas.openxmlformats.org/presentationml/2006/main ' );
55
55
56
56
$ idxAuthor = 0 ;
57
- foreach ($ arrayAuthors as $ hashAuthor => $ oAuthor ) {
57
+ foreach ($ arrayAuthors as $ oAuthor ) {
58
58
$ oAuthor ->setIndex ($ idxAuthor ++);
59
59
60
60
// p:cmAuthor
@@ -72,4 +72,4 @@ protected function writeCommentsAuthors($arrayAuthors)
72
72
73
73
return $ objWriter ->getData ();
74
74
}
75
- }
75
+ }
Original file line number Diff line number Diff line change @@ -81,4 +81,4 @@ protected function writeSlideComments(Slide $oSlide)
81
81
82
82
return $ objWriter ->getData ();
83
83
}
84
- }
84
+ }
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public function writePresentationRelationships()
110
110
111
111
112
112
// Comments Authors
113
- foreach ($ this ->getPresentation ()->getAllSlides () as $ numSlide => $ oSlide ) {
113
+ foreach ($ this ->getPresentation ()->getAllSlides () as $ oSlide ) {
114
114
foreach ($ oSlide ->getShapeCollection () as $ oShape ) {
115
115
if (!($ oShape instanceof Comment)) {
116
116
continue ;
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ public function testCommentsAuthors()
19
19
$ pres = TestHelperDOCX::getDocument ($ oPhpPresentation , 'PowerPoint2007 ' );
20
20
$ this ->assertTrue ($ pres ->elementExists ('/Relationships/Relationship[@Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/commentAuthors"] ' , 'ppt/_rels/presentation.xml.rels ' ));
21
21
}
22
- }
22
+ }
You can’t perform that action at this time.
0 commit comments