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

Settings_Comarch_Active_Action::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 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