Completed
Push — master ( 4d9bb9...61cd79 )
by Aimeos
09:47
created
controller/common/src/Controller/Common/Media/Standard.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 				$fs->rm( $path );
104 104
 			}
105 105
 		}
106
-		catch( \Exception $e ) { ; } // Can be a mime icon with relative path
106
+		catch( \Exception $e ) {; } // Can be a mime icon with relative path
107 107
 
108 108
 		$item->setPreview( '' );
109 109
 	}
@@ -225,10 +225,10 @@  discard block
 block discarded – undo
225 225
 		$list = $this->context->getConfig()->get( 'controller/common/media/standard/extensions', [] );
226 226
 
227 227
 		if( isset( $list[$mimetype] ) ) {
228
-			$ext = '.' . $list[$mimetype];
228
+			$ext = '.'.$list[$mimetype];
229 229
 		}
230 230
 
231
-		$filename = md5( $filename . getmypid() . microtime( true ) );
231
+		$filename = md5( $filename.getmypid().microtime( true ) );
232 232
 
233 233
 		return "${type}/${filename[0]}/${filename[1]}/${filename}${ext}";
234 234
 	}
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 		 */
318 318
 		$ext = $config->get( 'controller/common/media/standard/mimeicon/extension', '.png' );
319 319
 
320
-		return $mimedir . DIRECTORY_SEPARATOR . $mimetype . $ext;
320
+		return $mimedir.DIRECTORY_SEPARATOR.$mimetype.$ext;
321 321
 	}
322 322
 
323 323
 
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 		 * @category User
362 362
 		 */
363 363
 		$default = array( 'image/jpeg', 'image/png', 'image/gif' );
364
-		$allowed = $config->get( 'controller/common/media/standard/' . $type . '/allowedtypes', $default );
364
+		$allowed = $config->get( 'controller/common/media/standard/'.$type.'/allowedtypes', $default );
365 365
 
366 366
 		if( in_array( $mimetype, $allowed ) === false )
367 367
 		{
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 		 * @category Developer
423 423
 		 * @category User
424 424
 		 */
425
-		$maxwidth = $config->get( 'controller/common/media/standard/' . $type . '/maxwidth', null );
425
+		$maxwidth = $config->get( 'controller/common/media/standard/'.$type.'/maxwidth', null );
426 426
 
427 427
 		/** controller/common/media/standard/files/maxheight
428 428
 		 * Maximum height of the uploaded images
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
 		 * @category Developer
460 460
 		 * @category User
461 461
 		 */
462
-		$maxheight = $config->get( 'controller/common/media/standard/' . $type . '/maxheight', null );
462
+		$maxheight = $config->get( 'controller/common/media/standard/'.$type.'/maxheight', null );
463 463
 
464 464
 		return $media->scale( $maxwidth, $maxheight );
465 465
 	}
Please login to merge, or discard this patch.