Code Duplication    Length = 11-11 lines in 2 locations

classes/models/FrmMigrate.php 1 location

@@ 9-19 (lines=11) @@
6
	public $entries;
7
	public $entry_metas;
8
9
	public function __construct() {
10
		if ( ! defined( 'ABSPATH' ) ) {
11
			die( 'You are not allowed to call this page directly.' );
12
		}
13
14
		global $wpdb;
15
		$this->fields         = $wpdb->prefix . 'frm_fields';
16
		$this->forms          = $wpdb->prefix . 'frm_forms';
17
		$this->entries        = $wpdb->prefix . 'frm_items';
18
		$this->entry_metas    = $wpdb->prefix . 'frm_item_metas';
19
	}
20
21
	public function upgrade() {
22
		do_action( 'frm_before_install' );

deprecated/FrmDbDeprecated.php 1 location

@@ 17-27 (lines=11) @@
14
	var $entries;
15
	var $entry_metas;
16
17
	public function __construct() {
18
		if ( ! defined( 'ABSPATH' ) ) {
19
			die( 'You are not allowed to call this page directly.' );
20
		}
21
22
		global $wpdb;
23
		$this->fields      = $wpdb->prefix . 'frm_fields';
24
		$this->forms       = $wpdb->prefix . 'frm_forms';
25
		$this->entries     = $wpdb->prefix . 'frm_items';
26
		$this->entry_metas = $wpdb->prefix . 'frm_item_metas';
27
	}
28
29
	/**
30
	 * @deprecated 2.03.05