Skip to content

Commit dda8b32

Browse files
committed
Format
1 parent b5f82da commit dda8b32

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

src/Extend/ExtensionSettings.php

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,16 @@ class ExtensionSettings implements ExtenderInterface
3636

3737
public function extend(Container $container, Extension $extension = null)
3838
{
39-
$container->resolving(
40-
'flarum.frontend.forum',
41-
function (Frontend $frontend, Container $container) {
42-
/** @var SettingsRepositoryInterface settings */
43-
$settings = $container->make(SettingsRepositoryInterface::class);
44-
45-
$frontend->content(function (Document $document) use ($settings) {
46-
foreach ($this->keys as $index => $key) {
47-
$document->payload[$key] = $settings->get($key, $this->defaults[$index]);
48-
}
49-
});
50-
}
51-
);
39+
$container->resolving('flarum.frontend.forum', function (Frontend $frontend, Container $container) {
40+
/** @var SettingsRepositoryInterface settings */
41+
$settings = $container->make(SettingsRepositoryInterface::class);
42+
43+
$frontend->content(function (Document $document) use ($settings) {
44+
foreach ($this->keys as $index => $key) {
45+
$document->payload[$key] = $settings->get($key, $this->defaults[$index]);
46+
}
47+
});
48+
});
5249
}
5350

5451
/**

0 commit comments

Comments
 (0)