Classes/Service/HttpPush/AbstractHttpPush.php
protected function mapPathsWithType(array $paths, string $type): array
    {
        return \array_map(function ($item) use ($type) {
            return [
                'path' => $item,
                'type' => $type,
            ];
        }, \array_unique($paths));
    }
protected function mapPathsWithType(array $paths, string $type): array
    {
        return \array_map(function ($item) use ($type) {
            return [
                'path' => $item,
                'type' => $type,
            ];
        }, \array_unique($paths));
    }
protected function mapPathsWithType ( array $ paths , string $ type ) : array { return \ array_map ( function ( $ item ) use ( $ type ) { return [ 'path' => $ item , 'type' => $ type , ] ; } , \ array_unique ( $ paths ) ) ; }
Map the path with the right types.
Take care that paths are not used twice.

@param array  $paths
@param string $type

@return array
Map the path with the right types . Take care that paths are not used twice .