Code Duplication    Length = 7-7 lines in 3 locations

mod/gc_api/lib/profile.php 2 locations

@@ 656-662 (lines=7) @@
653
				//}
654
				//error_log('num - '.is_null($result));
655
				// if domain doesn't exist in database, check if it's a gc.ca domain
656
				if ($result['num'][0] <= 0) 
657
				{
658
					if ($gcca !== 'gc.ca')
659
						//throw new RegistrationException(elgg_echo('gcRegister:email_error'));
660
						$resulting_error .= elgg_echo('gcRegister:invalid_email');
661
			
662
				}
663
664
665
				if ($resulting_error !== "")
@@ 942-948 (lines=7) @@
939
940
				
941
				// if domain doesn't exist in database, check if it's a gc.ca domain
942
				if ($result['num'][0] <= 0) 
943
				{
944
					if ($gcca !== 'gc.ca')
945
						//throw new RegistrationException(elgg_echo('gcRegister:email_error'));
946
						$resulting_error .= elgg_echo('gcRegister:invalid_email');
947
			
948
				}
949
950
951
				if ($resulting_error !== "")

mod/gcRegistration/actions/register.php 1 location

@@ 136-142 (lines=7) @@
133
		}
134
		error_log('num - '.is_null($result));
135
		// if domain doesn't exist in database, check if it's a gc.ca domain
136
		if ($result['num'][0] <= 0) 
137
		{
138
			if ($gcca !== 'gc.ca')
139
				//throw new RegistrationException(elgg_echo('gcRegister:email_error'));
140
				$resulting_error .= '- '.elgg_echo('gcRegister:invalid_email').'<br/>';
141
			
142
		}
143
144
		if (get_input('form_type') !== 'standard')
145
		{