Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Dec 15, 2024
1 parent 7e10aaf commit 3194b94
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ protected static function buildFileExtensionPattern(array $extensions): string
{
$extensions = self::expandCommaSeparatedValues($extensions);

return '/\.(' . self::normalizeExtensionForRegexPattern($extensions) . ')$/i';
return '/\.('.self::normalizeExtensionForRegexPattern($extensions).')$/i';
}

/** @param array<string> $extensions */
private static function expandCommaSeparatedValues(array $extensions): array
{
return array_merge(...array_map(function (string $item): array {
return array_map(fn(string $item): string => trim($item), explode(',', $item));
return array_map(fn (string $item): string => trim($item), explode(',', $item));
}, $extensions));
}

Expand Down

0 comments on commit 3194b94

Please sign in to comment.