Code Duplication    Length = 4-4 lines in 2 locations

includes/librairies/eav/attributes.class.php 2 locations

@@ 1791-1794 (lines=4) @@
1788
		wpshop("#' . $input_def['id'] . '").val("' . str_replace(" 00:00:00", "", $input_def['value']) . '");';
1789
1790
			if ( !empty($date_config['field_options']['attribute_type_date_options_available_date_past_futur']) ) {
1791
				if ( !empty($date_config['field_options']['attribute_type_date_options_available_date_past_futur']['minDate'][0]) ) {
1792
					$field_script .= '
1793
		wpshop("#' . $input_def['id'] . '").datepicker("option", "minDate", "' . $date_config['field_options']['attribute_type_date_options_available_date_past_futur']['minDate'][0] . '");';
1794
				}
1795
				if ( !empty($date_config['field_options']['attribute_type_date_options_available_date_past_futur']['maxDate'][0]) ) {
1796
					$field_script .= '
1797
		wpshop("#' . $input_def['id'] . '").datepicker("option", "maxDate", "' . $date_config['field_options']['attribute_type_date_options_available_date_past_futur']['maxDate'][0] . '");';
@@ 1795-1798 (lines=4) @@
1792
					$field_script .= '
1793
		wpshop("#' . $input_def['id'] . '").datepicker("option", "minDate", "' . $date_config['field_options']['attribute_type_date_options_available_date_past_futur']['minDate'][0] . '");';
1794
				}
1795
				if ( !empty($date_config['field_options']['attribute_type_date_options_available_date_past_futur']['maxDate'][0]) ) {
1796
					$field_script .= '
1797
		wpshop("#' . $input_def['id'] . '").datepicker("option", "maxDate", "' . $date_config['field_options']['attribute_type_date_options_available_date_past_futur']['maxDate'][0] . '");';
1798
				}
1799
			}
1800
1801
			$script_options = $script_options_params = array();