Code Duplication    Length = 1-4 lines in 2 locations

web_interface/astpp/application/libraries/html2pdf/html2pdf.php 1 location

@@ 2051-2051 (lines=1) @@
2048
                {
2049
                    case 'scale':
2050
                        if ( ! isset($val[0])) $val[0] = 1.; else $val[0] = 1. * $val[0];
2051
                        if ( ! isset($val[1])) $val[1] = $val[0]; else $val[1] = 1. * $val[1];
2052
                        $actions[] = array($val[0], 0, 0, $val[1], 0, 0);
2053
                        break;
2054

web_interface/astpp/application/modules/accounts/controllers/accounts.php 1 location

@@ 2297-2300 (lines=4) @@
2294
		$add_array = $this->input->post();
2295
		$add_array['id'] = trim($add_array['id']);
2296
		$add_array['number'] = trim($add_array['number']);
2297
		if (isset($add_array['id']) && $add_array['id'] != '') {
2298
			$add_array['id'] = trim($add_array['id']);
2299
			$id = $add_array['id'];
2300
		}
2301
		$where = array("number" => $add_array['number']);
2302
		$pro = $this->accounts_model->animap_authentication($where, $id);
2303
		if ($pro > 0) {