Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
Alexander Skvortsov 2021-09-17 18:10:26 +00:00 committed by StyleCI Bot
parent 5ebc101fd5
commit 766e3390d7
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class ExtensionServiceProvider extends AbstractServiceProvider
$this->container['flarum']->booting(function () {
/** @var Config */
$config = $this->container->make(Config::class);
if ($config->bootExtensions()) {
$this->container->make('flarum.extensions')->extend($this->container);
}

View File

@ -41,7 +41,7 @@ class Config implements ArrayAccess
{
return $this->data['offline'] ?? false;
}
public function bootExtensions(): bool
{
return $this->data['boot_extensions'] ?? true;