Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
31 | 56 | public static function includeFile($filename) |
|
32 | { |
||
33 | // Error reporting here is temporarily changed to ignore warnings. |
||
34 | // This is to avoid include warning. |
||
35 | 56 | $er = error_reporting(E_ERROR); |
|
36 | |||
37 | // Ignore file exists check for better performance, as mostly it should be there |
||
38 | 56 | $data = include $filename; |
|
39 | 56 | error_reporting($er); |
|
40 | 56 | return $data; |
|
41 | } |
||
42 | |||
44 |