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

function_requirements()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 7
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 7
b 0
f 0
nc 1
nop 1
dl 0
loc 2
ccs 0
cts 1
cp 0
crap 2
rs 10
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