mirror of
https://github.com/flarum/core.git
synced 2025-08-03 15:07:53 +02:00
Get rid of unnecessary method
This commit is contained in:
@@ -257,9 +257,9 @@ class Extension implements Arrayable
|
|||||||
|
|
||||||
private function getExtenders(): array
|
private function getExtenders(): array
|
||||||
{
|
{
|
||||||
$extenderFile = $this->getExtenderFile();
|
$extenderFile = "{$this->path}/extend.php";
|
||||||
|
|
||||||
if (! $extenderFile) {
|
if (! file_exists($extenderFile)) {
|
||||||
return [];
|
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.
|
* Tests whether the extension has assets.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user