includes/class.llms.engagements.php
Method get_engagements
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function get_engagements( $trigger_type, $related_post_id = '' ) {
global $wpdb;
$related_select = '';
Method parse_engagement
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function parse_engagement( $engagement, $trigger_data ) {
$parsed = array(
'handler_action' => null,
'handler_args' => null,
Method parse_hook_find_trigger_type
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function parse_hook_find_trigger_type( $action, $related_post_id ) {
$trigger_type = '';
switch ( $action ) {