Completed
Push — master ( 524ea0...3594e3 )
by Stephanie
03:55
created
classes/models/FrmAddon.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,15 +33,15 @@  discard block
 block discarded – undo
33 33
 	}
34 34
 
35 35
 	public function insert_installed_addon( $plugins ) {
36
-		$plugins[ $this->plugin_slug ] = $this;
36
+		$plugins[$this->plugin_slug] = $this;
37 37
 		return $plugins;
38 38
 	}
39 39
 
40 40
 	public static function get_addon( $plugin_slug ) {
41 41
 		$plugins = apply_filters( 'frm_installed_addons', array() );
42 42
 		$plugin = false;
43
-		if ( isset( $plugins[ $plugin_slug ] ) ) {
44
-			$plugin = $plugins[ $plugin_slug ];
43
+		if ( isset( $plugins[$plugin_slug] ) ) {
44
+			$plugin = $plugins[$plugin_slug];
45 45
 		}
46 46
 		return $plugin;
47 47
 	}
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		if ( empty( $license ) ) {
55 55
 			add_action( 'after_plugin_row_' . plugin_basename( $this->plugin_file ), array( $this, 'show_license_message' ), 10, 2 );
56 56
 		} else {
57
-			if ( ! class_exists('EDD_SL_Plugin_Updater') ) {
57
+			if ( ! class_exists( 'EDD_SL_Plugin_Updater' ) ) {
58 58
 				include( dirname( __FILE__ ) . '/EDD_SL_Plugin_Updater.php' );
59 59
 			}
60 60
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	public function show_license_message( $file, $plugin ) {
76 76
 		$wp_list_table = _get_list_table( 'WP_Plugins_List_Table' );
77 77
 		echo '<tr class="plugin-update-tr active"><td colspan="' . esc_attr( $wp_list_table->get_column_count() ) . '" class="plugin-update colspanchange"><div class="update-message">';
78
-		echo sprintf( __( 'Your %1$s license key is missing. Please add it on the %2$slicenses page%3$s.', 'formidable' ), $this->plugin_name, '<a href="' . esc_url( admin_url('admin.php?page=formidable-settings&t=licenses_settings' ) ) . '">', '</a>' );
78
+		echo sprintf( __( 'Your %1$s license key is missing. Please add it on the %2$slicenses page%3$s.', 'formidable' ), $this->plugin_name, '<a href="' . esc_url( admin_url( 'admin.php?page=formidable-settings&t=licenses_settings' ) ) . '">', '</a>' );
79 79
 		$id = sanitize_title( $plugin['Name'] );
80 80
 		echo '<script type="text/javascript">var d = document.getElementById("' . esc_attr( $id ) . '");if ( d !== null ){ d.className = d.className + " update"; }</script>';
81 81
 		echo '</div></td></tr>';
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 			} else if ( $license_data == 'missing' ) {
117 117
 				$response['message'] = __( 'That license is invalid', 'formidable' );
118 118
 			} else {
119
-				$response['message'] = FrmAppHelper::kses( $license_data, array('a') );
119
+				$response['message'] = FrmAppHelper::kses( $license_data, array( 'a' ) );
120 120
 			}
121 121
 
122 122
 			update_option( $this_plugin->option_name . 'active', $is_valid );
@@ -179,9 +179,9 @@  discard block
 block discarded – undo
179 179
 
180 180
 		$message = __( 'Your License Key was invalid', 'formidable' );
181 181
 		if ( is_wp_error( $resp ) ) {
182
-			$message = sprintf( __( 'You had an error communicating with Formidable Pro\'s API. %1$sClick here%2$s for more information.', 'formidable' ), '<a href="http://formidablepro.com/knowledgebase/why-cant-i-activate-formidable-pro/" target="_blank">', '</a>');
182
+			$message = sprintf( __( 'You had an error communicating with Formidable Pro\'s API. %1$sClick here%2$s for more information.', 'formidable' ), '<a href="http://formidablepro.com/knowledgebase/why-cant-i-activate-formidable-pro/" target="_blank">', '</a>' );
183 183
 			if ( is_wp_error( $resp ) ) {
184
-				$message .= ' '. $resp->get_error_message();
184
+				$message .= ' ' . $resp->get_error_message();
185 185
 			}
186 186
 		} else if ( $body == 'error' || is_wp_error( $body ) ) {
187 187
 			$message = __( 'You had an HTTP error connecting to Formidable Pro\'s API', 'formidable' );
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 					$message = $json_res;
195 195
 				}
196 196
 			} else if ( isset( $resp['response'] ) && isset( $resp['response']['code'] ) ) {
197
-				$message = sprintf( __( 'There was a %1$s error: %2$s', 'formidable' ), $resp['response']['code'], $resp['response']['message'] .' '. $resp['body'] );
197
+				$message = sprintf( __( 'There was a %1$s error: %2$s', 'formidable' ), $resp['response']['code'], $resp['response']['message'] . ' ' . $resp['body'] );
198 198
 			}
199 199
 		}
200 200
 
Please login to merge, or discard this patch.