@@ -20,12 +20,12 @@ public function __construct()
20
20
public static function config (string $ string = '' ): string |array |null
21
21
{
22
22
$ config = [
23
- 'table ' => self ::getTable (),
23
+ 'table ' => self ::getTable (),
24
24
'cache_key ' => self ::getCacheKey (),
25
25
'cache_ttl ' => self ::getCacheTtl (),
26
- 'default ' => [
26
+ 'default ' => [
27
27
'group ' => self ::getDefaultGroup (),
28
- 'type ' => self ::getDefaultType (),
28
+ 'type ' => self ::getDefaultType (),
29
29
],
30
30
];
31
31
@@ -159,13 +159,13 @@ public function getFieldType(string $type = ''): string
159
159
160
160
return match ($ type ) {
161
161
'string ' , 'text ' , 'textarea ' , 'richtext ' => 'string ' ,
162
- 'integer ' , 'int ' => 'integer ' ,
163
- 'float ' , 'double ' => 'float ' ,
164
- 'boolean ' , 'bool ' => 'boolean ' ,
165
- 'array ' => 'array ' ,
166
- 'json ' => 'json ' ,
167
- 'image ' => 'image ' ,
168
- default => self ::getDefaultType (),
162
+ 'integer ' , 'int ' => 'integer ' ,
163
+ 'float ' , 'double ' => 'float ' ,
164
+ 'boolean ' , 'bool ' => 'boolean ' ,
165
+ 'array ' => 'array ' ,
166
+ 'json ' => 'json ' ,
167
+ 'image ' => 'image ' ,
168
+ default => self ::getDefaultType (),
169
169
};
170
170
}
171
171
@@ -200,7 +200,7 @@ public function create(string $key, array $data, ?string $type = null): Setting
200
200
{
201
201
$ setting = Setting::create ([
202
202
...$ this ->getKeyAndGroup ($ key ),
203
- 'type ' => $ type ?? 'string ' ,
203
+ 'type ' => $ type ?? 'string ' ,
204
204
'value ' => $ data ,
205
205
]);
206
206
0 commit comments