Skip to content

Commit

Permalink
refactor: use more descriptive name for closure
Browse files Browse the repository at this point in the history
  • Loading branch information
jawira committed Aug 14, 2022
1 parent 5704331 commit 016ddd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Glue/Gluer.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ protected function changeWordsCase(array $words, int $caseMode): array
return $words;
}

$closure = static fn(string $word): string => mb_convert_case($word, $caseMode, self::ENCODING);
$convertCase = static fn(string $word): string => mb_convert_case($word, $caseMode, self::ENCODING);

return array_map($closure, $words);
return array_map($convertCase, $words);
}

/**
Expand Down

0 comments on commit 016ddd7

Please sign in to comment.