Skip to content

Commit

Permalink
Apply StyleCI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OrdinaryJellyfish committed Nov 23, 2023
1 parent b94d4fb commit 35823ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framework/core/src/Extend/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function registerLessConfigVar(string $configName, string $key, callable|

public function extend(Container $container, Extension $extension = null): void
{
if (!empty($this->defaults)) {
if (! empty($this->defaults)) {
$container->extend('flarum.settings.default', function (Collection $defaults) {
foreach ($this->defaults as $key => $value) {
if ($defaults->has($key)) {
Expand All @@ -111,7 +111,7 @@ public function extend(Container $container, Extension $extension = null): void
});
}

if (!empty($this->forget)) {
if (! empty($this->forget)) {
$settings = $container->make(SettingsRepositoryInterface::class);

foreach ($this->forget as $key => $callback) {
Expand All @@ -125,7 +125,7 @@ public function extend(Container $container, Extension $extension = null): void
}
}

if (!empty($this->settings)) {
if (! empty($this->settings)) {
AbstractSerializer::addAttributeMutator(
ForumSerializer::class,
function () use ($container) {
Expand All @@ -148,7 +148,7 @@ function () use ($container) {
);
}

if (!empty($this->lessConfigs)) {
if (! empty($this->lessConfigs)) {
$container->extend('flarum.less.config', function (array $existingConfig, Container $container) {
$config = $this->lessConfigs;

Expand Down

0 comments on commit 35823ad

Please sign in to comment.