diff --git a/plugins/optimization-detective/class-optimization-detective-debug-tag-visitor.php b/plugins/optimization-detective/class-optimization-detective-debug-tag-visitor.php index 143942654..a86b1edff 100644 --- a/plugins/optimization-detective/class-optimization-detective-debug-tag-visitor.php +++ b/plugins/optimization-detective/class-optimization-detective-debug-tag-visitor.php @@ -40,9 +40,6 @@ public function __invoke( OD_Tag_Visitor_Context $context ): bool { $xpath = $processor->get_xpath(); - /** - * @var OD_URL_Metric_Group $group - */ foreach ( $context->url_metric_group_collection as $group ) { // This is the LCP element for this group. if ( $group->get_lcp_element() instanceof OD_Element && $xpath === $group->get_lcp_element()->get_xpath() ) { diff --git a/plugins/optimization-detective/debug.php b/plugins/optimization-detective/debug.php index 39d6866be..05fd4c36a 100644 --- a/plugins/optimization-detective/debug.php +++ b/plugins/optimization-detective/debug.php @@ -121,13 +121,7 @@ function od_debug_add_assets(): void { $inp_dots = array(); - /** - * @var OD_URL_Metric_Group $group - */ foreach ( $group_collection as $group ) { - /** - * @var OD_URL_Metric $url_metric - */ foreach ( $group as $url_metric ) { foreach ( $url_metric->get( 'inpData' ) as $inp_data ) { if ( isset( $inp_dots[ $inp_data['interactionTarget'] ] ) ) {