<commit_before><?php
declare(strict_types=1);

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class BookEditRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        $this->sanitize();

        return [
            'title' => [ 'required', 'max:255' ],
            'volume' => [ 'max:255' ],
            'authors' => [ 'required', 'max:255' ],
        ];
    }<commit_msg>編集機能のバリデーション項目を追加<commit_after><?php
declare(strict_types=1);

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class BookEditRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        $this->sanitize();

        return [
            'title' => [ 'required', 'max:255' ],
            'volume' => [ 'max:255' ],
            'authors' => [ 'max:255' ],
            'price' => [ 'max:255' ],
            'publisher' => [ 'max:255' ],
            'status_id' => [ 'required', 'numeric' ],
        ];
    }
{'fraction_non_alphanumeric': 0.13829787234042554, 'fraction_numerical': 0.016270337922403004, 'mean_word_length': 2.016981132075472, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6523723', 'n_tokens_mistral': 497, 'n_tokens_neox': 485, 'n_words': 116}