Code Duplication    Length = 12-12 lines in 3 locations

src/DataGrid.php 3 locations

@@ 1010-1021 (lines=12) @@
1007
	 * @return Filter\FilterSelect
1008
	 * @throws DataGridException
1009
	 */
1010
	public function addFilterSelect($key, $name, array $options, $column = NULL)
1011
	{
1012
		$column = $column ?: $key;
1013
1014
		if (!is_string($column)) {
1015
			throw new DataGridException("Filter Select can only filter in one column.");
1016
		}
1017
1018
		$this->addFilterCheck($key);
1019
1020
		return $this->filters[$key] = new Filter\FilterSelect($key, $name, $options, $column);
1021
	}
1022
1023
1024
	/**
@@ 1077-1088 (lines=12) @@
1074
	 * @return Filter\FilterRange
1075
	 * @throws DataGridException
1076
	 */
1077
	public function addFilterRange($key, $name, $column = NULL, $name_second = '-')
1078
	{
1079
		$column = $column ?: $key;
1080
1081
		if (!is_string($column)) {
1082
			throw new DataGridException("FilterRange can only filter in one column.");
1083
		}
1084
1085
		$this->addFilterCheck($key);
1086
1087
		return $this->filters[$key] = new Filter\FilterRange($key, $name, $column, $name_second);
1088
	}
1089
1090
1091
	/**
@@ 1099-1110 (lines=12) @@
1096
	 * @return Filter\FilterDateRange
1097
	 * @throws DataGridException
1098
	 */
1099
	public function addFilterDateRange($key, $name, $column = NULL, $name_second = '-')
1100
	{
1101
		$column = $column ?: $key;
1102
1103
		if (!is_string($column)) {
1104
			throw new DataGridException("FilterDateRange can only filter in one column.");
1105
		}
1106
1107
		$this->addFilterCheck($key);
1108
1109
		return $this->filters[$key] = new Filter\FilterDateRange($key, $name, $column, $name_second);
1110
	}
1111
1112
1113
	/**