original_string: public function getNode($name, $track = true, $published = true)
      {
          if ($this->withPublishedOnly($published))
          {
              $node = PublishedNode::withName($name);
          } else
          {
              $node = Node::withName($name);
          }
  
          $node = $node->firstOrFail();
  
          $this->track($track, $node);
  
          return $node;
      }
code: public function getNode($name, $track = true, $published = true)
      {
          if ($this->withPublishedOnly($published))
          {
              $node = PublishedNode::withName($name);
          } else
          {
              $node = Node::withName($name);
          }
  
          $node = $node->firstOrFail();
  
          $this->track($track, $node);
  
          return $node;
      }
code_tokens: public function getNode ( $ name , $ track = true , $ published = true ) { if ( $ this -> withPublishedOnly ( $ published ) ) { $ node = PublishedNode :: withName ( $ name ) ; } else { $ node = Node :: withName ( $ name ) ; } $ node = $ node -> firstOrFail ( ) ; $ this -> track ( $ track , $ node ) ; return $ node ; }
docstring: Returns a node by name
  
  @param string $name
  @param bool $track
  @param bool $published
  @return Node
docstring_tokens: Returns a node by name