Skip to content

Commit ed1e162

Browse files
committed
Inline helper method only used once
1 parent 626ff0f commit ed1e162

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/framework/src/Facades/Features.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,6 @@ public function toArray(): array
194194
])->toArray();
195195
}
196196

197-
/** @return array<Feature> */
198-
protected static function getDefaultOptions(): array
199-
{
200-
return Feature::cases();
201-
}
202-
203197
protected function boot(): array
204198
{
205199
return array_map(fn (Feature $feature): string => $feature->value, $this->getConfiguredFeatures());
@@ -208,7 +202,7 @@ protected function boot(): array
208202
/** @return array<Feature> */
209203
protected function getConfiguredFeatures(): array
210204
{
211-
return Config::getArray('hyde.features', static::getDefaultOptions());
205+
return Config::getArray('hyde.features', Feature::cases());
212206
}
213207

214208
/**

0 commit comments

Comments
 (0)