@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | 'payments' => $frm_payment->get_count(), |
| 124 | 124 | 'subscriptions' => $frm_sub->get_count(), |
| 125 | 125 | ); |
| 126 | - $type = FrmAppHelper::get_simple_request( |
|
| 126 | + $type = FrmAppHelper::get_simple_request( |
|
| 127 | 127 | array( |
| 128 | 128 | 'param' => 'trans_type', |
| 129 | 129 | 'type' => 'request', |
@@ -138,10 +138,10 @@ discard block |
||
| 138 | 138 | $class = ''; |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - if ( $counts[ $status ] || 'published' === $status ) { |
|
| 142 | - $links[ $status ] = '<a href="' . esc_url( '?page=formidable-payments&trans_type=' . $status ) . '" ' . $class . '>' |
|
| 141 | + if ( $counts[$status] || 'published' === $status ) { |
|
| 142 | + $links[$status] = '<a href="' . esc_url( '?page=formidable-payments&trans_type=' . $status ) . '" ' . $class . '>' |
|
| 143 | 143 | // translators: %1$s: Transaction type (Payments or Subscriptions), %2$s: Span start tag, %3$s: Count, %4$s: Span close tag. |
| 144 | - . sprintf( esc_html__( '%1$s %2$s(%3$s)%4$s', 'formidable' ), esc_html( $name ), '<span class="count">', number_format_i18n( $counts[ $status ] ), '</span>' ) |
|
| 144 | + . sprintf( esc_html__( '%1$s %2$s(%3$s)%4$s', 'formidable' ), esc_html( $name ), '<span class="count">', number_format_i18n( $counts[$status] ), '</span>' ) |
|
| 145 | 145 | . '</a>'; |
| 146 | 146 | } |
| 147 | 147 | |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | echo '<tr id="payment-' . esc_attr( $item->id ) . '" '; |
| 219 | 219 | |
| 220 | 220 | $is_alternate = 0 === $alt % 2; |
| 221 | - ++$alt; |
|
| 221 | + ++ $alt; |
|
| 222 | 222 | |
| 223 | 223 | if ( $is_alternate ) { |
| 224 | 224 | echo 'class="alternate"'; |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | |
| 310 | 310 | $form_ids = array(); |
| 311 | 311 | foreach ( $forms as $form ) { |
| 312 | - $form_ids[ $form->id ] = $form; |
|
| 312 | + $form_ids[$form->id] = $form; |
|
| 313 | 313 | unset( $form ); |
| 314 | 314 | } |
| 315 | 315 | |
@@ -448,8 +448,8 @@ discard block |
||
| 448 | 448 | * @return mixed |
| 449 | 449 | */ |
| 450 | 450 | private function get_form_id_column( $item, $atts ) { |
| 451 | - if ( isset( $atts['form_ids'][ $item->item_id ] ) ) { |
|
| 452 | - $form_link = FrmFormsHelper::edit_form_link( $atts['form_ids'][ $item->item_id ]->form_id ); |
|
| 451 | + if ( isset( $atts['form_ids'][$item->item_id] ) ) { |
|
| 452 | + $form_link = FrmFormsHelper::edit_form_link( $atts['form_ids'][$item->item_id]->form_id ); |
|
| 453 | 453 | return $form_link; |
| 454 | 454 | } |
| 455 | 455 | |
@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | */ |
| 525 | 525 | private function get_processing_tooltip() { |
| 526 | 526 | return FrmAppHelper::clip( |
| 527 | - function () { |
|
| 527 | + function() { |
|
| 528 | 528 | FrmAppHelper::tooltip_icon( __( 'This payment method may take between 4-5 business days to process.', 'formidable' ) ); |
| 529 | 529 | } |
| 530 | 530 | ); |
@@ -28,8 +28,11 @@ |
||
| 28 | 28 | <div class="<?php echo esc_attr( $classes ); ?>"> |
| 29 | 29 | <?php if ( $is_active ) : ?> |
| 30 | 30 | <?php echo esc_html( $details['label'] ); ?> |
| 31 | - <?php else : ?> |
|
| 32 | - <a href="<?php echo esc_url( $details['url'] ); ?>"> |
|
| 31 | + <?php else { |
|
| 32 | + : ?> |
|
| 33 | + <a href="<?php echo esc_url( $details['url'] ); |
|
| 34 | +} |
|
| 35 | +?>"> |
|
| 33 | 36 | <?php echo esc_html( $details['label'] ); ?> |
| 34 | 37 | </a> |
| 35 | 38 | <?php endif; ?> |