Passed
Push — master ( 8efdd9...ecc17a )
by Aimeos
05:15
created
controller/common/src/Controller/Common/Media/Standard.php 2 patches
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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( [] );
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -453,7 +453,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.