Skip to content

Commit

Permalink
Use array helper to match code style
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 9, 2024
1 parent 89d735d commit f7f9c37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/framework/src/Facades/Features.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Illuminate\Support\Arr;

use function is_array;
use function array_map;
use function array_filter;
use function extension_loaded;
use function in_array;
Expand Down Expand Up @@ -146,7 +145,7 @@ public function toArray(): array

protected function boot(): array
{
return array_map(fn (Feature $feature): string => $feature->value, $this->getConfiguredFeatures());
return Arr::map($this->getConfiguredFeatures(), fn (Feature $feature): string => $feature->value);
}

/** @return array<Feature> */
Expand Down

0 comments on commit f7f9c37

Please sign in to comment.