Completed
Pull Request — master (#2652)
by
unknown
48s
created
classes/models/FrmFormApi.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -152,13 +152,13 @@  discard block
 block discarded – undo
152 152
 				$cats = array_intersect( $this->skip_categories(), $addon['categories'] );
153 153
 
154 154
 				if ( ! empty( $cats ) ) {
155
-					unset( $addons[ $k ] );
155
+					unset( $addons[$k] );
156 156
 					continue;
157 157
 				}
158 158
 			}
159 159
 
160 160
 			if ( ! array_key_exists( 'is_new', $addon ) && array_key_exists( 'released', $addon ) ) {
161
-				$addons[ $k ]['is_new'] = $this->is_new( $addon );
161
+				$addons[$k]['is_new'] = $this->is_new( $addon );
162 162
 			}
163 163
 		}
164 164
 
@@ -275,8 +275,8 @@  discard block
 block discarded – undo
275 275
 					return $addon;
276 276
 				}
277 277
 			}
278
-		} elseif ( isset( $addons[ $download_id ] ) ) {
279
-			$plugin = $addons[ $download_id ];
278
+		} elseif ( isset( $addons[$download_id] ) ) {
279
+			$plugin = $addons[$download_id];
280 280
 		}
281 281
 
282 282
 		return $plugin;
@@ -342,21 +342,21 @@  discard block
 block discarded – undo
342 342
 	protected function get_cached_option() {
343 343
 		$key = $this->cache_key;
344 344
 
345
-		if ( isset( self::$memoized_api_info[ $key ] ) ) {
346
-			return self::$memoized_api_info[ $key ];
345
+		if ( isset( self::$memoized_api_info[$key] ) ) {
346
+			return self::$memoized_api_info[$key];
347 347
 		}
348 348
 
349 349
 		if ( is_multisite() ) {
350 350
 			$cached = get_site_option( $this->cache_key );
351 351
 
352 352
 			if ( $cached ) {
353
-				self::$memoized_api_info[ $key ] = $cached;
353
+				self::$memoized_api_info[$key] = $cached;
354 354
 				return $cached;
355 355
 			}
356 356
 		}
357 357
 
358
-		self::$memoized_api_info[ $key ] = get_option( $this->cache_key );
359
-		return self::$memoized_api_info[ $key ];
358
+		self::$memoized_api_info[$key] = get_option( $this->cache_key );
359
+		return self::$memoized_api_info[$key];
360 360
 	}
361 361
 
362 362
 	/**
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 			'version' => FrmAppHelper::plugin_version(),
374 374
 		);
375 375
 
376
-		self::$memoized_api_info[ $this->cache_key ] = $data;
376
+		self::$memoized_api_info[$this->cache_key] = $data;
377 377
 
378 378
 		if ( is_multisite() ) {
379 379
 			update_site_option( $this->cache_key, $data );
Please login to merge, or discard this patch.