Code Duplication    Length = 10-10 lines in 2 locations

app/Http/Requests/StoreUserRequest.php 1 location

@@ 38-47 (lines=10) @@
35
        ];
36
    }
37
38
    public function messages()
39
    {
40
        return [
41
            'cont_eval_date.required_if'  => 'You must select a Continuous Evaluation date if Continuous Evaluation is set to Yes',
42
            'accessTokens.cac_issue_date.required_if'  => 'You must select a CAC Issued Date if CAC Issued is set to Yes',
43
            'accessTokens.cac_expiration_date.required_if'  => 'You must select a CAC Expiration Date if CAC Issued is set to Yes',
44
            'accessTokens.sipr_issue_date.required_if'  => 'You must select a SIPR TOKEN Issued Date if SIPR TOKEN Issued is set to Yes',
45
            'accessTokens.sipr_expiration_date.required_if'  => 'You must select a SIPR TOKEN Expiration Date if SIPR TOKEN Issued is set to Yes',
46
        ];
47
    }
48
}
49

app/Http/Requests/UpdateUserRequest.php 1 location

@@ 35-44 (lines=10) @@
32
        ];
33
    }
34
35
    public function messages()
36
    {
37
        return [
38
            'cont_eval_date.required_if'  => 'You must select a Continuous Evaluation Eate if Continuous Evaluation is set to Yes',
39
            'accessTokens.cac_issue_date.required_if'  => 'You must select a CAC Issued Date if CAC Issued is set to Yes',
40
            'accessTokens.cac_expiration_date.required_if'  => 'You must select a CAC Expiration date if CAC Issued is set to Yes',
41
            'accessTokens.sipr_issue_date.required_if'  => 'You must select a SIPR TOKEN Issued date if SIPR TOKEN Issued is set to Yes',
42
            'accessTokens.sipr_expiration_date.required_if'  => 'You must select a SIPR TOKEN Expiration Date if SIPR TOKEN Issued is set to Yes',
43
        ];
44
    }
45
}
46