Skip to content

Commit 668cc3e

Browse files
CrazyBoy49zgithub-actions[bot]
authored andcommitted
Fix styling
1 parent bbdc28e commit 668cc3e

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

src/LazySetting.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ public function __construct()
2020
public static function config(string $string = ''): string|array|null
2121
{
2222
$config = [
23-
'table' => self::getTable(),
23+
'table' => self::getTable(),
2424
'cache_key' => self::getCacheKey(),
2525
'cache_ttl' => self::getCacheTtl(),
26-
'default' => [
26+
'default' => [
2727
'group' => self::getDefaultGroup(),
28-
'type' => self::getDefaultType(),
28+
'type' => self::getDefaultType(),
2929
],
3030
];
3131

@@ -159,13 +159,13 @@ public function getFieldType(string $type = ''): string
159159

160160
return match ($type) {
161161
'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(),
169169
};
170170
}
171171

@@ -200,7 +200,7 @@ public function create(string $key, array $data, ?string $type = null): Setting
200200
{
201201
$setting = Setting::create([
202202
...$this->getKeyAndGroup($key),
203-
'type' => $type ?? 'string',
203+
'type' => $type ?? 'string',
204204
'value' => $data,
205205
]);
206206

src/Models/Setting.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Illuminate\Database\Eloquent\Factories\HasFactory;
66
use Illuminate\Database\Eloquent\Model;
7-
use Illuminate\Support\Str;
87
use Step2Dev\LazySetting\LazySetting;
98

109
/**

0 commit comments

Comments
 (0)