Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
home
/
ophq1335
/
www
/
wp-content
/
plugins
/
wp-seopress
/
src
/
Services
/
ContentAnalysis
/
GetContent
/
//home/ophq1335/www/wp-content/plugins/wp-seopress/src/Services/ContentAnalysis/GetContent/Hn.php
<?php // phpcs:ignore namespace SEOPress\Services\ContentAnalysis\GetContent; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Hn */ class Hn { /** * The getDataByXPath function. * * @param object $xpath The xpath. * @param array $options The options. * * @return array */ public function getDataByXPath( $xpath, $options ) { // phpcs:ignore -- TODO: check if method is outside this class before renaming. $data = array(); if ( ! isset( $options['hn'] ) ) { return $data; } $items = $xpath->query( sprintf( '//%s', $options['hn'] ) ); foreach ( $items as $key => $item ) { $data[] = $item->nodeValue; // phpcs:ignore -- TODO: check if property is outside this class before renaming. } return $data; } }