@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | if( $data ) |
303 | 303 | { |
304 | 304 | $class = '\Symfony\Component\Mime\Email'; |
305 | - $mimetype = $mimetype ?: (new \finfo( FILEINFO_MIME_TYPE ))->buffer( $data ); |
|
305 | + $mimetype = $mimetype ?: ( new \finfo( FILEINFO_MIME_TYPE ) )->buffer( $data ); |
|
306 | 306 | $filename = $filename ?: md5( $data ); |
307 | 307 | |
308 | 308 | if( class_exists( $class ) && $this->object instanceof $class ) |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | if( $data ) |
339 | 339 | { |
340 | 340 | $class = '\Symfony\Component\Mime\Email'; |
341 | - $mimetype = $mimetype ?: (new \finfo( FILEINFO_MIME_TYPE ))->buffer( $data ); |
|
341 | + $mimetype = $mimetype ?: ( new \finfo( FILEINFO_MIME_TYPE ) )->buffer( $data ); |
|
342 | 342 | $filename = $filename ?: md5( $data ); |
343 | 343 | |
344 | 344 | if( class_exists( $class ) && $this->object instanceof $class ) |
@@ -308,14 +308,12 @@ discard block |
||
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 |
||
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 | } |
@@ -242,8 +242,7 @@ |
||
242 | 242 | */ |
243 | 243 | $path = 'mshop/group/manager/typo3/insert'; |
244 | 244 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
245 | - } |
|
246 | - else |
|
245 | + } else |
|
247 | 246 | { |
248 | 247 | /** mshop/group/manager/typo3/update/mysql |
249 | 248 | * Updates an existing group record in the database |
@@ -508,8 +508,7 @@ |
||
508 | 508 | */ |
509 | 509 | $path = 'mshop/customer/manager/typo3/insert'; |
510 | 510 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
511 | - } |
|
512 | - else |
|
511 | + } else |
|
513 | 512 | { |
514 | 513 | /** mshop/customer/manager/typo3/update |
515 | 514 | * Updates an existing customer record in the database |