Passed
Pull Request — release/2.0.0 (#400)
by Jonathan
04:21
created

Object_Sync_Salesforce::deactivate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 6
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * Plugin Name: Object Sync for Salesforce
4
 * Description: Object Sync for Salesforce maps and syncs data between Salesforce objects and WordPress objects.
5
 * Version: 2.0.0
6
 * Author: MinnPost
7
 * Author URI: https://code.minnpost.com
8
 * License: GPL2+
9
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 * Text Domain: object-sync-for-salesforce
11
 *
12
 * @package Object_Sync_Salesforce
13
 */
14
15
/* Exit if accessed directly */
16
if ( ! defined( 'ABSPATH' ) ) {
17
	return;
18
}
19
20
/**
21
 * The full path to the main file of this plugin
22
 *
23
 * This can later be passed to functions such as
24
 * plugin_dir_path(), plugins_url() and plugin_basename()
25
 * to retrieve information about plugin paths
26
 *
27
 * @since 2.0.0
28
 * @var string
29
 */
30
define( 'OBJECT_SYNC_SF_FILE', __FILE__ );
31
32
/**
33
 * The plugin's current version
34
 *
35
 * @since 2.0.0
36
 * @var string
37
 */
38
define( 'OBJECT_SYNC_SF_VERSION', '2.0.0' );
39
40
/**
41
 * The default Salesforce API version for new installs
42
 *
43
 * @since 2.0.0
44
 * @var string
45
 */
46
define( 'OBJECT_SYNC_SF_DEFAULT_API_VERSION', '52.0' );
47
48
// Load the autoloader.
49
require_once 'lib/autoloader.php';
50
51
/**
52
 * Retrieve the instance of the main plugin class
53
 *
54
 * @since 0.2.0
55
 * @return Object_Sync_Salesforce
56
 */
57
function object_sync_for_salesforce() {
58
	static $plugin;
59
60
	if ( is_null( $plugin ) ) {
61
		$plugin = new Object_Sync_Salesforce( OBJECT_SYNC_SF_VERSION, OBJECT_SYNC_SF_FILE );
62
	}
63
64
	return $plugin;
65
}
66
67
object_sync_for_salesforce()->init();
68