lightspeeddevelopment/lsx-health-plan

View on GitHub
templates/partials/workout-grid.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 1 of 1 total issue

Identical blocks of code found in 2 locations. Consider refactoring.
Open

if ( ( '' !== $alt_title ) || ( '' !== $alt_description ) || ( '' !== $alt_image ) ) {
$link_html = '<a class="alt-modal" data-toggle="modal" href="#workout-alt-exercise-modal-' . $group['connected_exercises'] . '">';
$link_close = '</a>';
// We call the button to register the alt modal, but we do not output it.
lsx_health_plan_workout_exercise_alt_button( $group['connected_exercises'], $group, false, $modal_args, $alt_title, $alt_description, $alt_image );
Severity: Major
Found in templates/partials/workout-grid.php and 1 other location - About 2 hrs to fix
templates/partials/workout-list.php on lines 82..92

There are no issues that match your filters.

Category
Status