HEX
Server: LiteSpeed
System: Linux server302.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: synqowzz (1256)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/synqowzz/www/wp-content/plugins/wordfence/modules/login-security/classes/utility/number.php
<?php

namespace WordfenceLS;

class Utility_Number {

	public static function isInteger($value, $min = null, $max = null) {
		$options = array();
		if ($min !== null)
			$options['min_range'] = $min;
		if ($max !== null)
			$options['max_range'] = $max;
		return filter_var($value, FILTER_VALIDATE_INT, array('options' => $options)) !== false;
	}

	public static function isUnixTimestamp($value) {
		return self::isInteger($value, 0);
	}

}