Passed
Pull Request — developer (#16883)
by
unknown
14:53
created

Settings_Groups_Index_View   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
dl 0
loc 11
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 8 1
1
<?php
2
3
/**
4
 * Settings groups index view file.
5
 *
6
 * @package   Settings.View
7
 *
8
 * @copyright YetiForce S.A.
9
 * @license YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
10
 * @author Adrian Kon <[email protected]>
11
 */
12
13
/**
14
 * Settings groups index view class.
15
 */
16
class Settings_Groups_Index_View extends Settings_Vtiger_Index_View
17
{
18
	/** {@inheritdoc} */
19
	public function process(App\Request $request)
20
	{
21
		$qualifiedModuleName = $request->getModule(false);
22
		$moduleModel = Settings_Vtiger_Module_Model::getInstance($qualifiedModuleName);
23
		$viewer = $this->getViewer($request);
24
		$viewer->assign('MODULE_MODEL', $moduleModel);
25
		$viewer->assign('LINKS', $moduleModel->getLinks());
0 ignored issues
show
Bug introduced by
The method getLinks() does not exist on Settings_Vtiger_Module_Model. It seems like you code against a sub-type of Settings_Vtiger_Module_Model such as Settings_AdminAccess_Module_Model or Settings_Groups_Module_Model. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

25
		$viewer->assign('LINKS', $moduleModel->/** @scrutinizer ignore-call */ getLinks());
Loading history...
26
		$viewer->view('Index.tpl', $qualifiedModuleName);
27
	}
28
}
29