Passed
Push — master ( 94ae08...d561e6 )
by Aimeos
02:11
created
lib/custom/src/Base/Mail/Message/Swift.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -226,9 +226,9 @@  discard block
 block discarded – undo
226 226
 		if( $data )
227 227
 		{
228 228
 			$filename = $filename ?: md5( $data );
229
-			$mimetype = $mimetype ?: (new \finfo( FILEINFO_MIME_TYPE ))->buffer( $data );
229
+			$mimetype = $mimetype ?: ( new \finfo( FILEINFO_MIME_TYPE ) )->buffer( $data );
230 230
 
231
-			$this->object->attach( (new \Swift_Attachment( $data, $filename, $mimetype ))->setDisposition( $disposition ) );
231
+			$this->object->attach( ( new \Swift_Attachment( $data, $filename, $mimetype ) )->setDisposition( $disposition ) );
232 232
 		}
233 233
 
234 234
 		return $this;
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 		if( $data )
249 249
 		{
250 250
 			$filename = $filename ?: md5( $data );
251
-			$mimetype = $mimetype ?: (new \finfo( FILEINFO_MIME_TYPE ))->buffer( $data );
251
+			$mimetype = $mimetype ?: ( new \finfo( FILEINFO_MIME_TYPE ) )->buffer( $data );
252 252
 
253 253
 			return $this->object->embed( new \Swift_EmbeddedFile( $data, $filename, $mimetype ) );
254 254
 		}
Please login to merge, or discard this patch.