Completed
Pull Request — master (#183)
by Stephanie
02:29
created
classes/models/FrmSolution.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,8 @@
 block discarded – undo
125 125
 		}
126 126
 
127 127
 		// Only do this for single site installs.
128
-		if ( isset( $_GET['activate-multi'] ) || is_network_admin() ) { // WPCS: CSRF ok.
128
+		if ( isset( $_GET['activate-multi'] ) || is_network_admin() ) {
129
+// WPCS: CSRF ok.
129 130
 			return;
130 131
 		}
131 132
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -266,9 +266,9 @@  discard block
 block discarded – undo
266 266
 			// Set the current step.
267 267
 			if ( ! isset( $step['current'] ) ) {
268 268
 				if ( $step['complete'] ) {
269
-					$steps[ $k ]['current'] = false;
269
+					$steps[$k]['current'] = false;
270 270
 				} else {
271
-					$steps[ $k ]['current'] = ! $has_current;
271
+					$steps[$k]['current'] = ! $has_current;
272 272
 					$has_current = true;
273 273
 				}
274 274
 			} elseif ( $step['current'] ) {
@@ -278,10 +278,10 @@  discard block
 block discarded – undo
278 278
 			// Set disabled buttons.
279 279
 			$class = isset( $step['button_class'] ) ? $step['button_class'] : '';
280 280
 			$class .= ' button-primary frm-button-primary';
281
-			if ( ! $steps[ $k ]['current'] ) {
281
+			if ( ! $steps[$k]['current'] ) {
282 282
 				$class .= ' grey disabled';
283 283
 			}
284
-			$steps[ $k ]['button_class'] = $class;
284
+			$steps[$k]['button_class'] = $class;
285 285
 		}
286 286
 
287 287
 		return $steps;
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 			if ( $plugin['status'] === 'active' ) {
304 304
 				continue;
305 305
 			}
306
-			$links[ $plugin_key ] = $plugin;
306
+			$links[$plugin_key] = $plugin;
307 307
 			if ( isset( $plugin['url'] ) ) {
308 308
 				$rel[] = $plugin['url'];
309 309
 			} else {
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
 		$addons = $api->get_api_info();
411 411
 
412 412
 		$id = $this->download_id();
413
-		$has_file = isset( $addons[ $id ] ) && isset( $addons[ $id ]['beta'] );
413
+		$has_file = isset( $addons[$id] ) && isset( $addons[$id]['beta'] );
414 414
 
415 415
 		if ( ! $step['current'] ) {
416 416
 			?>
@@ -425,10 +425,10 @@  discard block
 block discarded – undo
425 425
 
426 426
 		if ( ! $has_file ) {
427 427
 			echo '<p class="frm_error_style">' . esc_html__( 'Files not found.', 'formidable' ) . '</p>';
428
-		} elseif ( ! isset( $addons[ $id ]['beta']['package'] ) ) {
428
+		} elseif ( ! isset( $addons[$id]['beta']['package'] ) ) {
429 429
 			echo '<p class="frm_error_style">' . esc_html__( 'Looks like you may not have a current subscription for this solution. Please check your account.', 'formidable' ) . '</p>';
430 430
 		} else {
431
-			$xml = $addons[ $id ]['beta']['package'];
431
+			$xml = $addons[$id]['beta']['package'];
432 432
 			?>
433 433
 			<form name="frm-new-template" id="frm-new-template" method="post" class="field-group">
434 434
 				<input type="hidden" name="link" id="frm_link" value="<?php echo esc_attr( $xml ); ?>" />
Please login to merge, or discard this patch.