mirror of
https://github.com/flarum/core.git
synced 2025-02-24 03:05:12 +01:00
Get rid of unnecessary method
This commit is contained in:
parent
f8061bbca1
commit
9fb3a31b51
@ -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…
x
Reference in New Issue
Block a user