From acb4aebe4db26d4a76826aef76e3d93a9547b503 Mon Sep 17 00:00:00 2001 From: Steven Boixel Date: Wed, 6 Oct 2021 13:53:33 +0200 Subject: [PATCH] Fix - PSR issues in the Task library This fix the PSR issue for the Cron Class and also the CronTest Resolve #1981 --- src/Appwrite/Task/Validator/Cron.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Appwrite/Task/Validator/Cron.php b/src/Appwrite/Task/Validator/Cron.php index 544482048e..03bd1c5220 100644 --- a/src/Appwrite/Task/Validator/Cron.php +++ b/src/Appwrite/Task/Validator/Cron.php @@ -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. *