<commit_before><?php

namespace TypiCMS\Modules\News\Http\Requests;

use TypiCMS\Modules\Core\Http\Requests\AbstractFormRequest;

class FormRequest extends AbstractFormRequest
{
    public function rules()
    {
        return [
            'date'    => 'required|date',
            'image'   => 'image|max:2000',
            '*.title' => 'max:255',
            '*.slug'  => 'alpha_dash|max:255',
        ];
    }
}<commit_msg>validation<commit_after><?php

namespace TypiCMS\Modules\News\Http\Requests;

use TypiCMS\Modules\Core\Http\Requests\AbstractFormRequest;

class FormRequest extends AbstractFormRequest
{
    public function rules()
    {
        return [
            'date'    => 'required|date',
            'image'   => 'image|max:2000',
            'title.*' => 'max:255',
            'slug.*'  => 'alpha_dash|max:255',
        ];
    }
}
{'fraction_non_alphanumeric': 0.14806110458284372, 'fraction_numerical': 0.023501762632197415, 'mean_word_length': 2.367588932806324, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4102784', 'n_tokens_mistral': 279, 'n_tokens_neox': 271, 'n_words': 42}