original_string: public function getPageCanonical()
      {
          if (!$this->parser) {
              return;
          }
  
          $node = $this->parser->find('link[rel=canonical]', 0);
  
          if ($node) {
              return $node->getAttribute('href');
          }
      }
code: public function getPageCanonical()
      {
          if (!$this->parser) {
              return;
          }
  
          $node = $this->parser->find('link[rel=canonical]', 0);
  
          if ($node) {
              return $node->getAttribute('href');
          }
      }
code_tokens: public function getPageCanonical ( ) { if ( ! $ this -> parser ) { return ; } $ node = $ this -> parser -> find ( 'link[rel=canonical]' , 0 ) ; if ( $ node ) { return $ node -> getAttribute ( 'href' ) ; } }
docstring: Get page canonical url
  
  @return string url
docstring_tokens: Get page canonical url