Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public static function module($moduleName) |
||
45 | { |
||
46 | self::load(); |
||
47 | if (!in_array($moduleName, self::$modules)) { |
||
48 | $path = __DIR__.'/../../vendor/jpgraph/jpgraph/src/jpgraph_'.$moduleName.'.php'; |
||
49 | if (!file_exists($path)) { |
||
50 | throw new \Exception('The JpGraphs\'s module "'.$moduleName.'" does not exist'); |
||
51 | } |
||
52 | include_once $path; |
||
53 | } |
||
54 | } |
||
55 | } |
||
56 |