Passed
Pull Request — developer (#17179)
by Mariusz
29:27 queued 10:21
created

Settings_Comarch_Active_Action   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 4 1
1
<?php
2
/**
3
 * Settings Comarch active action file.
4
 *
5
 * @package Settings.Action
6
 *
7
 * @copyright YetiForce S.A.
8
 * @license   YetiForce Public License 5.0 (licenses/LicenseEN.txt or yetiforce.com)
9
 * @author    Mariusz Krzaczkowski <[email protected]>
10
 */
11
/**
12
 * Settings Comarch active action class.
13
 */
14
class Settings_Comarch_Active_Action extends Settings_Vtiger_Save_Action
15
{
16
	/** {@inheritdoc} */
17
	public function process(App\Request $request)
18
	{
19
		Settings_Comarch_Activation_Model::activate();
20
		header('Location: index.php?parent=Settings&module=Comarch&view=List');
21
	}
22
}
23