| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class PublishStreamRequest extends /** @scrutinizer ignore-call */ FormRequest |
||
| 12 | { |
||
| 13 | |||
| 14 | |||
| 15 | /** |
||
| 16 | * Determine if the user is authorized to make this request. |
||
| 17 | * |
||
| 18 | * @return bool |
||
| 19 | */ |
||
| 20 | public function authorize() |
||
| 21 | { |
||
| 22 | return true; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get the validation rules that apply to the request. |
||
| 27 | * |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | public function rules() |
||
| 31 | { |
||
| 32 | return [ |
||
| 33 | 'rtspUri' => 'string|required', |
||
| 34 | 'type' => 'string', |
||
| 35 | 'adaptativeBitrate' => 'boolean', |
||
| 36 | 'onlyPlayWithSubscribers' => 'boolean', |
||
| 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() |
||
| 52 | ]; |
||
| 53 | } |
||
| 54 | } |
||
| 55 |