| @@ 658-663 (lines=6) @@ | ||
| 655 | 'application/epub+zip' |
|
| 656 | ]; |
|
| 657 | ||
| 658 | foreach ($textMimes as $mime) { |
|
| 659 | if (strpos($mimeType, $mime) === 0) { |
|
| 660 | $parsed = self::MIMETYPE_TEXT; |
|
| 661 | throw new KnownFileMimeTypeException(); |
|
| 662 | } |
|
| 663 | } |
|
| 664 | ||
| 665 | $this->parseMimeTypeTextByExtension($mimeType, $extension, $parsed); |
|
| 666 | } |
|
| @@ 744-749 (lines=6) @@ | ||
| 741 | 'application/vnd.ms-excel' |
|
| 742 | ]; |
|
| 743 | ||
| 744 | foreach ($officeMimes as $mime) { |
|
| 745 | if (strpos($mimeType, $mime) === 0) { |
|
| 746 | $parsed = self::MIMETYPE_OFFICE; |
|
| 747 | throw new KnownFileMimeTypeException(); |
|
| 748 | } |
|
| 749 | } |
|
| 750 | } |
|
| 751 | ||
| 752 | ||