Code Duplication    Length = 3-3 lines in 2 locations

forms/RequiredFields.php 1 location

@@ 25-27 (lines=3) @@
22
	 */
23
	public function __construct() {
24
		$required = func_get_args();
25
		if(isset($required[0]) && is_array($required[0])) {
26
			$required = $required[0];
27
		}
28
		if(!empty($required)) {
29
			$this->required = ArrayLib::valuekey($required);
30
		} else {

security/Member.php 1 location

@@ 1845-1847 (lines=3) @@
1842
	public function __construct() {
1843
		$required = func_get_args();
1844
1845
		if(isset($required[0]) && is_array($required[0])) {
1846
			$required = $required[0];
1847
		}
1848
1849
		$required = array_merge($required, $this->customRequired);
1850