1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

Fix - PSR issues in the Task library

This fix the PSR issue for the Cron Class and also the CronTest

Resolve #1981
This commit is contained in:
Steven Boixel 2021-10-06 13:53:33 +02:00
parent 301e3c3e1a
commit acb4aebe4d

View file

@ -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.
*