Conditions | 4 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function moduleHref($item, $col, $colParam) { |
||
|
|||
23 | if (!$item->$col) { |
||
24 | return 'Модуль не задан'; |
||
25 | } |
||
26 | if (!Module::installed($item->$col, \App::$primary)) { |
||
27 | return 'Модуль ' . $item->$col . ' не установлен'; |
||
28 | } |
||
29 | $moduleInfo = Module::getInfo($item->$col); |
||
30 | return !empty($moduleInfo['name']) ? $moduleInfo['name'] : $item->$col; |
||
31 | } |
||
32 | |||
45 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.