style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수 - 302개 파일 스타일 이슈 자동 수정 - 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Design\BomTemplate;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
use App\Support\Validation\BomItemRules;
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ReplaceItemsRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool { return true; }
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
$itemRules = collect(BomItemRules::base())
|
||||
->mapWithKeys(fn($rule, $key) => ["items.*.$key" => $rule])
|
||||
->mapWithKeys(fn ($rule, $key) => ["items.*.$key" => $rule])
|
||||
->all();
|
||||
|
||||
return ['items' => 'required|array|min:1'] + $itemRules;
|
||||
@@ -21,8 +25,8 @@ public function messages(): array
|
||||
{
|
||||
return [
|
||||
'items.required' => __('validation.required', ['attribute' => 'items']),
|
||||
'items.array' => __('validation.array', ['attribute' => 'items']),
|
||||
'items.min' => __('validation.min.array', ['attribute' => 'items', 'min' => 1]),
|
||||
'items.array' => __('validation.array', ['attribute' => 'items']),
|
||||
'items.min' => __('validation.min.array', ['attribute' => 'items', 'min' => 1]),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user