Passed
Push — master ( e4a333...3dd817 )
by Aimeos
11:15 queued 08:37
created
lib/custom/src/Base/Mail/Message/Typo3.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -308,14 +308,12 @@  discard block
 block discarded – undo
308 308
 			if( class_exists( $class ) && $this->object instanceof $class )
309 309
 			{
310 310
 				$this->object->attach( $data, $filename, $mimetype );
311
-			}
312
-			elseif( class_exists( '\Swift_Attachment' ) )
311
+			} elseif( class_exists( '\Swift_Attachment' ) )
313 312
 			{
314 313
 				$part = \Swift_Attachment::newInstance( $data, $filename, $mimetype );
315 314
 				$part->setDisposition( $disposition );
316 315
 				$this->object->attach( $part );
317
-			}
318
-			else
316
+			} else
319 317
 			{
320 318
 				throw new \RuntimeException( 'Symfony mailer or Swiftmailer package missing' );
321 319
 			}
@@ -345,13 +343,11 @@  discard block
 block discarded – undo
345 343
 			{
346 344
 				$this->object->embed( $data, $filename, $mimetype );
347 345
 				return 'cid:' . $filename;
348
-			}
349
-			elseif( class_exists( '\Swift_EmbeddedFile' ) )
346
+			} elseif( class_exists( '\Swift_EmbeddedFile' ) )
350 347
 			{
351 348
 				$part = \Swift_EmbeddedFile::newInstance( $data, $filename, $mimetype );
352 349
 				return $this->object->embed( $part );
353
-			}
354
-			else
350
+			} else
355 351
 			{
356 352
 				throw new \RuntimeException( 'Symfony mailer or Swiftmailer package missing' );
357 353
 			}
Please login to merge, or discard this patch.