Test Setup Failed
Pull Request — developer (#300)
by Arkadiusz
64:38 queued 29:41
created

PasswordChangeModal   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 4

Importance

Changes 0
Metric Value
wmc 5
lcom 2
cbo 4
dl 0
loc 33
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A checkPermission() 0 3 1
A getTitle() 0 4 1
A getModalSize() 0 4 1
A getModalIcon() 0 4 1
A process() 0 6 1
1
<?php
2
3
/**
4
 * Password change modal view file.
5
 *
6
 * @package   View
7
 *
8
 * @copyright YetiForce Sp. z o.o
9
 * @license   YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)
10
 * @author    Arkadiusz Sołek <[email protected]>
11
 */
12
13
namespace YF\Modules\Users\View;
14
15
/**
16
 * Password change modal view class.
17
 */
18
class PasswordChangeModal extends \App\Controller\Modal
19
{
20
	/** {@inheritdoc} */
21
	public function checkPermission(): void
22
	{
23
	}
24
25
	/**  {@inheritdoc}  */
26
	public function getTitle(): string
27
	{
28
		return \App\Language::translate('LBL_CHANGE_PASSWORD', $this->moduleName);
29
	}
30
31
	/** {@inheritdoc} */
32
	public function getModalSize(): string
33
	{
34
		return 'modal-lg';
35
	}
36
37
	/** {@inheritdoc} */
38
	public function getModalIcon(): string
39
	{
40
		return 'yfi yfi-change-passowrd';
41
	}
42
43
	/** {@inheritdoc} */
44
	public function process(): void
45
	{
46
		$request = $this->request;
47
		$moduleName = $request->getModule();
48
		$this->viewer->view('Modal/PasswordChangeModal.tpl', $moduleName);
49
	}
50
}
51