Passed
Push — update/4.0.0 ( 26bed1...cae0be )
by Warwick
04:58 queued 02:19
created

lsx()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 5
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 7
rs 10
1
<?php
2
/**
3
 * LSX functions and definitions.
4
 *
5
 * @package lsx
6
 */
7
8
use LSX\Core;
9
10
if ( ! defined( 'ABSPATH' ) ) {
11
	exit;
12
}
13
14
define( 'LSX_VERSION', '4.0.0' );
15
16
require_once get_template_directory() . '/includes/classes/class-core.php';
17
18
/**
19
 * Contains the LSX theme object
20
 *
21
 * @return void
0 ignored issues
show
Coding Style introduced by
Function return type is void, but function contains return statement
Loading history...
22
 */
23
function lsx() {
24
	global $lsx;
25
	if ( null === $lsx ) {
26
		$lsx = new Core();
27
		$lsx->init();
28
	}
29
	return $lsx;
30
}
31
lsx();