| 1 | <?php |
||
| 11 | class RegistrationProcessRequest extends FormRequest |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Determine if the user is authorized to make this request. |
||
| 15 | * |
||
| 16 | * @throws \Cortex\Foundation\Exceptions\GenericException |
||
| 17 | * |
||
| 18 | * @return bool |
||
| 19 | */ |
||
| 20 | public function authorize() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Process given request data before validation. |
||
| 31 | * |
||
| 32 | * @param array $data |
||
| 33 | * |
||
| 34 | * @return array |
||
|
|
|||
| 35 | */ |
||
| 36 | public function process($data) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Configure the validator instance. |
||
| 46 | * |
||
| 47 | * @param \Illuminate\Validation\Validator $validator |
||
| 48 | * |
||
| 49 | * @return void |
||
| 50 | */ |
||
| 51 | public function withValidator($validator) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Get the validation rules that apply to the request. |
||
| 65 | * |
||
| 66 | * @return array |
||
| 67 | */ |
||
| 68 | public function rules() |
||
| 72 | } |
||
| 73 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.