Code Duplication    Length = 9-9 lines in 2 locations

classes/controllers/FrmAddonsController.php 1 location

@@ 210-218 (lines=9) @@
207
	/**
208
	 * @since 3.04.03
209
	 */
210
	private static function set_cached_addons( $addons, $license = '' ) {
211
		$cache_key = self::get_cache_key( $license );
212
		$data = array(
213
			'timeout' => strtotime( '+6 hours', current_time( 'timestamp' ) ),
214
			'value'   => json_encode( $addons ),
215
		);
216
217
		update_option( $cache_key, $data, 'no' );
218
	}
219
220
	/**
221
	 * @since 3.04.03

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.