Add tests for schedule stuff
This commit is contained in:
parent
a8c4d6afdb
commit
4e5398fb6b
6 changed files with 424 additions and 5 deletions
app
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue