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