<commit_before><?php namespace Orchestra\Story\Listeners;

class AddValidationRules
{
    /**
     * Handle event.
     *
     * @param  object  $rules
     *
     * @return void
     */
    public function handle(& $rules)
    {
        $rules['page_permalink'] = ['required'];
        $rules['post_permalink'] = ['required'];
    }
}<commit_msg>Fixes validation class. Closes #52<commit_after><?php namespace Orchestra\Story\Listeners;

use Illuminate\Support\Fluent;

class AddValidationRules
{
    /**
     * Handle event.
     *
     * @param  \Illuminate\Support\Fluent  $rules
     *
     * @return void
     */
    public function handle(Fluent $rules)
    {
        $rules['page_permalink'] = ['required'];
        $rules['post_permalink'] = ['required'];
    }
}
{'fraction_non_alphanumeric': 0.14378238341968913, 'fraction_numerical': 0.0025906735751295338, 'mean_word_length': 2.5458715596330275, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6067119', 'n_tokens_mistral': 240, 'n_tokens_neox': 243, 'n_words': 46}