Skip to content

Commit be4e535

Browse files
committed
Run php cs fixer and rector
1 parent 7ea9c41 commit be4e535

14 files changed

+4
-27
lines changed

classes/controllers/FrmSMTPController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ protected function get_phpmailer() {
420420
$phpmailer = new PHPMailer( true ); // phpcs:ignore
421421
}
422422

423-
424423
return $phpmailer;
425424
}
426425

classes/helpers/FrmAppHelper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,6 @@ public static function get_param( $param, $default = '', $src = 'get', $sanitize
773773
$value = $value[ $p ] ?? $default;
774774
}
775775

776-
777776
return $value;
778777
}
779778

@@ -2758,7 +2757,6 @@ private static function maybe_truncate_key_before_appending( $column, $key ) {
27582757
}
27592758
}
27602759

2761-
27622760
return $key;
27632761
}
27642762

classes/helpers/FrmEmailSummaryHelper.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ private static function get_options() {
7878

7979
self::save_options( $default_options );
8080
return $default_options;
81-
82-
83-
return $options;
8481
}
8582

8683
/**

classes/helpers/FrmEntriesHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ public static function value_is_posted( $field, $args ) {
163163
$value_is_posted = true;
164164
}
165165

166-
167166
return $value_is_posted;
168167
}
169168

classes/helpers/FrmFormsHelper.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,10 +1364,7 @@ public static function format_link_html( $link_details, $length = 'label' ) {
13641364
$link .= ' aria-label="' . esc_attr( $link_details['label'] ) . '"';
13651365
}
13661366

1367-
$link .= '>' . $label . '</a>';
1368-
1369-
1370-
return $link;
1367+
return $link . ('>' . $label . '</a>');
13711368
}
13721369

13731370
/**

classes/models/FrmDb.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,11 +495,9 @@ private static function generate_query_string_from_pieces( $columns, $table, $wh
495495
}
496496

497497
self::get_where_clause_and_values( $where );
498-
global $wpdb;
499-
$query = $wpdb->prepare( $query . $where['where'] . ' ' . implode( ' ', $args ), $where['values'] ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
500-
498+
global $wpdb; // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
501499

502-
return $query;
500+
return $wpdb->prepare( $query . $where['where'] . ' ' . implode( ' ', $args ), $where['values'] );
503501
}
504502

505503
/**

classes/models/FrmEntryFormatter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,6 @@ protected function strip_html( $value ) {
985985
$value = strip_tags( $value );
986986
}
987987

988-
989988
return $value;
990989
}
991990
}

classes/models/FrmForm.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,6 @@ public static function destroy( $id ) {
744744
do_action( 'frm_destroy_form', $id );
745745
do_action( 'frm_destroy_form_' . $id );
746746

747-
748747
return $query_results;
749748
}
750749

classes/models/FrmFormAction.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,6 @@ public function migrate_to_2( $form, $update = 'update' ) {
950950
$wpdb->update( $wpdb->prefix . 'frm_forms', array( 'options' => $form->options ), array( 'id' => $form->id ) );
951951
FrmForm::clear_form_cache();
952952

953-
954953
return $post_id;
955954
}
956955

classes/models/FrmFormApi.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ public function get_error_from_response( $addons = array() ) {
427427

428428
do_action( 'frm_license_error', $addons['error'] );
429429

430-
431430
return $errors;
432431
}
433432

0 commit comments

Comments
 (0)