refactor change self:: to static::
This commit is contained in:
parent
cc92d67c05
commit
0393ab8b89
4 changed files with 36 additions and 20 deletions
|
|
@ -29,7 +29,7 @@ abstract class FileViewer
|
|||
$directory = static::directory();
|
||||
$filename = "$directory/$file";
|
||||
|
||||
if (!in_array($file, self::list()) || !file_exists($filename) || !is_file($filename)) return null;
|
||||
if (!in_array($file, static::list()) || !file_exists($filename) || !is_file($filename)) return null;
|
||||
|
||||
$extension = pathinfo($filename, PATHINFO_EXTENSION);
|
||||
$content = file_get_contents($filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue