Completed
Push — master ( b9eecd...572f19 )
by Stephanie
08:04
created
classes/models/FrmEDD_SL_Plugin_Updater.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 		$this->beta        = ! empty( $this->api_data['beta'] ) ? true : false;
45 45
 		$this->cache_key   = md5( serialize( $this->slug . $this->version . $this->api_data['license'] . $this->beta ) );
46 46
 
47
-		$frm_edd_plugin_data[ $this->slug ] = $this->api_data;
47
+		$frm_edd_plugin_data[$this->slug] = $this->api_data;
48 48
 
49 49
 		/**
50 50
 		 * Fires after the $frm_edd_plugin_data is setup.
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 			$_transient_data = new stdClass;
94 94
 		}
95 95
 
96
-		if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[ $this->name ] ) && false === $this->wp_override ) {
96
+		if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[$this->name] ) && false === $this->wp_override ) {
97 97
 			return $_transient_data;
98 98
 		}
99 99
 
@@ -117,12 +117,12 @@  discard block
 block discarded – undo
117 117
 					$version_info->plugin = $this->name;
118 118
 				}
119 119
 
120
-				$_transient_data->response[ $this->name ] = $version_info;
120
+				$_transient_data->response[$this->name] = $version_info;
121 121
 
122 122
 			}
123 123
 
124 124
 			$_transient_data->last_checked           = time();
125
-			$_transient_data->checked[ $this->name ] = $this->version;
125
+			$_transient_data->checked[$this->name] = $this->version;
126 126
 
127 127
 		}
128 128
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 		if ( isset( $_data->sections ) && ! is_array( $_data->sections ) ) {
188 188
 			$new_sections = array();
189 189
 			foreach ( $_data->sections as $key => $value ) {
190
-				$new_sections[ $key ] = $value;
190
+				$new_sections[$key] = $value;
191 191
 			}
192 192
 
193 193
 			$_data->sections = $new_sections;
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 		if ( isset( $_data->banners ) && ! is_array( $_data->banners ) ) {
198 198
 			$new_banners = array();
199 199
 			foreach ( $_data->banners as $key => $value ) {
200
-				$new_banners[ $key ] = $value;
200
+				$new_banners[$key] = $value;
201 201
 			}
202 202
 
203 203
 			$_data->banners = $new_banners;
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 			wp_die( __( 'You do not have permission to install plugin updates', 'formidable' ), __( 'Error', 'formidable' ), array( 'response' => 403 ) );
311 311
 		}
312 312
 
313
-		$data         = $frm_edd_plugin_data[ $_REQUEST['slug'] ];
313
+		$data         = $frm_edd_plugin_data[$_REQUEST['slug']];
314 314
 		$beta         = ! empty( $data['beta'] ) ? true : false;
315 315
 		$cache_key    = md5( 'edd_plugin_' . sanitize_key( $_REQUEST['plugin'] ) . '_' . $beta . '_version_info' );
316 316
 		$version_info = $this->get_cached_version_info( $cache_key );
Please login to merge, or discard this patch.