@@ -192,21 +192,21 @@ protected function loadStyle(\DOMElement $nodeStyle)
192
192
{
193
193
$ keyStyle = $ nodeStyle ->getAttribute ('style:name ' );
194
194
195
- $ nodeGraphicProperties = $ this ->oXMLReader ->getElement ('style:graphic-properties ' , $ nodeStyle );
196
- if ($ nodeGraphicProperties ) {
195
+ $ nodeGraphicProps = $ this ->oXMLReader ->getElement ('style:graphic-properties ' , $ nodeStyle );
196
+ if ($ nodeGraphicProps ) {
197
197
// Read Shadow
198
- if ($ nodeGraphicProperties ->hasAttribute ('draw:shadow ' ) && $ nodeGraphicProperties ->getAttribute ('draw:shadow ' ) == 'visible ' ) {
198
+ if ($ nodeGraphicProps ->hasAttribute ('draw:shadow ' ) && $ nodeGraphicProps ->getAttribute ('draw:shadow ' ) == 'visible ' ) {
199
199
$ oShadow = new Shadow ();
200
200
$ oShadow ->setVisible (true );
201
- if ($ nodeGraphicProperties ->hasAttribute ('draw:shadow-color ' )) {
202
- $ oShadow ->getColor ()->setRGB (substr ($ nodeGraphicProperties ->getAttribute ('draw:shadow-color ' ), -6 ));
201
+ if ($ nodeGraphicProps ->hasAttribute ('draw:shadow-color ' )) {
202
+ $ oShadow ->getColor ()->setRGB (substr ($ nodeGraphicProps ->getAttribute ('draw:shadow-color ' ), -6 ));
203
203
}
204
- if ($ nodeGraphicProperties ->hasAttribute ('draw:shadow-opacity ' )) {
205
- $ oShadow ->setAlpha ( 100 - (int )substr ($ nodeGraphicProperties ->getAttribute ('draw:shadow-opacity ' ), 0 , -1 ));
204
+ if ($ nodeGraphicProps ->hasAttribute ('draw:shadow-opacity ' )) {
205
+ $ oShadow ->setAlpha (100 - (int )substr ($ nodeGraphicProps ->getAttribute ('draw:shadow-opacity ' ), 0 , -1 ));
206
206
}
207
- if ($ nodeGraphicProperties ->hasAttribute ('draw:shadow-offset-x ' ) && $ nodeGraphicProperties ->hasAttribute ('draw:shadow-offset-y ' )) {
208
- $ offsetX = substr ($ nodeGraphicProperties ->getAttribute ('draw:shadow-offset-x ' ), 0 , -2 );
209
- $ offsetY = substr ($ nodeGraphicProperties ->getAttribute ('draw:shadow-offset-y ' ), 0 , -2 );
207
+ if ($ nodeGraphicProps ->hasAttribute ('draw:shadow-offset-x ' ) && $ nodeGraphicProps ->hasAttribute ('draw:shadow-offset-y ' )) {
208
+ $ offsetX = substr ($ nodeGraphicProps ->getAttribute ('draw:shadow-offset-x ' ), 0 , -2 );
209
+ $ offsetY = substr ($ nodeGraphicProps ->getAttribute ('draw:shadow-offset-y ' ), 0 , -2 );
210
210
$ distance = 0 ;
211
211
if ($ offsetX != 0 ) {
212
212
$ distance = ($ offsetX < 0 ? $ offsetX * -1 : $ offsetX );
@@ -235,17 +235,17 @@ protected function loadStyle(\DOMElement $nodeStyle)
235
235
$ oFont ->setSize (substr ($ nodeTextProperties ->getAttribute ('fo:font-size ' ), 0 , -2 ));
236
236
}
237
237
}
238
- $ nodeParagraphProperties = $ this ->oXMLReader ->getElement ('style:paragraph-properties ' , $ nodeStyle );
239
- if ($ nodeParagraphProperties ) {
238
+ $ nodeParagraphProps = $ this ->oXMLReader ->getElement ('style:paragraph-properties ' , $ nodeStyle );
239
+ if ($ nodeParagraphProps ) {
240
240
$ oAlignment = new Alignment ();
241
- if ($ nodeParagraphProperties ->hasAttribute ('fo:text-align ' )) {
242
- $ oAlignment ->setHorizontal ($ nodeParagraphProperties ->getAttribute ('fo:text-align ' ));
241
+ if ($ nodeParagraphProps ->hasAttribute ('fo:text-align ' )) {
242
+ $ oAlignment ->setHorizontal ($ nodeParagraphProps ->getAttribute ('fo:text-align ' ));
243
243
}
244
244
}
245
245
246
246
if ($ nodeStyle ->nodeName == 'text:list-style ' ) {
247
247
$ arrayListStyle = array ();
248
- foreach ($ this ->oXMLReader ->getElements ('text:list-level-style-bullet ' , $ nodeStyle ) as $ oNodeListLevel ) {
248
+ foreach ($ this ->oXMLReader ->getElements ('text:list-level-style-bullet ' , $ nodeStyle ) as $ oNodeListLevel ) {
249
249
$ oAlignment = new Alignment ();
250
250
$ oBullet = new Bullet ();
251
251
$ oBullet ->setBulletType (Bullet::TYPE_NONE );
@@ -390,7 +390,7 @@ protected function loadShapeRichText(\DOMElement $oNodeFrame)
390
390
* @param RichText $oShape
391
391
* @param \DOMElement $oNodeParent
392
392
*/
393
- protected function readParagraph (RichText $ oShape , \DOMElement $ oNodeParent )
393
+ protected function readParagraph (RichText $ oShape , \DOMElement $ oNodeParent )
394
394
{
395
395
$ oParagraph = $ oShape ->createParagraph ();
396
396
foreach ($ this ->oXMLReader ->getElements ('text:span ' , $ oNodeParent ) as $ oNodeRichTextElement ) {
@@ -446,7 +446,7 @@ protected function readList(RichText $oShape, \DOMElement $oNodeParent)
446
446
* @param \DOMElement $oNodeParent
447
447
* @param \DOMElement $oNodeParagraph
448
448
*/
449
- protected function readListItem (RichText $ oShape , \DOMElement $ oNodeParent , \DOMElement $ oNodeParagraph )
449
+ protected function readListItem (RichText $ oShape , \DOMElement $ oNodeParent , \DOMElement $ oNodeParagraph )
450
450
{
451
451
$ oParagraph = $ oShape ->createParagraph ();
452
452
if ($ oNodeParagraph ->hasAttribute ('text:style-name ' )) {
0 commit comments