for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
if (!function_exists('value')) {
/**
* Return the default value of the given value.
*
* @param mixed $value
* @return mixed
*/
function value($value)
{
return $value instanceof Closure ? $value() : $value;
}
if (!function_exists('json_validate')) {
function json_validate(string $json): bool
json_decode($json);
return json_last_error() === JSON_ERROR_NONE;