Test Failed
Branch master (d625c8)
by Joe
04:55
created

function_requirements.php ➔ function_requirements()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 3
ccs 0
cts 1
cp 0
crap 2
rs 10
c 0
b 0
f 0
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * @author Joe Huss <[email protected]>
4
 * @copyright 2017
5
 * @package Plugins
6
 */
7
8
/**
9
 * loads the files needed to run the given class or function
10
 *
11
 * @param $function
12
 * @return bool whether or not it found the given function/class
13
 */
14
function function_requirements($function) {
15
	return $GLOBALS['tf']->function_requirements($function);
16
}
17