style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -7,11 +7,16 @@
|
||||
|
||||
class SettingsStep implements TenantBootstrapStep
|
||||
{
|
||||
public function key(): string { return 'settings_seed'; }
|
||||
public function key(): string
|
||||
{
|
||||
return 'settings_seed';
|
||||
}
|
||||
|
||||
public function run(int $tenantId): void
|
||||
{
|
||||
if (!DB::getSchemaBuilder()->hasTable('settings')) return;
|
||||
if (! DB::getSchemaBuilder()->hasTable('settings')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$pairs = [
|
||||
['general.company_name', '회사명 미설정'],
|
||||
@@ -20,8 +25,8 @@ public function run(int $tenantId): void
|
||||
];
|
||||
foreach ($pairs as [$key,$val]) {
|
||||
DB::table('settings')->updateOrInsert(
|
||||
['tenant_id'=>$tenantId, 'key'=>$key],
|
||||
['value'=>$val, 'updated_at'=>now(), 'created_at'=>now()]
|
||||
['tenant_id' => $tenantId, 'key' => $key],
|
||||
['value' => $val, 'updated_at' => now(), 'created_at' => now()]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user