original_string: public function getPageMetas()
      {
          if (!$this->parser) {
              return;
          }
  
          $nodes = $this->parser->find('meta');
  
          $metas = array();
  
          foreach ($nodes as $node) {
              if ($node->hasAttribute('name')) {
                  $metas[ $node->getAttribute('name') ] = $node->getAttribute('content');
              } elseif ($node->hasAttribute('property')) {
                  $metas[ $node->getAttribute('property') ] = $node->getAttribute('content');
              }
          }
  
          return $metas;
      }
code: public function getPageMetas()
      {
          if (!$this->parser) {
              return;
          }
  
          $nodes = $this->parser->find('meta');
  
          $metas = array();
  
          foreach ($nodes as $node) {
              if ($node->hasAttribute('name')) {
                  $metas[ $node->getAttribute('name') ] = $node->getAttribute('content');
              } elseif ($node->hasAttribute('property')) {
                  $metas[ $node->getAttribute('property') ] = $node->getAttribute('content');
              }
          }
  
          return $metas;
      }
code_tokens: public function getPageMetas ( ) { if ( ! $ this -> parser ) { return ; } $ nodes = $ this -> parser -> find ( 'meta' ) ; $ metas = array ( ) ; foreach ( $ nodes as $ node ) { if ( $ node -> hasAttribute ( 'name' ) ) { $ metas [ $ node -> getAttribute ( 'name' ) ] = $ node -> getAttribute ( 'content' ) ; } elseif ( $ node -> hasAttribute ( 'property' ) ) { $ metas [ $ node -> getAttribute ( 'property' ) ] = $ node -> getAttribute ( 'content' ) ; } } return $ metas ; }
docstring: Get meta description
  
  @return array metas
docstring_tokens: Get meta description