private function processIndices($indices, callable $callback)
    {
        $response = [];

        foreach ($indices as $index) {
            $response[$index->indexName] = \call_user_func($callback, $index);
        }

        return $response;
    }
private function processIndices($indices, callable $callback)
    {
        $response = [];

        foreach ($indices as $index) {
            $response[$index->indexName] = \call_user_func($callback, $index);
        }

        return $response;
    }
private function processIndices ( $ indices , callable $ callback ) { $ response = [ ] ; foreach ( $ indices as $ index ) { $ response [ $ index -> indexName ] = \ call_user_func ( $ callback , $ index ) ; } return $ response ; }
Performs actions for given indices returning an array of responses from those actions.

@param Index[] $indices
@param callable $callback

@return array The response as an array in format of ['indexName' => $responseFromAlgoliaClient]
Performs actions for given indices returning an array of responses from those actions .