X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FMediaHandlerFactory.php;h=82e8d1ffc2fc6fc11012167828cf4e2b3d7c2c1b;hb=431aa3ea9aac0f924bd88df1a655f87d591d0e53;hp=543dc80dfd7ef529e6dae2576a41442666593cfc;hpb=d24af42ffff087a0824f6e9abefa33cab3e4e835;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/MediaHandlerFactory.php b/includes/media/MediaHandlerFactory.php index 543dc80dfd..82e8d1ffc2 100644 --- a/includes/media/MediaHandlerFactory.php +++ b/includes/media/MediaHandlerFactory.php @@ -66,11 +66,7 @@ class MediaHandlerFactory { } protected function getHandlerClass( $type ) { - if ( isset( $this->registry[$type] ) ) { - return $this->registry[$type]; - } else { - return false; - } + return $this->registry[$type] ?? false; } /**