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