mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
Merge pull request #1998 from ar-ankou/feat-database-indexing
fix-1981-psr-issues-in-the-task-library
This commit is contained in:
commit
3746cda31b
1 changed files with 5 additions and 5 deletions
|
|
@ -10,11 +10,11 @@ class Cron extends Validator
|
|||
/**
|
||||
* Get Description.
|
||||
*
|
||||
* Returns validator description
|
||||
* Returns validator description.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'String must be a valid cron expression';
|
||||
}
|
||||
|
|
@ -28,7 +28,7 @@ class Cron extends Validator
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isValid($value)
|
||||
public function isValid($value): bool
|
||||
{
|
||||
if (empty($value)) {
|
||||
return true;
|
||||
|
|
@ -42,7 +42,7 @@ class Cron extends Validator
|
|||
}
|
||||
|
||||
/**
|
||||
* Is array
|
||||
* Is array.
|
||||
*
|
||||
* Function will return true if object is array.
|
||||
*
|
||||
|
|
@ -54,7 +54,7 @@ class Cron extends Validator
|
|||
}
|
||||
|
||||
/**
|
||||
* Get Type
|
||||
* Get Type.
|
||||
*
|
||||
* Returns validator type.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue