mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 13:53:45 +02:00
Add tests for schedule stuff
This commit is contained in:
@@ -45,3 +45,17 @@ if (! function_exists('human_readable')) {
|
||||
return app('file')->humanReadableSize($path, $precision);
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('is_digit')) {
|
||||
/**
|
||||
* Deal with normal (and irritating) PHP behavior to determine if
|
||||
* a value is a non-float positive integer.
|
||||
*
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
*/
|
||||
function is_digit($value)
|
||||
{
|
||||
return is_bool($value) ? false : ctype_digit(strval($value));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user