These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\MediaBundle\Helper\File; |
||
4 | |||
5 | use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface; |
||
6 | |||
7 | /** |
||
8 | * SVGMimeTypeGuesser |
||
9 | */ |
||
10 | class SVGExtensionGuesser implements ExtensionGuesserInterface |
||
0 ignored issues
–
show
|
|||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | public function guess($mimeType) |
||
16 | { |
||
17 | if ($mimeType === 'image/svg+xml') { |
||
18 | return 'svg'; |
||
19 | } |
||
20 | |||
21 | return null; |
||
22 | } |
||
23 | } |
||
24 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.