Code Duplication    Length = 9-9 lines in 2 locations

Sources/ManageBans.php 2 locations

@@ 1014-1022 (lines=9) @@
1011
					'value' => $ban_items[$row['id_ban']]['ip'],
1012
				);
1013
			}
1014
			elseif (!empty($row['hostname']))
1015
			{
1016
				$ban_items[$row['id_ban']]['type'] = 'hostname';
1017
				$ban_items[$row['id_ban']]['hostname'] = str_replace('%', '*', $row['hostname']);
1018
				$log_info[] = array(
1019
					'bantype' => 'hostname',
1020
					'value' => $row['hostname'],
1021
				);
1022
			}
1023
			elseif (!empty($row['email_address']))
1024
			{
1025
				$ban_items[$row['id_ban']]['type'] = 'email';
@@ 1023-1031 (lines=9) @@
1020
					'value' => $row['hostname'],
1021
				);
1022
			}
1023
			elseif (!empty($row['email_address']))
1024
			{
1025
				$ban_items[$row['id_ban']]['type'] = 'email';
1026
				$ban_items[$row['id_ban']]['email'] = str_replace('%', '*', $row['email_address']);
1027
				$log_info[] = array(
1028
					'bantype' => 'email',
1029
					'value' => $ban_items[$row['id_ban']]['email'],
1030
				);
1031
			}
1032
			elseif (!empty($row['id_member']))
1033
			{
1034
				$ban_items[$row['id_ban']]['type'] = 'user';