mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 08:40:33 +02:00
Refactor code
This commit is contained in:
@@ -84,7 +84,7 @@ class Origin
|
||||
*/
|
||||
public function fileExtension(): ?string
|
||||
{
|
||||
return empty($this->filePath) ? null : pathinfo($this->filePath, PATHINFO_EXTENSION);
|
||||
return pathinfo($this->filePath ?: '', PATHINFO_EXTENSION) ?: null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user