Completed
Push — master ( 7b7ba6...9458ed )
by Henry
08:17
created

UnmaskPassword::renderStart()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Redaxscript\Modules\UnmaskPassword;
3
4
use Redaxscript\Head;
5
use Redaxscript\Module;
6
7
/**
8
 * Unmask the password field
9
 *
10
 * @since 4.3.0
11
 *
12
 * @package Redaxscript
13
 * @category Modules
14
 * @author Henry Ruhs
15
 */
16
17
class UnmaskPassword extends Module\Module
18
{
19
	/**
20
	 * array of the module
21
	 *
22
	 * @var array
23
	 */
24
25
	protected static $_moduleArray =
26
	[
27
		'name' => 'Unmask Password',
28
		'alias' => 'UnmaskPassword',
29
		'author' => 'Redaxmedia',
30
		'description' => 'Unmask the password field',
31
		'version' => '4.3.0'
32
	];
33
34
	/**
35
	 * renderStart
36
	 *
37
	 * @since 4.3.0
38
	 */
39
40
	public function renderStart() : void
41
	{
42
		$script = Head\Script::getInstance();
43
		$script
44
			->init('foot')
45
			->appendFile(
46
			[
47
				'modules/UnmaskPassword/assets/scripts/init.js',
48
				'modules/UnmaskPassword/dist/scripts/unmask-password.min.js'
49
			]);
50
	}
51
}
52