Completed
Push — master ( 36e21e...fcc856 )
by Aimeos
06:12
created
controller/common/src/Controller/Common/Media/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
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() );
Please login to merge, or discard this patch.
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.