| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class SignalRequest extends /** @scrutinizer ignore-call */ FormRequest |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Determine if the user is authorized to make this request. |
||
| 15 | * |
||
| 16 | * @return bool |
||
| 17 | */ |
||
| 18 | public function authorize() |
||
| 19 | { |
||
| 20 | return true; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get the validation rules that apply to the request. |
||
| 25 | * |
||
| 26 | * @return array |
||
| 27 | */ |
||
| 28 | public function rules() |
||
| 29 | { |
||
| 30 | return [ |
||
| 31 | |||
| 32 | 'session' => 'string|required', |
||
| 33 | 'to' => 'array', |
||
| 34 | 'to.*' => 'string|distinct', |
||
| 35 | 'type' => 'string', |
||
| 36 | 'data' => 'string', |
||
| 37 | ]; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the error messages for the defined validation rules. |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function messages() |
||
| 50 | ]; |
||
| 51 | } |
||
| 52 | } |
||
| 53 |