Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| DeleteSectionRemoteConfigRequest | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| rules | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Http\Requests\v2\RemoteConfig; |
| 4 | |
| 5 | use App\Http\Requests\v2\Parameter\Concerns\AuthorizesVengresoAdmin; |
| 6 | use Illuminate\Foundation\Http\FormRequest; |
| 7 | |
| 8 | /** |
| 9 | * Request for deleting (nulling) a config section. |
| 10 | * |
| 11 | * Admin-only endpoint with optional change description. |
| 12 | * |
| 13 | * @property string|null $change_description Optional description of the change |
| 14 | */ |
| 15 | class DeleteSectionRemoteConfigRequest extends FormRequest |
| 16 | { |
| 17 | use AuthorizesVengresoAdmin; |
| 18 | |
| 19 | /** |
| 20 | * Get the validation rules that apply to the request. |
| 21 | * |
| 22 | * @return array<string, mixed> |
| 23 | */ |
| 24 | public function rules(): array |
| 25 | { |
| 26 | return [ |
| 27 | 'change_description' => ['sometimes', 'nullable', 'string', 'max:500'], |
| 28 | ]; |
| 29 | } |
| 30 | } |