Completed
Pull Request — master (#2042)
by
unknown
43s
created
classes/models/FrmInstallPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 		// Get posted data.
83 83
 		$plugin_slug = FrmAppHelper::get_post_param( 'plugin', '', 'sanitize_text_field' );
84 84
 
85
-		if ( ! empty( get_plugins()[ $plugin_slug ] ) ) {
85
+		if ( ! empty( get_plugins()[$plugin_slug] ) ) {
86 86
 			$activate = activate_plugin( $plugin_slug );
87 87
 		} else {
88 88
 			// Include necessary files for plugin installation.
@@ -163,6 +163,6 @@  discard block
 block discarded – undo
163 163
 	 * @return bool
164 164
 	 */
165 165
 	private static function is_plugin_installed( $plugin_file ) {
166
-		return isset( get_plugins()[ $plugin_file ] );
166
+		return isset( get_plugins()[$plugin_file] );
167 167
 	}
168 168
 }
Please login to merge, or discard this patch.
classes/controllers/FrmOnboardingWizardController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -368,8 +368,8 @@  discard block
 block discarded – undo
368 368
 		);
369 369
 
370 370
 		foreach ( $fields_to_update as $field => $sanitize_callback ) {
371
-			if ( isset( $_POST[ $field ] ) ) {
372
-				$usage_data[ $field ] = FrmAppHelper::get_post_param( $field, '', $sanitize_callback );
371
+			if ( isset( $_POST[$field] ) ) {
372
+				$usage_data[$field] = FrmAppHelper::get_post_param( $field, '', $sanitize_callback );
373 373
 			}
374 374
 		}
375 375
 
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
 				'is-disabled' => true,
589 589
 				'help-text'   => esc_html__( 'Customize form appearance with an intuitive styling interface.', 'formidable' ),
590 590
 			);
591
-			self::$available_addons['save-entries']  = array(
591
+			self::$available_addons['save-entries'] = array(
592 592
 				'title'       => esc_html__( 'Save Entries', 'formidable' ),
593 593
 				'is-checked'  => true,
594 594
 				'is-disabled' => true,
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
 				if ( ! is_plugin_active( $plugin_file ) && isset( $addon['url'] ) ) {
658 658
 					$is_installed = array_key_exists( $plugin_file, $plugins );
659 659
 
660
-					self::$available_addons[ $key ] = array(
660
+					self::$available_addons[$key] = array(
661 661
 						'title'        => $data['title'],
662 662
 						'rel'          => $is_installed ? $plugin_file : $addon['url'],
663 663
 						'is-checked'   => false,
Please login to merge, or discard this patch.