Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Nov 30, 2024
1 parent 5528751 commit ae31b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mime/MimeTypeDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ public function getMimeType(): ?string
}

try {

$type = $this->getMimeInternally();

// If mime_content_type returns application/zip or empty, perform magic byte detection
if ($type === 'application/zip' || empty($type)) {
return $this->detectUsingMagicBytes();
}

return $type;
} catch (\Exception $e) {
throw new ValidationException(['upload' => 'Could not detect MIME type.']);
Expand Down

0 comments on commit ae31b9b

Please sign in to comment.