PluginProbe
Metricool – Social media and site statistics / 2.1.1
Metricool – Social media and site statistics v2.1.1
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
← All changes | config/user_settings.php +13 -5 2.0.2 → 2.1.1 View file →
@@ -1,38 +1,44 @@
1 1 <?php
2 2
3 +use Metricool\Features\UserSettings\Rules\FirstDayOfWeekRule;
4 +use Metricool\Features\UserSettings\Rules\SupportedLanguageRule;
5 +use Metricool\Features\UserSettings\Rules\TimezoneRule;
6 +
3 7 return [
4 8 'fields' => [
5 9 'blogId' => [
6 10 'storage' => 'default',
11 + 'validators' => ['string'],
7 12 ],
8 13 'name' => [
9 14 'section' => 'personal',
10 15 'storage' => 'metricool',
11 - 'validators' => ['required'],
16 + 'validators' => ['required', 'string'],
12 17 ],
13 18 'lastName' => [
14 19 'section' => 'personal',
15 20 'storage' => 'metricool',
21 + 'validators' => ['string'],
16 22 ],
17 23 'language' => [
18 24 'section' => 'preferences',
19 25 'storage' => 'metricool',
20 - 'validators' => ['supportedLanguage'],
26 + 'validators' => [SupportedLanguageRule::class],
21 27 ],
22 28 'timezone' => [
23 29 'section' => 'preferences',
24 30 'storage' => 'metricool',
25 - 'validators' => ['timezone'],
31 + 'validators' => [TimezoneRule::class],
26 32 ],
27 33 'firstDayOfTheWeek' => [
28 34 'section' => 'preferences',
29 35 'storage' => 'metricool',
30 - 'validators' => ['firstDayOfWeek'],
36 + 'validators' => [FirstDayOfWeekRule::class],
31 37 ],
32 38 'sendToAlternativeEmail' => [
33 39 'section' => 'account',
34 - 'validators' => ['required'],
40 + 'validators' => ['required', 'boolean'],
35 41 'type' => 'boolean',
36 42 'storage' => 'metricool',
37 43 ],
38 44 'alternativeEmail' => [
@@ -43,11 +49,13 @@
43 49 'trackingScriptActive' => [
44 50 'section' => 'tracking',
45 51 'type' => 'boolean',
46 52 'defaultValue' => false,
53 + 'validators' => ['boolean'],
47 54 ],
48 55 'trackingScriptHash' => [
49 56 'section' => 'tracking',
57 + 'validators' => ['string'],
50 58 ]
51 59 ],
52 60 'storages' => [
53 61 'default' => [