Passed
Push — master ( 9b0854...75b594 )
by Chris
02:31 queued 33s
created

lsx-currencies.php ➔ lsx_currencies()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
 * Plugin Name: LSX Currencies
4
 * Plugin URI:  https://www.lsdev.biz/product/lsx-currencies
5
 * Description: The LSX Currencies extension adds currency selection functionality to sites, allowing users to view your products in whatever currencies you choose to sell in.
6
 * Version:     1.2.3
7
 * Author:      LightSpeed
8
 * Author URI:  https://www.lsdev.biz/
9
 * License:     GPL3
10
 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
11
 * Text Domain: lsx-currencies
12
 * Domain Path: /languages
13
 */
14
15
// If this file is called directly, abort.
16
if ( ! defined( 'WPINC' ) ) {
17
	die;
18
}
19
20
define( 'LSX_CURRENCIES_PATH', plugin_dir_path( __FILE__ ) );
0 ignored issues
show
Bug introduced by
The function plugin_dir_path was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

20
define( 'LSX_CURRENCIES_PATH', /** @scrutinizer ignore-call */ plugin_dir_path( __FILE__ ) );
Loading history...
21
define( 'LSX_CURRENCIES_CORE', __FILE__ );
22
define( 'LSX_CURRENCIES_URL', plugin_dir_url( __FILE__ ) );
0 ignored issues
show
Bug introduced by
The function plugin_dir_url was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

22
define( 'LSX_CURRENCIES_URL', /** @scrutinizer ignore-call */ plugin_dir_url( __FILE__ ) );
Loading history...
23
define( 'LSX_CURRENCIES_VER', '1.2.3' );
24
25
require_once LSX_CURRENCIES_PATH . 'classes/deprecated/class-lsx-currencies.php';
26
require_once LSX_CURRENCIES_PATH . 'classes/class-currencies.php';
27
28
/**
29
 * Returns the main instance of the class
30
 *
31
 * @return object \lsx\currencies\classes\Currencies()
32
 */
33
function lsx_currencies() {
34
	return \lsx\currencies\classes\Currencies::init();
35
}
36
lsx_currencies();
37