mirror of
https://github.com/Intervention/image.git
synced 2025-09-02 02:12:37 +02:00
Refactor code
This commit is contained in:
@@ -84,7 +84,7 @@ class Origin
|
|||||||
*/
|
*/
|
||||||
public function fileExtension(): ?string
|
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