Code Duplication    Length = 9-9 lines in 2 locations

app/Filter.php 2 locations

@@ 230-238 (lines=9) @@
227
	 *
228
	 * @return int
229
	 */
230
	public static function getInteger($variable, $min = 0, $max = PHP_INT_MAX, $default = 0) {
231
		return filter_input(INPUT_GET, $variable, FILTER_VALIDATE_INT, [
232
			'options' => [
233
				'min_range' => $min,
234
				'max_range' => $max,
235
				'default'   => $default,
236
			],
237
		]);
238
	}
239
240
	/**
241
	 * Validate URL GET parameters
@@ 299-307 (lines=9) @@
296
	 *
297
	 * @return int
298
	 */
299
	public static function postInteger($variable, $min = 0, $max = PHP_INT_MAX, $default = 0) {
300
		return filter_input(INPUT_POST, $variable, FILTER_VALIDATE_INT, [
301
			'options' => [
302
				'min_range' => $min,
303
				'max_range' => $max,
304
				'default'   => $default,
305
			],
306
		]);
307
	}
308
309
	/**
310
	 * Validate URL GET parameters