From f1dc7887485fb52bd5d9e712c1928b78258d4fb3 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 14 Jun 2021 17:18:49 +0545 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Eldad A. Fux --- app/config/collections.php | 6 +++--- src/Appwrite/Utopia/Response/Model/Bucket.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/config/collections.php b/app/config/collections.php index 9c4105647b..d8268cb35c 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -1500,7 +1500,7 @@ $collections = [ [ '$collection' => Database::SYSTEM_COLLECTION_RULES, 'label' => 'Encryption', - 'key' => 'encrypted', + 'key' => 'encryption', 'type' => Database::SYSTEM_VAR_TYPE_BOOLEAN, 'default' => true, 'required' => true, @@ -1509,7 +1509,7 @@ $collections = [ [ '$collection' => Database::SYSTEM_COLLECTION_RULES, 'label' => 'Virus Scan', - 'key' => 'antivirus', + 'key' => 'antiVirus', 'type' => Database::SYSTEM_VAR_TYPE_BOOLEAN, 'default' => true, 'required' => true, @@ -1829,4 +1829,4 @@ foreach ($auth as $index => $method) { ]; } -return $collections; \ No newline at end of file +return $collections; diff --git a/src/Appwrite/Utopia/Response/Model/Bucket.php b/src/Appwrite/Utopia/Response/Model/Bucket.php index ce22ce90fb..d229a29fcc 100644 --- a/src/Appwrite/Utopia/Response/Model/Bucket.php +++ b/src/Appwrite/Utopia/Response/Model/Bucket.php @@ -60,13 +60,13 @@ class Bucket extends Model 'default' => '', 'example' => 'jpg,png', ]) - ->addRule('encrypted', [ + ->addRule('encryption', [ 'type' => self::TYPE_BOOLEAN, 'description' => 'Bucket is encrypted.', 'default' => true, 'example' => false, ]) - ->addRule('antivirus', [ + ->addRule('antiVirus', [ 'type' => self::TYPE_BOOLEAN, 'description' => 'Virus scanning is enabled.', 'default' => true,