cleanup
This commit is contained in:
1 parent
e504de8705
commit
cc89c4a10c
11 files changed
+16
-63
No files matched your search
+1
-1
@@ -8,7 +8,7 @@ function db()
|
||||
return $pdo;
|
||||
};
|
||||
|
||||
function findClosestDateSort($array, $targetDate)
|
||||
function findClosestDateSort(array $array, string $targetDate)
|
||||
{
|
||||
if (empty($array) || !preg_match('/^\d{1,2}-\d{1,2}-\d{2}$/', $targetDate)) {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user