1 | <?php |
||
20 | trait HasValidation |
||
21 | { |
||
22 | /** |
||
23 | * @param $args |
||
24 | * @param $rules |
||
25 | * @return Validator |
||
26 | */ |
||
27 | protected function getValidator($args, $rules): Validator |
||
40 | |||
41 | /** |
||
42 | * @param Validator|\Illuminate\Validation\Validator $validator |
||
43 | * @param array $args |
||
44 | */ |
||
45 | private function afterValidation(Validator $validator, array $args): void |
||
55 | |||
56 | /** |
||
57 | * @param Validator $validator |
||
58 | * @param array $args |
||
59 | * @return \Generator|null |
||
60 | */ |
||
61 | public function validate(Validator $validator, array $args = []): ?\Generator |
||
65 | |||
66 | /** |
||
67 | * @return array |
||
68 | */ |
||
69 | public function messages(): array |
||
73 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.