includes/models/model.llms.user.certificate.php
LLMS_User_Certificate
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class LLMS_User_Certificate extends LLMS_Abstract_User_Engagement {
/**
* Database (WP) post type name
*
File model.llms.user.certificate.php
has 263 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* LLMS_User_Certificate model class
*
* @package LifterLMS/Models/Classes
Method get_merge_data
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_merge_data() {
$template_id = $this->get( 'parent' );
$user_id = $this->get_user_id();
$related_id = $this->get( 'related' );
Method merge_content
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function merge_content( $content = null, $load_reusable_blocks = false ) {
$content = parent::merge_content( $content, $load_reusable_blocks );
// Merge.
Method get_custom_fonts
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function get_custom_fonts( $blocks = null ) {
$fonts = array();
$blocks = is_null( $blocks ) ? parse_blocks( $this->get( 'content', true ) ) : $blocks;