Completed
Push — master ( a1f0e2...210fe1 )
by Stephanie
27s queued 10s
created
classes/controllers/FrmAppController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@
 block discarded – undo
283 283
 				'content' => 'upgrade',
284 284
 			)
285 285
 		);
286
-		$renew_link       = FrmAppHelper::admin_upgrade_link(
286
+		$renew_link = FrmAppHelper::admin_upgrade_link(
287 287
 			array(
288 288
 				'medium'  => 'new-template',
289 289
 				'content' => 'renew',
Please login to merge, or discard this patch.
classes/models/FrmFormTemplateApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 
6 6
 class FrmFormTemplateApi extends FrmFormApi {
7 7
 
8
-	protected static $code_option_name  = 'frm_free_license_code';
8
+	protected static $code_option_name = 'frm_free_license_code';
9 9
 
10 10
 	private static $base_api_url = 'https://formidableforms.com/wp-json/form-templates/v1/';
11 11
 
Please login to merge, or discard this patch.
classes/controllers/FrmAddonsController.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 		} else {
75 75
 			foreach ( $addons as $k => $addon ) {
76 76
 				if ( empty( $addon['excerpt'] ) && $k !== 'error' ) {
77
-					unset( $addons[ $k ] );
77
+					unset( $addons[$k] );
78 78
 				}
79 79
 			}
80 80
 		}
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
 		foreach ( $list as $k => $info ) {
172 172
 			$info['slug'] = $k;
173
-			$list[ $k ]   = array_merge( $defaults, $info );
173
+			$list[$k]   = array_merge( $defaults, $info );
174 174
 		}
175 175
 		return $list;
176 176
 	}
@@ -349,16 +349,16 @@  discard block
 block discarded – undo
349 349
 				continue;
350 350
 			}
351 351
 
352
-			$wp_plugin  = isset( $wp_plugins[ $folder ] ) ? $wp_plugins[ $folder ] : array();
352
+			$wp_plugin  = isset( $wp_plugins[$folder] ) ? $wp_plugins[$folder] : array();
353 353
 			$wp_version = isset( $wp_plugin['Version'] ) ? $wp_plugin['Version'] : '1.0';
354 354
 
355 355
 			if ( version_compare( $wp_version, $plugin->new_version, '<' ) ) {
356 356
 				$slug                           = explode( '/', $folder );
357 357
 				$plugin->slug                   = $slug[0];
358
-				$transient->response[ $folder ] = $plugin;
358
+				$transient->response[$folder] = $plugin;
359 359
 			}
360 360
 
361
-			$transient->checked[ $folder ] = $wp_version;
361
+			$transient->checked[$folder] = $wp_version;
362 362
 
363 363
 		}
364 364
 
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 
382 382
 		$all_plugins = get_plugins();
383 383
 
384
-		return isset( $all_plugins[ $plugin ] );
384
+		return isset( $all_plugins[$plugin] );
385 385
 	}
386 386
 
387 387
 	/**
@@ -420,13 +420,13 @@  discard block
 block discarded – undo
420 420
 			}
421 421
 
422 422
 			$download_id = isset( $plugin['id'] ) ? $plugin['id'] : 0;
423
-			if ( ! empty( $download_id ) && ! isset( $version_info[ $download_id ]['package'] ) ) {
423
+			if ( ! empty( $download_id ) && ! isset( $version_info[$download_id]['package'] ) ) {
424 424
 				// if this addon is using its own license, get the update url
425 425
 				$addon_info = $api->get_api_info();
426 426
 
427
-				$version_info[ $download_id ] = $addon_info[ $download_id ];
427
+				$version_info[$download_id] = $addon_info[$download_id];
428 428
 				if ( isset( $addon_info['error'] ) ) {
429
-					$version_info[ $download_id ]['error'] = array(
429
+					$version_info[$download_id]['error'] = array(
430 430
 						'message' => $addon_info['error']['message'],
431 431
 						'code'    => $addon_info['error']['code'],
432 432
 					);
@@ -520,8 +520,8 @@  discard block
 block discarded – undo
520 520
 					return $addon;
521 521
 				}
522 522
 			}
523
-		} elseif ( isset( $addons[ $download_id ] ) ) {
524
-			$plugin = $addons[ $download_id ];
523
+		} elseif ( isset( $addons[$download_id] ) ) {
524
+			$plugin = $addons[$download_id];
525 525
 		}
526 526
 
527 527
 		return $plugin;
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
 			self::prepare_addon_link( $addon['link'] );
576 576
 
577 577
 			self::set_addon_status( $addon );
578
-			$addons[ $id ] = $addon;
578
+			$addons[$id] = $addon;
579 579
 		}
580 580
 	}
581 581
 
@@ -593,7 +593,7 @@  discard block
 block discarded – undo
593 593
 			'utm_medium'   => 'addons',
594 594
 			'utm_campaign' => 'liteplugin',
595 595
 		);
596
-		$link       = add_query_arg( $query_args, $link );
596
+		$link = add_query_arg( $query_args, $link );
597 597
 	}
598 598
 
599 599
 	/**
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -564,6 +564,7 @@  discard block
 block discarded – undo
564 564
 
565 565
 	/**
566 566
 	 * @since 3.04.02
567
+	 * @param string $link
567 568
 	 */
568 569
 	protected static function prepare_addon_link( &$link ) {
569 570
 		$site_url = 'https://formidableforms.com/';
@@ -1100,10 +1101,6 @@  discard block
 block discarded – undo
1100 1101
 	 * Render a conditional action button for an add on
1101 1102
 	 *
1102 1103
 	 * @since 4.09.01
1103
-	 * @param array $addon
1104
-	 * @param string|false $license_type
1105
-	 * @param string $plan_required
1106
-	 * @param string $upgrade_link
1107 1104
 	 */
1108 1105
 	public static function show_conditional_action_button( $atts ) {
1109 1106
 		if ( is_callable( 'FrmProAddonsController::show_conditional_action_button' ) ) {
Please login to merge, or discard this patch.