| @@ 816-821 (lines=6) @@ | ||
| 813 | 'application/epub+zip' |
|
| 814 | ]; |
|
| 815 | ||
| 816 | foreach ($textMimes as $mime) { |
|
| 817 | if (strpos($mimeType, $mime) === 0) { |
|
| 818 | $parsed = self::MIMETYPE_TEXT; |
|
| 819 | throw new KnownFileMimeTypeException(); |
|
| 820 | } |
|
| 821 | } |
|
| 822 | ||
| 823 | $this->parseMimeTypeTextByExtension($mimeType, $extension, $parsed); |
|
| 824 | } |
|
| @@ 902-907 (lines=6) @@ | ||
| 899 | 'application/vnd.ms-excel' |
|
| 900 | ]; |
|
| 901 | ||
| 902 | foreach ($officeMimes as $mime) { |
|
| 903 | if (strpos($mimeType, $mime) === 0) { |
|
| 904 | $parsed = self::MIMETYPE_OFFICE; |
|
| 905 | throw new KnownFileMimeTypeException(); |
|
| 906 | } |
|
| 907 | } |
|
| 908 | } |
|
| 909 | ||
| 910 | ||