src/Jobs/SendBatch.php
protected function getResponses(array $executeResponse)
    {
        if (isset($executeResponse['error'])) {
            return array_fill(0, $this->requests->count(), $executeResponse['error']);
        }

        $errors = isset($executeResponse['execute_errors']) ? $executeResponse['execute_errors'] : [];

        return array_map(function ($response) use (&$errors) {
            return $response ?: array_shift($errors);
        }, $executeResponse['response']);
    }
protected function getResponses(array $executeResponse)
    {
        if (isset($executeResponse['error'])) {
            return array_fill(0, $this->requests->count(), $executeResponse['error']);
        }

        $errors = isset($executeResponse['execute_errors']) ? $executeResponse['execute_errors'] : [];

        return array_map(function ($response) use (&$errors) {
            return $response ?: array_shift($errors);
        }, $executeResponse['response']);
    }
protected function getResponses ( array $ executeResponse ) { if ( isset ( $ executeResponse [ 'error' ] ) ) { return array_fill ( 0 , $ this -> requests -> count ( ) , $ executeResponse [ 'error' ] ) ; } $ errors = isset ( $ executeResponse [ 'execute_errors' ] ) ? $ executeResponse [ 'execute_errors' ] : [ ] ; return array_map ( function ( $ response ) use ( & $ errors ) { return $ response ? : array_shift ( $ errors ) ; } , $ executeResponse [ 'response' ] ) ; }
Get array of nested responses in "execute" response

@param array $executeResponse
@return array
Get array of nested responses in execute response