mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 11:51:45 +08:00
Get rid of unnecessary method
This commit is contained in:
parent
4abd6d61a9
commit
741ce3acd4
|
@ -257,9 +257,9 @@ class Extension implements Arrayable
|
|||
|
||||
private function getExtenders(): array
|
||||
{
|
||||
$extenderFile = $this->getExtenderFile();
|
||||
$extenderFile = "{$this->path}/extend.php";
|
||||
|
||||
if (! $extenderFile) {
|
||||
if (! file_exists($extenderFile)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
@ -285,15 +285,6 @@ class Extension implements Arrayable
|
|||
);
|
||||
}
|
||||
|
||||
private function getExtenderFile(): ?string
|
||||
{
|
||||
$filename = "{$this->path}/extend.php";
|
||||
|
||||
if (file_exists($filename)) {
|
||||
return $filename;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests whether the extension has assets.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user