Completed
Push — master ( 7f4237...92df5e )
by Stephanie
03:00
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'] );
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
 		// Set up hooks.
50 50
 		$this->init();
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 			$_transient_data = new stdClass;
85 85
 		}
86 86
 
87
-		if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[ $this->name ] ) && false === $this->wp_override ) {
87
+		if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[$this->name] ) && false === $this->wp_override ) {
88 88
 			return $_transient_data;
89 89
 		}
90 90
 
@@ -108,12 +108,12 @@  discard block
 block discarded – undo
108 108
 					$version_info->plugin = $this->name;
109 109
 				}
110 110
 
111
-				$_transient_data->response[ $this->name ] = $version_info;
111
+				$_transient_data->response[$this->name] = $version_info;
112 112
 
113 113
 			}
114 114
 
115 115
 			$_transient_data->last_checked           = time();
116
-			$_transient_data->checked[ $this->name ] = $this->version;
116
+			$_transient_data->checked[$this->name] = $this->version;
117 117
 
118 118
 		}
119 119
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 		if ( isset( $_data->sections ) && ! is_array( $_data->sections ) ) {
178 178
 			$new_sections = array();
179 179
 			foreach ( $_data->sections as $key => $value ) {
180
-				$new_sections[ $key ] = $value;
180
+				$new_sections[$key] = $value;
181 181
 			}
182 182
 
183 183
 			$_data->sections = $new_sections;
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 		if ( isset( $_data->banners ) && ! is_array( $_data->banners ) ) {
188 188
 			$new_banners = array();
189 189
 			foreach ( $_data->banners as $key => $value ) {
190
-				$new_banners[ $key ] = $value;
190
+				$new_banners[$key] = $value;
191 191
 			}
192 192
 
193 193
 			$_data->banners = $new_banners;
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 			wp_die( __( 'You do not have permission to install plugin updates', 'formidable' ), __( 'Error', 'formidable' ), array( 'response' => 403 ) );
298 298
 		}
299 299
 
300
-		$data         = $frm_edd_plugin_data[ $_REQUEST['slug'] ];
300
+		$data         = $frm_edd_plugin_data[$_REQUEST['slug']];
301 301
 		$beta         = ! empty( $data['beta'] );
302 302
 		$cache_key    = md5( 'edd_plugin_' . sanitize_key( $_REQUEST['plugin'] ) . '_' . $beta . '_version_info' );
303 303
 		$version_info = get_transient( $cache_key );
Please login to merge, or discard this patch.