original_string: public function toArray($force = true)
      {
          if (!$force && !$this->hasChildren()) {
              return $this->toValue();
          }
  
          $data = array();
          foreach ($this->children() as $name => $child) {
              $data[$name] = $child->toArray(false);
          }
  
          return $data;
      }
code: public function toArray($force = true)
      {
          if (!$force && !$this->hasChildren()) {
              return $this->toValue();
          }
  
          $data = array();
          foreach ($this->children() as $name => $child) {
              $data[$name] = $child->toArray(false);
          }
  
          return $data;
      }
code_tokens: public function toArray ( $ force = true ) { if ( ! $ force && ! $ this -> hasChildren ( ) ) { return $ this -> toValue ( ) ; } $ data = array ( ) ; foreach ( $ this -> children ( ) as $ name => $ child ) { $ data [ $ name ] = $ child -> toArray ( false ) ; } return $ data ; }
docstring: convert to array
  
  @return string
docstring_tokens: convert to array