original_string: public function contains_active_node() {
          if ($this->isactive) {
              return true;
          } else {
              foreach ($this->children as $child) {
                  if ($child->isactive || $child->contains_active_node()) {
                      return true;
                  }
              }
          }
          return false;
      }
code: public function contains_active_node() {
          if ($this->isactive) {
              return true;
          } else {
              foreach ($this->children as $child) {
                  if ($child->isactive || $child->contains_active_node()) {
                      return true;
                  }
              }
          }
          return false;
      }
code_tokens: public function contains_active_node ( ) { if ( $ this -> isactive ) { return true ; } else { foreach ( $ this -> children as $ child ) { if ( $ child -> isactive || $ child -> contains_active_node ( ) ) { return true ; } } } return false ; }
docstring: Checks if this node or any of its children contain the active node.
  
  Recursive.
  
  @return bool
docstring_tokens: Checks if this node or any of its children contain the active node .