original_string: public function search_for_active_node() {
          if ($this->check_if_active(URL_MATCH_BASE)) {
              return $this;
          } else {
              foreach ($this->children as &$child) {
                  $outcome = $child->search_for_active_node();
                  if ($outcome !== false) {
                      return $outcome;
                  }
              }
          }
          return false;
      }
code: public function search_for_active_node() {
          if ($this->check_if_active(URL_MATCH_BASE)) {
              return $this;
          } else {
              foreach ($this->children as &$child) {
                  $outcome = $child->search_for_active_node();
                  if ($outcome !== false) {
                      return $outcome;
                  }
              }
          }
          return false;
      }
code_tokens: public function search_for_active_node ( ) { if ( $ this -> check_if_active ( URL_MATCH_BASE ) ) { return $ this ; } else { foreach ( $ this -> children as & $ child ) { $ outcome = $ child -> search_for_active_node ( ) ; if ( $ outcome !== false ) { return $ outcome ; } } } return false ; }
docstring: Searches all children for the best matching active node
  @return navigation_node|false
docstring_tokens: Searches all children for the best matching active node