Apply suggestions from code review

Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
This commit is contained in:
Damodar Lohani
2021-06-14 17:18:49 +05:45
committed by GitHub
parent 0b4a840161
commit f1dc788748
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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;
return $collections;
@@ -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,