original_string: private function buildTree($account, &$data, $parent) {
      $data[] = array($account['name'], null, 1);
      if ($account['subAccounts']) {
        foreach($account['subAccounts'] as $subAccount) {
          $this->buildTree($subAccount, $data, $account['name']);
        }
      }
    }
code: private function buildTree($account, &$data, $parent) {
      $data[] = array($account['name'], null, 1);
      if ($account['subAccounts']) {
        foreach($account['subAccounts'] as $subAccount) {
          $this->buildTree($subAccount, $data, $account['name']);
        }
      }
    }
code_tokens: private function buildTree ( $ account , & $ data , $ parent ) { $ data [ ] = array ( $ account [ 'name' ] , null , 1 ) ; if ( $ account [ 'subAccounts' ] ) { foreach ( $ account [ 'subAccounts' ] as $ subAccount ) { $ this -> buildTree ( $ subAccount , $ data , $ account [ 'name' ] ) ; } } }
docstring: Builds the data structure to represent the tree from the API response.
  @param array $account The response of the API
  @param array $data The data structure that represent the tree
  @param string $parent The parent for the current node
docstring_tokens: Builds the data structure to represent the tree from the API response .