Skip to content

Commit

Permalink
fix: Streamline AbstractHttpPush
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Jan 24, 2025
1 parent 562cf80 commit f2fb393
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Classes/Service/HttpPush/AbstractHttpPush.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ protected function streamlineFilePaths(array $paths): array
*/
protected function mapPathsWithType(array $paths, string $type): array
{
return array_values(array_map(function ($item) use ($type) {
return [
'path' => $item,
'type' => $type,
];
}, array_unique($paths)));
return array_values(array_map(fn($item) => [
'path' => $item,
'type' => $type,
], array_unique($paths)));
}
}

0 comments on commit f2fb393

Please sign in to comment.