Skip to content

Commit f2fb393

Browse files
committed
fix: Streamline AbstractHttpPush
1 parent 562cf80 commit f2fb393

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Classes/Service/HttpPush/AbstractHttpPush.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,9 @@ protected function streamlineFilePaths(array $paths): array
5656
*/
5757
protected function mapPathsWithType(array $paths, string $type): array
5858
{
59-
return array_values(array_map(function ($item) use ($type) {
60-
return [
61-
'path' => $item,
62-
'type' => $type,
63-
];
64-
}, array_unique($paths)));
59+
return array_values(array_map(fn($item) => [
60+
'path' => $item,
61+
'type' => $type,
62+
], array_unique($paths)));
6563
}
6664
}

0 commit comments

Comments
 (0)