Settings_Currency_TransformEditAjax_View   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 14
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 12 1
1
<?php
2
/* +**********************************************************************************
3
 * The contents of this file are subject to the vtiger CRM Public License Version 1.1
4
 * ("License"); You may not use this file except in compliance with the License
5
 * The Original Code is:  vtiger CRM Open Source
6
 * The Initial Developer of the Original Code is vtiger.
7
 * Portions created by vtiger are Copyright (C) vtiger.
8
 * All Rights Reserved.
9
 * ********************************************************************************** */
10
11
class Settings_Currency_TransformEditAjax_View extends Settings_Vtiger_IndexAjax_View
12
{
13
	public function process(App\Request $request)
14
	{
15
		$record = $request->getInteger('record');
16
17
		$currencyList = Settings_Currency_Record_Model::getAll($record);
0 ignored issues
show
Bug introduced by
$record of type integer is incompatible with the type array expected by parameter $excludedIds of Settings_Currency_Record_Model::getAll(). ( Ignorable by Annotation )

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

17
		$currencyList = Settings_Currency_Record_Model::getAll(/** @scrutinizer ignore-type */ $record);
Loading history...
18
19
		$qualifiedName = $request->getModule(false);
20
		$viewer = $this->getViewer($request);
21
		$viewer->assign('QUALIFIED_MODULE', $qualifiedName);
22
		$viewer->assign('CURRENCY_LIST', $currencyList);
23
		$viewer->assign('RECORD_MODEL', Settings_Currency_Record_Model::getInstance($record));
24
		$viewer->view('TransformEdit.tpl', $qualifiedName);
25
	}
26
}
27