@@ -20,16 +20,16 @@ class Attachment extends AttachmentItem
2020 /** @var PropertySet */
2121 protected $ properties ;
2222
23- protected $ embeded_ole_type ;
23+ protected $ embedded_ole_type ;
2424
2525 public function __construct (Element $ obj , Message $ parent )
2626 {
2727 $ this ->obj = $ obj ;
2828 $ this ->parent = $ parent ;
2929
3030 $ this ->embedded_msg = null ;
31- $ this ->embeded_ole = null ;
32- $ this ->embeded_ole_type = '' ;
31+ $ this ->embedded_ole = null ;
32+ $ this ->embedded_ole_type = '' ;
3333
3434 $ this ->properties = new PropertySet (
3535 new PropertyStore ($ obj , $ parent ->getNameId ())
@@ -42,17 +42,17 @@ public function __construct(Element $obj, Message $parent)
4242 if ($ child ->isDirectory () && preg_match (PropertyStore::SUBSTG_RX , $ child ->getName (), $ matches )) {
4343 // magic numbers??
4444 if ($ matches [1 ] == '3701 ' && strtolower ($ matches [2 ]) == '000d ' ) {
45- $ this ->embeded_ole = $ child ;
45+ $ this ->embedded_ole = $ child ;
4646 }
4747 }
4848
4949 }
5050
51- if ($ this ->embeded_ole ) {
51+ if ($ this ->embedded_ole ) {
5252 $ type = $ this ->checkEmbeddedOleType ();
5353 if ($ type == 'Microsoft Office Outlook Message ' ) {
54- $ this ->embedded_msg = new Message ($ this ->embeded_ole , $ parent );
55- }
54+ $ this ->embedded_msg = new Message ($ this ->embedded_ole , $ parent );
55+ }
5656 }
5757
5858 }
@@ -62,7 +62,7 @@ protected function checkEmbeddedOleType()
6262 $ found = 0 ;
6363 $ type = null ;
6464
65- foreach ($ this ->embeded_ole ->getChildren () as $ child ) {
65+ foreach ($ this ->embedded_ole ->getChildren () as $ child ) {
6666 if (preg_match ('/__(substg|properties|recip|attach|nameid)/ ' , $ child ->getName ())) {
6767 $ found ++;
6868 if ($ found > 2 ) break ;
@@ -73,7 +73,7 @@ protected function checkEmbeddedOleType()
7373 }
7474
7575 if ($ type ) {
76- $ this ->embeded_ole_type = $ type ;
76+ $ this ->embedded_ole_type = $ type ;
7777 }
7878
7979 return $ type ;
@@ -82,9 +82,9 @@ protected function checkEmbeddedOleType()
8282
8383 public function getMimeType ()
8484 {
85-
86- $ mime = $ this ->properties ['attach_mime_tag ' ] ?? $ this ->embeded_ole_type ;
87- if (!$ mime ) {
85+
86+ $ mime = $ this ->properties ['attach_mime_tag ' ] ?? $ this ->embedded_ole_type ;
87+ if (!$ mime ) {
8888 $ mime = 'application/octet-stream ' ;
8989 }
9090
0 commit comments