lightspeeddevelopment/lsx-health-plan

View on GitHub
classes/integrations/woocommerce/class-account.php

Summary

Maintainability
A
1 hr
Test Coverage

Showing 1 of 1 total issue

Function lsx_profile_photo_field_filter has a Cognitive Complexity of 31 (exceeds 25 allowed). Consider refactoring.
Open

public function lsx_profile_photo_field_filter( $field, $key, $args, $value ) {
if ( 'profile_photo' === $args['id'] ) {
 
if ( $args['required'] ) {
$args['class'][] = 'validate-required';
Severity: Minor
Found in classes/integrations/woocommerce/class-account.php - About 1 hr to fix
Category
Status