Skip to content

Commit a1fecf2

Browse files
committed
Inline local variable
1 parent 15ca745 commit a1fecf2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/framework/src/Facades/Features.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ protected function getConfiguredFeatures(): array
163163
*/
164164
public static function mock(string|array $feature, bool $enabled = null): void
165165
{
166-
$features = is_array($feature) ? $feature : [$feature => $enabled];
167-
168-
foreach ($features as $feature => $enabled) {
166+
foreach (is_array($feature) ? $feature : [$feature => $enabled] as $feature => $enabled) {
169167
if ($enabled !== true) {
170168
Hyde::features()->features = array_filter(Hyde::features()->features, fn (string $search): bool => $search !== $feature);
171169
} else {

0 commit comments

Comments
 (0)