@@ -274,30 +274,30 @@ protected function prepareEmail(): array
274274
275275 $ attachmentArray = [];
276276 foreach ($ attachments as $ file ) {
277- if (array_key_exists ('name ' , $ file ) && array_key_exists ('contentBytes ' , $ file )) {
278- $ attachmentArray [] = [
279- '@odata.type ' => '#microsoft.graph.fileAttachment ' ,
280- 'name ' => $ file ['name ' ],
281- 'contentBytes ' => $ file ['contentBytes ' ],
282- ];
283- } else {
284- $ path = pathinfo ($ file );
285-
286- $ attachmentArray [] = [
287- '@odata.type ' => '#microsoft.graph.fileAttachment ' ,
288- 'name ' => $ path ['basename ' ],
289- 'contentType ' => mime_content_type ($ file ),
290- 'contentBytes ' => base64_encode (file_get_contents ($ file )),
291- ];
292- }
277+ if (array_key_exists ('name ' , $ file ) && array_key_exists ('contentBytes ' , $ file )) {
278+ $ attachmentArray [] = [
279+ '@odata.type ' => '#microsoft.graph.fileAttachment ' ,
280+ 'name ' => $ file ['name ' ],
281+ 'contentBytes ' => $ file ['contentBytes ' ],
282+ ];
283+ } else {
284+ $ path = pathinfo ($ file );
285+
286+ $ attachmentArray [] = [
287+ '@odata.type ' => '#microsoft.graph.fileAttachment ' ,
288+ 'name ' => $ path ['basename ' ],
289+ 'contentType ' => mime_content_type ($ file ),
290+ 'contentBytes ' => base64_encode (file_get_contents ($ file )),
291+ ];
292+ }
293293 }
294294
295295 $ singleValueExtendedPropertiesarray = [];
296296 foreach ($ singleValueExtendedProperties as $ value ) {
297- $ singleValueExtendedPropertiesarray [] = [
298- 'id ' => $ value ['id ' ],
299- 'value ' => $ value ['value ' ],
300- ];
297+ $ singleValueExtendedPropertiesarray [] = [
298+ 'id ' => $ value ['id ' ],
299+ 'value ' => $ value ['value ' ],
300+ ];
301301 }
302302
303303 $ envelope = [];
0 commit comments