gocodebox/lifterlms

View on GitHub
includes/class.llms.engagements.php

Summary

Maintainability
B
4 hrs
Test Coverage
B
82%

Method get_engagements has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function get_engagements( $trigger_type, $related_post_id = '' ) {

        global $wpdb;

        $related_select = '';
Severity: Minor
Found in includes/class.llms.engagements.php - About 1 hr to fix

    Method parse_engagement has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function parse_engagement( $engagement, $trigger_data ) {
    
            $parsed = array(
                'handler_action' => null,
                'handler_args'   => null,
    Severity: Minor
    Found in includes/class.llms.engagements.php - About 1 hr to fix

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

          private function parse_hook_find_trigger_type( $action, $related_post_id ) {
      
              $trigger_type = '';
      
              switch ( $action ) {
      Severity: Minor
      Found in includes/class.llms.engagements.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status