We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 562cf80 commit f2fb393Copy full SHA for f2fb393
Classes/Service/HttpPush/AbstractHttpPush.php
@@ -56,11 +56,9 @@ protected function streamlineFilePaths(array $paths): array
56
*/
57
protected function mapPathsWithType(array $paths, string $type): array
58
{
59
- return array_values(array_map(function ($item) use ($type) {
60
- return [
61
- 'path' => $item,
62
- 'type' => $type,
63
- ];
64
- }, array_unique($paths)));
+ return array_values(array_map(fn($item) => [
+ 'path' => $item,
+ 'type' => $type,
+ ], array_unique($paths)));
65
}
66
0 commit comments