Code Duplication    Length = 11-11 lines in 4 locations

src/Http/Requests/StorePermission.php 1 location

@@ 44-54 (lines=11) @@
41
     *
42
     * @return array
43
     */
44
    public function messages()
45
    {
46
        return [
47
            'required' => __('rbac::validation.required'),
48
            'string' => __('rbac::validation.string'),
49
            'regex' => __('rbac::validation.regex'),
50
            'min' => __('rbac::validation.min'),
51
            'max' => __('rbac::validation.max'),
52
            'unique' => __('rbac::validation.unique'),
53
        ];
54
    }
55
56
    /**
57
     * Get custom attributes for validator errors.

src/Http/Requests/StoreRole.php 1 location

@@ 45-55 (lines=11) @@
42
     *
43
     * @return array
44
     */
45
    public function messages()
46
    {
47
        return [
48
            'required' => __('rbac::validation.required'),
49
            'string' => __('rbac::validation.string'),
50
            'regex' => __('rbac::validation.regex'),
51
            'min' => __('rbac::validation.min'),
52
            'max' => __('rbac::validation.max'),
53
            'unique' => __('rbac::validation.unique'),
54
        ];
55
    }
56
57
    /**
58
     * Get custom attributes for validator errors.

src/Http/Requests/UpdatePermission.php 1 location

@@ 59-69 (lines=11) @@
56
     *
57
     * @return array
58
     */
59
    public function messages()
60
    {
61
        return [
62
            'required' => __('rbac::validation.required'),
63
            'string' => __('rbac::validation.string'),
64
            'regex' => __('rbac::validation.regex'),
65
            'min' => __('rbac::validation.min'),
66
            'max' => __('rbac::validation.max'),
67
            'unique' => __('rbac::validation.unique'),
68
        ];
69
    }
70
71
    /**
72
     * Get custom attributes for validator errors.

src/Http/Requests/UpdateRole.php 1 location

@@ 60-70 (lines=11) @@
57
     *
58
     * @return array
59
     */
60
    public function messages()
61
    {
62
        return [
63
            'required' => __('rbac::validation.required'),
64
            'string' => __('rbac::validation.string'),
65
            'regex' => __('rbac::validation.regex'),
66
            'min' => __('rbac::validation.min'),
67
            'max' => __('rbac::validation.max'),
68
            'unique' => __('rbac::validation.unique'),
69
        ];
70
    }
71
72
    /**
73
     * Get custom attributes for validator errors.