mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-18 18:28:40 +00:00
automated phpcs fixes
This commit is contained in:
parent
64f4920b36
commit
d750f558ba
|
|
@ -319,11 +319,25 @@ class Media implements \JsonSerializable
|
|||
return $this->isAbsolute ? $this->path : \ltrim($this->path, '\\/');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the media path
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getFileName() : string
|
||||
{
|
||||
return \basename($this->path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the media path
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getExtension() : string
|
||||
{
|
||||
$pos = \strrpos('.', $this->path);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user