@@ -393,8 +393,8 @@ discard block |
||
393 | 393 | return $values; |
394 | 394 | } |
395 | 395 | |
396 | - if ( is_array( $previous_entry->metas ) && isset( $previous_entry->metas[ $field->id ] ) ) { |
|
397 | - $values['value'] = $previous_entry->metas[ $field->id ]; |
|
396 | + if ( is_array( $previous_entry->metas ) && isset( $previous_entry->metas[$field->id] ) ) { |
|
397 | + $values['value'] = $previous_entry->metas[$field->id]; |
|
398 | 398 | } |
399 | 399 | |
400 | 400 | $frm_vars['trans_filled'] = true; |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | * @param Closure $destroy_callback |
430 | 430 | * @return void |
431 | 431 | */ |
432 | - function () use ( $entry_id, &$destroy_callback ) { |
|
432 | + function() use ( $entry_id, &$destroy_callback ) { |
|
433 | 433 | FrmEntry::destroy( $entry_id ); |
434 | 434 | // Only call this once. |
435 | 435 | remove_action( 'frm_entry_form', $destroy_callback ); |
@@ -148,7 +148,7 @@ |
||
148 | 148 | |
149 | 149 | register_deactivation_hook( |
150 | 150 | __FILE__, |
151 | - function () { |
|
151 | + function() { |
|
152 | 152 | if ( ! class_exists( 'FrmCronController', false ) ) { |
153 | 153 | require_once __DIR__ . '/classes/controllers/FrmCronController.php'; |
154 | 154 | } |
@@ -149,7 +149,7 @@ |
||
149 | 149 | 'form' => $entry->form_id, |
150 | 150 | 'value' => $action->post_content['description'], |
151 | 151 | ); |
152 | - $new_values = array( 'description' => FrmTransLiteAppHelper::process_shortcodes( $shortcode_atts ) ); |
|
152 | + $new_values = array( 'description' => FrmTransLiteAppHelper::process_shortcodes( $shortcode_atts ) ); |
|
153 | 153 | FrmStrpLiteAppHelper::call_stripe_helper_class( 'update_intent', $intent->id, $new_values ); |
154 | 154 | } |
155 | 155 |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | 'payments' => $frm_payment->get_count(), |
118 | 118 | 'subscriptions' => $frm_sub->get_count(), |
119 | 119 | ); |
120 | - $type = FrmAppHelper::get_simple_request( |
|
120 | + $type = FrmAppHelper::get_simple_request( |
|
121 | 121 | array( |
122 | 122 | 'param' => 'trans_type', |
123 | 123 | 'type' => 'request', |
@@ -132,10 +132,10 @@ discard block |
||
132 | 132 | $class = ''; |
133 | 133 | } |
134 | 134 | |
135 | - if ( $counts[ $status ] || 'published' === $status ) { |
|
136 | - $links[ $status ] = '<a href="' . esc_url( '?page=formidable-payments&trans_type=' . $status ) . '" ' . $class . '>' |
|
135 | + if ( $counts[$status] || 'published' === $status ) { |
|
136 | + $links[$status] = '<a href="' . esc_url( '?page=formidable-payments&trans_type=' . $status ) . '" ' . $class . '>' |
|
137 | 137 | // translators: %1$s: Transaction type (Payments or Subscriptions), %2$s: Span start tag, %3$s: Count, %3$s: Span close tag. |
138 | - . sprintf( esc_html__( '%1$s %2$s(%3$s)%4$s', 'formidable' ), esc_html( $name ), '<span class="count">', number_format_i18n( $counts[ $status ] ), '</span>' ) |
|
138 | + . sprintf( esc_html__( '%1$s %2$s(%3$s)%4$s', 'formidable' ), esc_html( $name ), '<span class="count">', number_format_i18n( $counts[$status] ), '</span>' ) |
|
139 | 139 | . '</a>'; |
140 | 140 | } |
141 | 141 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | echo '<tr id="payment-' . esc_attr( $item->id ) . '" '; |
213 | 213 | |
214 | 214 | $is_alternate = 0 === $alt % 2; |
215 | - ++$alt; |
|
215 | + ++ $alt; |
|
216 | 216 | |
217 | 217 | if ( $is_alternate ) { |
218 | 218 | echo 'class="alternate"'; |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | |
304 | 304 | $form_ids = array(); |
305 | 305 | foreach ( $forms as $form ) { |
306 | - $form_ids[ $form->id ] = $form; |
|
306 | + $form_ids[$form->id] = $form; |
|
307 | 307 | unset( $form ); |
308 | 308 | } |
309 | 309 | |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | 'href' => esc_url( $link ), |
355 | 355 | 'title' => __( 'View', 'formidable' ), |
356 | 356 | ); |
357 | - $link = '<a ' . FrmAppHelper::array_to_html_params( $link_params ) . '>' |
|
357 | + $link = '<a ' . FrmAppHelper::array_to_html_params( $link_params ) . '>' |
|
358 | 358 | . $item->{$field} |
359 | 359 | . '</a>'; |
360 | 360 | |
@@ -409,8 +409,8 @@ discard block |
||
409 | 409 | * @return mixed |
410 | 410 | */ |
411 | 411 | private function get_form_id_column( $item, $atts ) { |
412 | - if ( isset( $atts['form_ids'][ $item->item_id ] ) ) { |
|
413 | - $form_link = FrmFormsHelper::edit_form_link( $atts['form_ids'][ $item->item_id ]->form_id ); |
|
412 | + if ( isset( $atts['form_ids'][$item->item_id] ) ) { |
|
413 | + $form_link = FrmFormsHelper::edit_form_link( $atts['form_ids'][$item->item_id]->form_id ); |
|
414 | 414 | return $form_link; |
415 | 415 | } |
416 | 416 | |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | |
467 | 467 | foreach ( $completed_payments as $completed_payment ) { |
468 | 468 | if ( $completed_payment->status === 'complete' ) { |
469 | - ++$count; |
|
469 | + ++ $count; |
|
470 | 470 | } |
471 | 471 | } |
472 | 472 | |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | */ |
492 | 492 | private function get_processing_tooltip() { |
493 | 493 | return FrmAppHelper::clip( |
494 | - function () { |
|
494 | + function() { |
|
495 | 495 | $params = array( |
496 | 496 | 'class' => 'frm_help frm_icon_font frm_tooltip_icon', |
497 | 497 | 'title' => __( 'This payment method may take between 4-5 business days to process.', 'formidable' ), |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $intent_is_processing = 'processing' === $intent->status; |
58 | 58 | if ( $intent_is_processing ) { |
59 | 59 | // Append an additional processing message to the end of the success message. |
60 | - $filter = function ( $message ) { |
|
60 | + $filter = function( $message ) { |
|
61 | 61 | $stripe_settings = FrmStrpLiteAppHelper::get_settings(); |
62 | 62 | $message .= '<p>' . esc_html( $stripe_settings->settings->processing_message ) . '</p>'; |
63 | 63 | return $message; |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | $atts['form'] = FrmForm::getOne( $atts['entry']->form_id ); |
162 | 162 | $atts['entry_id'] = $atts['entry']->id; |
163 | 163 | $opt = 'success_action'; |
164 | - $atts['conf_method'] = ! empty( $atts['form']->options[ $opt ] ) ? $atts['form']->options[ $opt ] : 'message'; |
|
164 | + $atts['conf_method'] = ! empty( $atts['form']->options[$opt] ) ? $atts['form']->options[$opt] : 'message'; |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
@@ -238,10 +238,10 @@ discard block |
||
238 | 238 | */ |
239 | 239 | public static function get_payment_intents( $name ) { |
240 | 240 | // phpcs:ignore WordPress.Security.NonceVerification.Missing |
241 | - if ( ! isset( $_POST[ $name ] ) ) { |
|
241 | + if ( ! isset( $_POST[$name] ) ) { |
|
242 | 242 | return array(); |
243 | 243 | } |
244 | - $intents = $_POST[ $name ]; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
244 | + $intents = $_POST[$name]; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification.Missing |
|
245 | 245 | FrmAppHelper::sanitize_value( 'sanitize_text_field', $intents ); |
246 | 246 | return $intents; |
247 | 247 | } |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | self::format_form_data( $form ); |
269 | 269 | |
270 | 270 | $form_id = absint( $form['form_id'] ); |
271 | - $intents = isset( $form[ 'frmintent' . $form_id ] ) ? $form[ 'frmintent' . $form_id ] : array(); |
|
271 | + $intents = isset( $form['frmintent' . $form_id] ) ? $form['frmintent' . $form_id] : array(); |
|
272 | 272 | |
273 | 273 | if ( empty( $intents ) ) { |
274 | 274 | wp_die(); |
@@ -278,8 +278,8 @@ discard block |
||
278 | 278 | $intents = array( $intents ); |
279 | 279 | } else { |
280 | 280 | foreach ( $intents as $k => $intent ) { |
281 | - if ( is_array( $intent ) && isset( $intent[ $k ] ) ) { |
|
282 | - $intents[ $k ] = $intent[ $k ]; |
|
281 | + if ( is_array( $intent ) && isset( $intent[$k] ) ) { |
|
282 | + $intents[$k] = $intent[$k]; |
|
283 | 283 | } |
284 | 284 | } |
285 | 285 | } |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | if ( $saved->metadata->action != $action->ID ) { |
333 | 333 | continue; |
334 | 334 | } |
335 | - $intents[ $k ] = array( |
|
335 | + $intents[$k] = array( |
|
336 | 336 | 'id' => $intent, |
337 | 337 | 'action' => $action->ID, |
338 | 338 | ); |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | if ( $k === 'item_meta' ) { |
376 | 376 | foreach ( $v as $f => $value ) { |
377 | 377 | FrmAppHelper::sanitize_value( 'wp_kses_post', $value ); |
378 | - $entry->metas[ absint( $f ) ] = $value; |
|
378 | + $entry->metas[absint( $f )] = $value; |
|
379 | 379 | } |
380 | 380 | } else { |
381 | 381 | FrmAppHelper::sanitize_value( 'wp_kses_post', $v ); |
@@ -399,14 +399,14 @@ discard block |
||
399 | 399 | |
400 | 400 | foreach ( $form as $input ) { |
401 | 401 | $key = $input['name']; |
402 | - if ( isset( $formatted[ $key ] ) ) { |
|
403 | - if ( is_array( $formatted[ $key ] ) ) { |
|
404 | - $formatted[ $key ][] = $input['value']; |
|
402 | + if ( isset( $formatted[$key] ) ) { |
|
403 | + if ( is_array( $formatted[$key] ) ) { |
|
404 | + $formatted[$key][] = $input['value']; |
|
405 | 405 | } else { |
406 | - $formatted[ $key ] = array( $formatted[ $key ], $input['value'] ); |
|
406 | + $formatted[$key] = array( $formatted[$key], $input['value'] ); |
|
407 | 407 | } |
408 | 408 | } else { |
409 | - $formatted[ $key ] = $input['value']; |
|
409 | + $formatted[$key] = $input['value']; |
|
410 | 410 | } |
411 | 411 | } |
412 | 412 | |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | |
550 | 550 | foreach ( $actions as $k => $action ) { |
551 | 551 | $amount = self::get_amount_before_submit( compact( 'action', 'form' ) ); |
552 | - $actions[ $k ]->post_content['amount'] = $amount; |
|
552 | + $actions[$k]->post_content['amount'] = $amount; |
|
553 | 553 | } |
554 | 554 | } |
555 | 555 |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | $info['url'] = $xml; |
12 | 12 | } |
13 | 13 | |
14 | - $disabled = isset( $imported[ $info['form'] ] ) ? ' disabled' : ''; |
|
14 | + $disabled = isset( $imported[$info['form']] ) ? ' disabled' : ''; |
|
15 | 15 | $url = isset( $info['url'] ) ? $info['url'] : ''; |
16 | 16 | $value = $importing === 'form' ? $info['form'] : $info['key']; |
17 | 17 | if ( ! isset( $info['img'] ) ) { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | continue; |
22 | 22 | } |
23 | 23 | |
24 | - $hide_views = $importing === 'view' && ( ( $selected && $info['form'] !== $selected ) || isset( $imported[ $info['form'] ] ) ); |
|
24 | + $hide_views = $importing === 'view' && ( ( $selected && $info['form'] !== $selected ) || isset( $imported[$info['form']] ) ); |
|
25 | 25 | ?> |
26 | 26 | <div class="frm_radio radio-inline radio frm_image_option<?php echo esc_attr( $importing === 'view' ? ' show_sub_opt show_' . $info['form'] : '' ); ?>" style="<?php echo esc_attr( $hide_views ? 'display:none' : '' ); ?>"> |
27 | 27 | <?php if ( $importing === 'form' ) { ?> |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | <?php } ?> |
42 | 42 | /> |
43 | 43 | <div class="frm_image_option_container frm_label_with_image"> |
44 | - <?php echo FrmAppHelper::kses( $info['img'], array( 'svg', 'rect', 'path' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
|
44 | + <?php echo FrmAppHelper::kses( $info['img'], array( 'svg', 'rect', 'path' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
|
45 | 45 | <span class="frm_text_label_for_image"> |
46 | 46 | <?php |
47 | 47 | if ( ! empty( $disabled ) ) { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | if ( $importing === 'form' && $disabled ) { |
57 | - echo FrmAppHelper::kses( FrmFormsHelper::edit_form_link( $imported[ $info['form'] ] ), array( 'a' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
|
57 | + echo FrmAppHelper::kses( FrmFormsHelper::edit_form_link( $imported[$info['form']] ), array( 'a' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
|
58 | 58 | } else { |
59 | 59 | echo esc_html( $info['name'] ); |
60 | 60 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $grid_helper = new FrmFieldGridHelper(); |
53 | 53 | $values['count'] = 0; |
54 | 54 | foreach ( $values['fields'] as $field ) { |
55 | - ++$values['count']; |
|
55 | + ++ $values['count']; |
|
56 | 56 | $grid_helper->set_field( $field ); |
57 | 57 | $grid_helper->maybe_begin_field_wrapper(); |
58 | 58 | FrmFieldsController::load_single_field( $field, $values ); |
@@ -328,11 +328,11 @@ discard block |
||
328 | 328 | |
329 | 329 | // Perform add or remove operation. |
330 | 330 | if ( 'add' === $operation ) { |
331 | - self::$favorite_templates[ $key ][] = $template_id; |
|
331 | + self::$favorite_templates[$key][] = $template_id; |
|
332 | 332 | } elseif ( 'remove' === $operation ) { |
333 | - $position = array_search( $template_id, self::$favorite_templates[ $key ], true ); |
|
333 | + $position = array_search( $template_id, self::$favorite_templates[$key], true ); |
|
334 | 334 | if ( $position !== false ) { |
335 | - unset( self::$favorite_templates[ $key ][ $position ] ); |
|
335 | + unset( self::$favorite_templates[$key][$position] ); |
|
336 | 336 | } |
337 | 337 | } |
338 | 338 | |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | foreach ( self::$templates as $key => &$template ) { |
462 | 462 | // Skip the template if the categories are not set. |
463 | 463 | if ( ! isset( $template['categories'] ) ) { |
464 | - unset( self::$templates[ $key ] ); |
|
464 | + unset( self::$templates[$key] ); |
|
465 | 465 | continue; |
466 | 466 | } |
467 | 467 | |
@@ -475,14 +475,12 @@ discard block |
||
475 | 475 | // Add the slug to the new array. |
476 | 476 | $template['category_slugs'][] = $category_slug; |
477 | 477 | |
478 | - if ( ! isset( self::$categories[ $category_slug ] ) ) { |
|
479 | - self::$categories[ $category_slug ] = array( |
|
478 | + if ( ! isset( self::$categories[$category_slug] ) ) { |
|
479 | + self::$categories[$category_slug] = array( |
|
480 | 480 | 'name' => $category, |
481 | 481 | 'count' => 0, |
482 | 482 | ); |
483 | - } |
|
484 | - |
|
485 | - ++self::$categories[ $category_slug ]['count']; |
|
483 | + } ++self::$categories[$category_slug]['count']; |
|
486 | 484 | } |
487 | 485 | |
488 | 486 | // Mark the template as favorite if it's in the favorite templates list. |
@@ -497,7 +495,7 @@ discard block |
||
497 | 495 | $redundant_cats = array_merge( array( 'PayPal', 'Stripe', 'Twilio' ), FrmFormsHelper::ignore_template_categories() ); |
498 | 496 | foreach ( $redundant_cats as $redundant_cat ) { |
499 | 497 | $category_slug = sanitize_title( $redundant_cat ); |
500 | - unset( self::$categories[ $category_slug ] ); |
|
498 | + unset( self::$categories[$category_slug] ); |
|
501 | 499 | } |
502 | 500 | |
503 | 501 | // Sort the categories by keys alphabetically. |
@@ -522,7 +520,7 @@ discard block |
||
522 | 520 | 'count' => 0, |
523 | 521 | ); |
524 | 522 | } |
525 | - $special_categories['all-templates'] = array( |
|
523 | + $special_categories['all-templates'] = array( |
|
526 | 524 | 'name' => __( 'All Templates', 'formidable' ), |
527 | 525 | 'count' => self::get_template_count(), |
528 | 526 | ); |
@@ -550,9 +548,9 @@ discard block |
||
550 | 548 | */ |
551 | 549 | private static function assign_featured_templates() { |
552 | 550 | foreach ( self::FEATURED_TEMPLATES_KEYS as $key ) { |
553 | - if ( isset( self::$templates[ $key ] ) ) { |
|
554 | - self::$templates[ $key ]['is_featured'] = true; |
|
555 | - self::$featured_templates[] = self::$templates[ $key ]; |
|
551 | + if ( isset( self::$templates[$key] ) ) { |
|
552 | + self::$templates[$key]['is_featured'] = true; |
|
553 | + self::$featured_templates[] = self::$templates[$key]; |
|
556 | 554 | } |
557 | 555 | } |
558 | 556 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | unset( $addons['error'] ); |
60 | 60 | } |
61 | 61 | |
62 | - $pro = array( |
|
62 | + $pro = array( |
|
63 | 63 | 'pro' => array( |
64 | 64 | 'title' => 'Formidable Forms Pro', |
65 | 65 | 'slug' => 'formidable-pro', |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | } else { |
105 | 105 | foreach ( $addons as $k => $addon ) { |
106 | 106 | if ( empty( $addon['excerpt'] ) && $k !== 'error' ) { |
107 | - unset( $addons[ $k ] ); |
|
107 | + unset( $addons[$k] ); |
|
108 | 108 | } |
109 | 109 | } |
110 | 110 | } |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | |
219 | 219 | foreach ( $list as $k => $info ) { |
220 | 220 | $info['slug'] = $k; |
221 | - $list[ $k ] = array_merge( $defaults, $info ); |
|
221 | + $list[$k] = array_merge( $defaults, $info ); |
|
222 | 222 | } |
223 | 223 | return $list; |
224 | 224 | } |
@@ -382,17 +382,17 @@ discard block |
||
382 | 382 | continue; |
383 | 383 | } |
384 | 384 | |
385 | - $wp_plugin = isset( $wp_plugins[ $folder ] ) ? $wp_plugins[ $folder ] : array(); |
|
385 | + $wp_plugin = isset( $wp_plugins[$folder] ) ? $wp_plugins[$folder] : array(); |
|
386 | 386 | $wp_version = isset( $wp_plugin['Version'] ) ? $wp_plugin['Version'] : '1.0'; |
387 | 387 | $plugin->slug = explode( '/', $folder )[0]; |
388 | 388 | |
389 | 389 | if ( version_compare( $wp_version, $plugin->new_version, '<' ) ) { |
390 | - $transient->response[ $folder ] = $plugin; |
|
390 | + $transient->response[$folder] = $plugin; |
|
391 | 391 | } else { |
392 | - $transient->no_update[ $folder ] = $plugin; |
|
392 | + $transient->no_update[$folder] = $plugin; |
|
393 | 393 | } |
394 | 394 | |
395 | - $transient->checked[ $folder ] = $wp_version; |
|
395 | + $transient->checked[$folder] = $wp_version; |
|
396 | 396 | |
397 | 397 | }//end foreach |
398 | 398 | |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | */ |
426 | 426 | protected static function is_installed( $plugin ) { |
427 | 427 | $all_plugins = self::get_plugins(); |
428 | - return isset( $all_plugins[ $plugin ] ); |
|
428 | + return isset( $all_plugins[$plugin] ); |
|
429 | 429 | } |
430 | 430 | |
431 | 431 | /** |
@@ -464,13 +464,13 @@ discard block |
||
464 | 464 | } |
465 | 465 | |
466 | 466 | $download_id = isset( $plugin['id'] ) ? $plugin['id'] : 0; |
467 | - if ( ! empty( $download_id ) && ! isset( $version_info[ $download_id ]['package'] ) ) { |
|
467 | + if ( ! empty( $download_id ) && ! isset( $version_info[$download_id]['package'] ) ) { |
|
468 | 468 | // if this addon is using its own license, get the update url |
469 | 469 | $addon_info = $api->get_api_info(); |
470 | 470 | |
471 | - $version_info[ $download_id ] = $addon_info[ $download_id ]; |
|
471 | + $version_info[$download_id] = $addon_info[$download_id]; |
|
472 | 472 | if ( isset( $addon_info['error'] ) ) { |
473 | - $version_info[ $download_id ]['error'] = array( |
|
473 | + $version_info[$download_id]['error'] = array( |
|
474 | 474 | 'message' => $addon_info['error']['message'], |
475 | 475 | 'code' => $addon_info['error']['code'], |
476 | 476 | ); |
@@ -569,8 +569,8 @@ discard block |
||
569 | 569 | return $addon; |
570 | 570 | } |
571 | 571 | } |
572 | - } elseif ( isset( $addons[ $download_id ] ) ) { |
|
573 | - $plugin = $addons[ $download_id ]; |
|
572 | + } elseif ( isset( $addons[$download_id] ) ) { |
|
573 | + $plugin = $addons[$download_id]; |
|
574 | 574 | } |
575 | 575 | |
576 | 576 | return $plugin; |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | self::prepare_addon_link( $addon['link'] ); |
635 | 635 | |
636 | 636 | self::set_addon_status( $addon ); |
637 | - $addons[ $id ] = $addon; |
|
637 | + $addons[$id] = $addon; |
|
638 | 638 | }//end foreach |
639 | 639 | } |
640 | 640 | |
@@ -675,7 +675,7 @@ discard block |
||
675 | 675 | 'utm_medium' => 'addons', |
676 | 676 | 'utm_campaign' => 'liteplugin', |
677 | 677 | ); |
678 | - $link = add_query_arg( $query_args, $link ); |
|
678 | + $link = add_query_arg( $query_args, $link ); |
|
679 | 679 | } |
680 | 680 | |
681 | 681 | /** |
@@ -1105,7 +1105,7 @@ discard block |
||
1105 | 1105 | */ |
1106 | 1106 | public static function ajax_activate_addon() { |
1107 | 1107 | self::process_addon_action( |
1108 | - function ( $plugin ) { |
|
1108 | + function( $plugin ) { |
|
1109 | 1109 | return self::handle_addon_action( $plugin, 'activate' ); |
1110 | 1110 | }, |
1111 | 1111 | array( 'FrmAddonsController', 'get_addon_activation_response' ) |
@@ -1130,7 +1130,7 @@ discard block |
||
1130 | 1130 | */ |
1131 | 1131 | public static function ajax_deactivate_addon() { |
1132 | 1132 | self::process_addon_action( |
1133 | - function ( $plugin ) { |
|
1133 | + function( $plugin ) { |
|
1134 | 1134 | return self::handle_addon_action( $plugin, 'deactivate' ); |
1135 | 1135 | } |
1136 | 1136 | ); |
@@ -1145,7 +1145,7 @@ discard block |
||
1145 | 1145 | */ |
1146 | 1146 | public static function ajax_uninstall_addon() { |
1147 | 1147 | self::process_addon_action( |
1148 | - function ( $plugin ) { |
|
1148 | + function( $plugin ) { |
|
1149 | 1149 | return self::handle_addon_action( $plugin, 'uninstall' ); |
1150 | 1150 | } |
1151 | 1151 | ); |
@@ -1542,7 +1542,7 @@ discard block |
||
1542 | 1542 | $addons = $api->get_api_info(); |
1543 | 1543 | |
1544 | 1544 | if ( is_array( $addons ) && array_key_exists( $addon_id, $addons ) ) { |
1545 | - $dates = $addons[ $addon_id ]; |
|
1545 | + $dates = $addons[$addon_id]; |
|
1546 | 1546 | $requires = FrmFormsHelper::get_plan_required( $dates ); |
1547 | 1547 | } |
1548 | 1548 |