mirror of
https://github.com/flarum/core.git
synced 2025-08-01 22:20:21 +02:00
Get rid of unnecessary method
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user