fix: noverify --fix

This commit is contained in:
origami11@yandex.ru 2024-06-14 14:12:02 +03:00
parent 5aff28d2b8
commit 117640a755
44 changed files with 174 additions and 174 deletions

View file

@ -71,7 +71,7 @@ class Primitive {
{
$result = 0;
$tmp = array();
$tmp = [];
if (preg_match('/(\d+)-(\d+)-(\d+)T(\d+):(\d+)Z/', $value, $tmp)) {
if (checkdate((int)$tmp[2], (int)$tmp[3], (int)$tmp[1])) {
$result = mktime((int)$tmp[4], (int)$tmp[5], 0, (int)$tmp[2], (int)$tmp[3], (int)$tmp[1]);
@ -112,7 +112,7 @@ class Primitive {
// array
public static function to_array($value)
{
return (is_array($value)) ? $value : array();
return (is_array($value)) ? $value : [];
}
public static function from_array($value)