original_string: public function get($key, $type = null) {
          foreach ($this->children as &$child) {
              if ($child->key === $key && ($type == null || $type == $child->type)) {
                  return $child;
              }
          }
          foreach ($this->prependchildren as &$child) {
              if ($child->key === $key && ($type == null || $type == $child->type)) {
                  return $child;
              }
          }
          return false;
      }
code: public function get($key, $type = null) {
          foreach ($this->children as &$child) {
              if ($child->key === $key && ($type == null || $type == $child->type)) {
                  return $child;
              }
          }
          foreach ($this->prependchildren as &$child) {
              if ($child->key === $key && ($type == null || $type == $child->type)) {
                  return $child;
              }
          }
          return false;
      }
code_tokens: public function get ( $ key , $ type = null ) { foreach ( $ this -> children as & $ child ) { if ( $ child -> key === $ key && ( $ type == null || $ type == $ child -> type ) ) { return $ child ; } } foreach ( $ this -> prependchildren as & $ child ) { if ( $ child -> key === $ key && ( $ type == null || $ type == $ child -> type ) ) { return $ child ; } } return false ; }
docstring: Gets a navigation node
  
  @param string|int $key for referencing the navbar nodes
  @param int $type breadcrumb_navigation_node::TYPE_*
  @return breadcrumb_navigation_node|bool
docstring_tokens: Gets a navigation node