@@ -107,7 +107,9 @@ discard block |
||
107 | 107 | $fs->copy( $preview, $newPath ); |
108 | 108 | $previews[$size] = $newPath; |
109 | 109 | } |
110 | - catch( \Aimeos\MW\Filesystem\Exception $e ) {} // mime icons can't be copied |
|
110 | + catch( \Aimeos\MW\Filesystem\Exception $e ) |
|
111 | + { |
|
112 | +} // mime icons can't be copied |
|
111 | 113 | } |
112 | 114 | } |
113 | 115 | |
@@ -369,7 +371,9 @@ discard block |
||
369 | 371 | $fs->rm( $preview ); |
370 | 372 | } |
371 | 373 | } |
372 | - catch( \Exception $e ) { ; } // continue if removing file fails |
|
374 | + catch( \Exception $e ) |
|
375 | + { |
|
376 | +; } // continue if removing file fails |
|
373 | 377 | } |
374 | 378 | |
375 | 379 | return $item->setPreviews( [] ); |
@@ -453,7 +453,7 @@ |
||
453 | 453 | $ext = isset( $list[$mimeext] ) ? '.' . $list[$mimeext] : ( ctype_alpha( $mimeext ) ? '.' . $mimeext : '' ); |
454 | 454 | $siteId = $this->context->getLocale()->getSiteId(); |
455 | 455 | |
456 | - return "${siteId}/${type}/${filename[0]}/${filename[1]}/${filename}${ext}"; |
|
456 | + return "${siteid}/${type}/${filename[0]}/${filename[1]}/${filename}${ext}"; |
|
457 | 457 | } |
458 | 458 | |
459 | 459 |