| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 9 | public function rules() |
||
| 10 | { |
||
| 11 | return [ |
||
| 12 | 'name' => 'required|max:128', |
||
| 13 | 'location' => 'required|max:128', |
||
| 14 | 'ip' => 'required', |
||
| 15 | 'work_path' => 'required|max:128', |
||
| 16 | 'gdaemon_host' => 'required|max:128', |
||
| 17 | 'gdaemon_port' => 'required|numeric|digits_between:1,65535', |
||
| 18 | 'gdaemon_login' => 'max:128', |
||
| 19 | 'gdaemon_password' => 'max:128', |
||
| 20 | 'gdaemon_api_key' => '', |
||
| 21 | 'gdaemon_server_cert' => 'sometimes', |
||
| 22 | 'client_certificate_id' => 'numeric|exists:client_certificates,id', |
||
| 23 | ]; |
||
| 36 |