eee
This commit is contained in:
+2
-2
@@ -28,14 +28,14 @@ interface Arrayable
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('json_validator')) {
|
||||
if (!function_exists('json_validate')) {
|
||||
|
||||
|
||||
/**
|
||||
* @param string $data
|
||||
* @return bool
|
||||
*/
|
||||
function json_validator(string $data): bool
|
||||
function json_validate(string $data): bool
|
||||
{
|
||||
return is_array(json_decode($data, true));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user