Passed
Push — master ( 8fd9a3...01022c )
by Aimeos
17:44 queued 10:06
created
lib/custom/src/MW/Mail/Message/Typo3.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -304,14 +304,12 @@  discard block
 block discarded – undo
304 304
 			if( class_exists( $class ) && $this->object instanceof $class )
305 305
 			{
306 306
 				$this->object->attach( $data, $filename, $mimetype );
307
-			}
308
-			elseif( class_exists( '\Swift_Attachment' ) )
307
+			} elseif( class_exists( '\Swift_Attachment' ) )
309 308
 			{
310 309
 				$part = \Swift_Attachment::newInstance( $data, $filename, $mimetype );
311 310
 				$part->setDisposition( $disposition );
312 311
 				$this->object->attach( $part );
313
-			}
314
-			else
312
+			} else
315 313
 			{
316 314
 				throw new \RuntimeException( 'Symfony mailer or Swiftmailer package missing' );
317 315
 			}
@@ -341,8 +339,7 @@  discard block
 block discarded – undo
341 339
 		{
342 340
 			$this->object->embed( $data, $filename, $mimetype );
343 341
 			return 'cid:' . $filename;
344
-		}
345
-		elseif( class_exists( '\Swift_EmbeddedFile' ) )
342
+		} elseif( class_exists( '\Swift_EmbeddedFile' ) )
346 343
 		{
347 344
 			$part = \Swift_EmbeddedFile::newInstance( $data, $filename, $mimetype );
348 345
 			return $this->object->embed( $part );
Please login to merge, or discard this patch.