| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public static function getModule($name, array $params = []){ |
||
| 24 | $DI = self::getInstance()->load("DI"); |
||
| 25 | $debugbar = $DI->get(DebugBar\StandardDebugBar::class); |
||
| 26 | $debugbar['messages']->debug(sprintf('App::getModule %s, with params %s', $name, json_encode($params))); |
||
| 27 | $debugbar['time']->startMeasure($name, 'Load module ' . $name); |
||
| 28 | $module = $DI->get($name); |
||
| 29 | $result = $module->setParams($params)->process(); |
||
| 30 | $debugbar['time']->stopMeasure($name); |
||
| 31 | return $result; |
||
| 32 | } |
||
| 33 | |||
| 49 |
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.