Code Duplication    Length = 9-9 lines in 2 locations

deprecated/FrmEDD_SL_Plugin_Updater.php 1 location

@@ 384-392 (lines=9) @@
381
382
	}
383
384
	public function set_version_info_cache( $value = '', $cache_key = '' ) {
385
		$data = array(
386
			'timeout' => strtotime( '+24 hours', current_time( 'timestamp' ) ),
387
			'value'   => json_encode( $value ),
388
		);
389
390
		update_option( $cache_key, $data, 'no' );
391
392
	}
393
394
	/**
395
	 * Returns if the SSL of the store should be verified.

classes/controllers/FrmAddonsController.php 1 location

@@ 249-257 (lines=9) @@
246
	/**
247
	 * @since 3.04.03
248
	 */
249
	private static function set_cached_addons( $addons, $license = '' ) {
250
		$cache_key = self::get_cache_key( $license );
251
		$data = array(
252
			'timeout' => strtotime( '+6 hours', current_time( 'timestamp' ) ),
253
			'value'   => json_encode( $addons ),
254
		);
255
256
		update_option( $cache_key, $data, 'no' );
257
	}
258
259
	/**
260
	 * @since 3.04.03