| @@ 732-737 (lines=6) @@ | ||
| 729 | 'application/epub+zip' |
|
| 730 | ]; |
|
| 731 | ||
| 732 | foreach ($textMimes as $mime) { |
|
| 733 | if (strpos($mimeType, $mime) === 0) { |
|
| 734 | $parsed = self::MIMETYPE_TEXT; |
|
| 735 | throw new KnownFileMimeTypeException(); |
|
| 736 | } |
|
| 737 | } |
|
| 738 | ||
| 739 | $this->parseMimeTypeTextByExtension($mimeType, $extension, $parsed); |
|
| 740 | } |
|
| @@ 818-823 (lines=6) @@ | ||
| 815 | 'application/vnd.ms-excel' |
|
| 816 | ]; |
|
| 817 | ||
| 818 | foreach ($officeMimes as $mime) { |
|
| 819 | if (strpos($mimeType, $mime) === 0) { |
|
| 820 | $parsed = self::MIMETYPE_OFFICE; |
|
| 821 | throw new KnownFileMimeTypeException(); |
|
| 822 | } |
|
| 823 | } |
|
| 824 | } |
|
| 825 | ||
| 826 | ||