Services_List_View::getFooterScripts()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 8
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
/* +***********************************************************************************
3
 * The contents of this file are subject to the vtiger CRM Public License Version 1.0
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 Services_List_View extends Vtiger_List_View
12
{
13
	/**
14
	 * Function to get the list of Script models to be included.
15
	 *
16
	 * @param \App\Request $request
17
	 *
18
	 * @return <Array> - List of Vtiger_JsScript_Model instances
0 ignored issues
show
Documentation Bug introduced by
The doc comment <Array> at position 0 could not be parsed: Unknown type name '<' at position 0 in <Array>.
Loading history...
19
	 */
20
	public function getFooterScripts(App\Request $request)
21
	{
22
		$headerScriptInstances = parent::getFooterScripts($request);
23
		$moduleName = $request->getModule();
24
		$modulePopUpFile = 'modules.' . $moduleName . '.resources.Edit';
25
		unset($headerScriptInstances[$modulePopUpFile]);
26
		return array_merge($headerScriptInstances, $this->checkAndConvertJsScripts([
27
			'modules.Products.resources.Edit', $modulePopUpFile
28
		]));
29
	}
30
}
31