| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 29 | public function getModel($entity) { |
||
| 30 | if ( in_array($entity, \Serverfireteam\Panel\Link::getMainUrls()) ) { |
||
| 31 | $modelClass = 'Serverfireteam\\Panel\\'.$entity; |
||
| 32 | } else { |
||
| 33 | if (!empty(\Config::get('panel.modelPath'))) { |
||
| 34 | $modelClass = $this->getNameSpace() . \Config::get('panel.modelPath') . '\\' . $entity; |
||
| 35 | } |
||
| 36 | else { |
||
| 37 | $modelClass = $this->getNameSpace() . $entity; |
||
| 38 | } |
||
| 39 | |||
| 40 | } |
||
| 41 | return $modelClass; |
||
| 42 | } |
||
| 43 | } |
||
| 44 |