Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | static function getModule($name, array $params = []) |
||
21 | { |
||
22 | $DI = self::getInstance()->load("DI"); |
||
23 | $debugbar = $DI->get(DebugBar\StandardDebugBar::class); |
||
24 | $debugbar['time']->startMeasure($name, 'Load module ' . $name); |
||
25 | $result = $DI->get($name)->process(); |
||
26 | $debugbar['time']->stopMeasure($name); |
||
27 | return $result; |
||
28 | } |
||
29 | |||
48 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.