Completed
Push — master ( a52438...bf8826 )
by Henry
06:30
created

modules/UnmaskPassword/UnmaskPassword.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
namespace Redaxscript\Modules\UnmaskPassword;
3
4
use Redaxscript\Head;
5
use Redaxscript\Module;
6
7
/**
8
 * unmask focused password fields
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 array $_moduleArray =
0 ignored issues
show
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_ARRAY, expecting T_FUNCTION or T_CONST
Loading history...
26
	[
27
		'name' => 'Unmask Password',
28
		'alias' => 'UnmaskPassword',
29
		'author' => 'Redaxmedia',
30
		'description' => 'Unmask focused password fields',
31
		'version' => '5.0.0',
32
		'license' => 'MIT'
33
	];
34
35
	/**
36
	 * renderStart
37
	 *
38
	 * @since 4.3.0
39
	 */
40
41
	public function renderStart() : void
42
	{
43
		/* link */
44
45
		$link = Head\Link::getInstance();
46
		$link
47
			->init()
48
			->appendFile('modules/UnmaskPassword/dist/styles/unmask-password.min.css');
49
50
		/* script */
51
52
		$script = Head\Script::getInstance();
53
		$script
54
			->init('foot')
55
			->appendFile(
56
			[
57
				'modules/UnmaskPassword/assets/scripts/init.js',
58
				'modules/UnmaskPassword/dist/scripts/unmask-password.min.js'
59
			]);
60
	}
61
}
62