Code Duplication    Length = 3-3 lines in 2 locations

deprecated/FrmEDD_SL_Plugin_Updater.php 1 location

@@ 376-378 (lines=3) @@
373
	public function get_cached_version_info( $cache_key = '' ) {
374
		$cache = get_option( $cache_key );
375
376
		if ( empty( $cache['timeout'] ) || current_time( 'timestamp' ) > $cache['timeout'] ) {
377
			return false; // Cache is expired
378
		}
379
380
		return json_decode( $cache['value'] );
381

classes/models/FrmFormApi.php 1 location

@@ 156-158 (lines=3) @@
153
	protected function get_cached() {
154
		$cache = get_option( $this->cache_key );
155
156
		if ( empty( $cache ) || empty( $cache['timeout'] ) || current_time( 'timestamp' ) > $cache['timeout'] ) {
157
			return false; // Cache is expired
158
		}
159
160
		$version     = FrmAppHelper::plugin_version();
161
		$for_current = isset( $cache['version'] ) && $cache['version'] == $version;