'wma' =>
[],
];
public function detect(MediaFile
$mediaFile, ?MediaType
$previouslyDetectedType): ?MediaType
{ $fileExtension =
mb_strtolower($mediaFile->
getFileExtension());
if (!\
array_key_exists($fileExtension, self::SUPPORTED_FILE_EXTENSIONS
)) { return $previouslyDetectedType;
} if ($previouslyDetectedType === null
) { $previouslyDetectedType =
new AudioType();
} $previouslyDetectedType->
addFlags(self::SUPPORTED_FILE_EXTENSIONS
[$fileExtension]);
return $previouslyDetectedType;
}}