includes/class-llms-rest-fields.php
Method get_fields_for_certificates
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function get_fields_for_certificates() {
return array(
'size' => array(
'description' => __( 'Certificate size.', 'lifterlms' ),
Method register_fields_for_certificate_templates
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function register_fields_for_certificate_templates() {
register_rest_field(
'llms_certificate',
'certificate_title',
Avoid too many return
statements within this method. Open
Open
return $cert ? $cert->set( 'sequential_id', $value ) : null;