lightspeeddevelopment/lsx-health-plan

View on GitHub
includes/functions.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Function get_downloads has a Cognitive Complexity of 34 (exceeds 25 allowed). Consider refactoring.
Open

function get_downloads( $type = 'all', $post_id = '' ) {
$lsx_health_plan = \lsx_health_plan();
$post_types = $lsx_health_plan->get_post_types();
if ( '' === $post_id ) {
$post_id = get_the_ID();
Severity: Minor
Found in includes/functions.php - About 1 hr to fix
Category
Status