public function getContentAllReplies(string $author, string $permalink)
    {
        $request = $this->getContentReplies($author, $permalink);

        if(is_array($request))
        {
            foreach ($request as $key => $item)
            {
                if($item['children'] > 0)
                    $request[$key]['replies'] = $this->getContentAllReplies($item['author'], $item['permlink']);
                else
                    $request[$key]['replies'] = [];
            }
        }

        return $request;
    }
public function getContentAllReplies(string $author, string $permalink)
    {
        $request = $this->getContentReplies($author, $permalink);

        if(is_array($request))
        {
            foreach ($request as $key => $item)
            {
                if($item['children'] > 0)
                    $request[$key]['replies'] = $this->getContentAllReplies($item['author'], $item['permlink']);
                else
                    $request[$key]['replies'] = [];
            }
        }

        return $request;
    }
public function getContentAllReplies ( string $ author , string $ permalink ) { $ request = $ this -> getContentReplies ( $ author , $ permalink ) ; if ( is_array ( $ request ) ) { foreach ( $ request as $ key => $ item ) { if ( $ item [ 'children' ] > 0 ) $ request [ $ key ] [ 'replies' ] = $ this -> getContentAllReplies ( $ item [ 'author' ] , $ item [ 'permlink' ] ) ; else $ request [ $ key ] [ 'replies' ] = [ ] ; } } return $ request ; }
Get all content replies

@param string $author    Author's account name
@param string $permalink Post's permalink
@return array
Get all content replies