gocodebox/lifterlms

View on GitHub
includes/models/model.llms.user.certificate.php

Summary

Maintainability
C
1 day
Test Coverage
A
93%

LLMS_User_Certificate has 23 functions (exceeds 20 allowed). Consider refactoring.
Open

class LLMS_User_Certificate extends LLMS_Abstract_User_Engagement {

    /**
     * Database (WP) post type name
     *
Severity: Minor
Found in includes/models/model.llms.user.certificate.php - About 2 hrs to fix

    File model.llms.user.certificate.php has 263 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * LLMS_User_Certificate model class
     *
     * @package LifterLMS/Models/Classes
    Severity: Minor
    Found in includes/models/model.llms.user.certificate.php - About 2 hrs to fix

      Method get_merge_data has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected function get_merge_data() {
      
              $template_id   = $this->get( 'parent' );
              $user_id       = $this->get_user_id();
              $related_id    = $this->get( 'related' );
      Severity: Minor
      Found in includes/models/model.llms.user.certificate.php - About 1 hr to fix

        Method merge_content has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function merge_content( $content = null, $load_reusable_blocks = false ) {
        
                $content = parent::merge_content( $content, $load_reusable_blocks );
        
                // Merge.
        Severity: Minor
        Found in includes/models/model.llms.user.certificate.php - About 1 hr to fix

          Method get_custom_fonts has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function get_custom_fonts( $blocks = null ) {
          
                  $fonts = array();
          
                  $blocks = is_null( $blocks ) ? parse_blocks( $this->get( 'content', true ) ) : $blocks;
          Severity: Minor
          Found in includes/models/model.llms.user.certificate.php - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status