@@ -148,7 +148,7 @@ |
||
148 | 148 | $fs->rm( $preview ); |
149 | 149 | } |
150 | 150 | } |
151 | - catch( \Exception $e ) { ; } // continue if removing file fails |
|
151 | + catch( \Exception $e ) {; } // continue if removing file fails |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | return $item->setUrl( '' )->setPreviews( [] )->deletePropertyItems( $item->getPropertyItems() ); |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | if( $media instanceof \Aimeos\MW\Media\Image\Iface ) |
55 | 55 | { |
56 | 56 | $item = $this->addImages( $item, $media, null, $fsname ); |
57 | - } |
|
58 | - else |
|
57 | + } else |
|
59 | 58 | { |
60 | 59 | $filepath = $this->getFilePath( $file->getClientFilename(), 'files', $mimetype ); |
61 | 60 | |
@@ -106,7 +105,9 @@ discard block |
||
106 | 105 | $fs->copy( $preview, $newPath ); |
107 | 106 | $previews[$size] = $newPath; |
108 | 107 | } |
109 | - catch( \Aimeos\MW\Filesystem\Exception $e ) {} // mime icons can't be copied |
|
108 | + catch( \Aimeos\MW\Filesystem\Exception $e ) |
|
109 | + { |
|
110 | +} // mime icons can't be copied |
|
110 | 111 | } |
111 | 112 | } |
112 | 113 | |
@@ -148,7 +149,9 @@ discard block |
||
148 | 149 | $fs->rm( $preview ); |
149 | 150 | } |
150 | 151 | } |
151 | - catch( \Exception $e ) { ; } // continue if removing file fails |
|
152 | + catch( \Exception $e ) |
|
153 | + { |
|
154 | +; } // continue if removing file fails |
|
152 | 155 | } |
153 | 156 | |
154 | 157 | return $item->setUrl( '' )->setPreviews( [] )->deletePropertyItems( $item->getPropertyItems() ); |
@@ -697,7 +700,9 @@ discard block |
||
697 | 700 | $fs->rm( $oldpath ); |
698 | 701 | } |
699 | 702 | } |
700 | - catch( \Aimeos\MW\Filesystem\Exception $e ) {} // continue if removing file fails |
|
703 | + catch( \Aimeos\MW\Filesystem\Exception $e ) |
|
704 | + { |
|
705 | +} // continue if removing file fails |
|
701 | 706 | |
702 | 707 | $fs->write( $filepath, $content ); |
703 | 708 | } |