original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get all content replies
  
  @param string $author    Author's account name
  @param string $permalink Post's permalink
  @return array
docstring_tokens: Get all content replies