| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class midgard_admin_user_validator |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Test if username is available. |
||
| 18 | * |
||
| 19 | * If the formdata contains a person GUID, it is ignored during the search |
||
| 20 | * |
||
| 21 | * @var array $fields The form's data |
||
| 22 | * @return mixed True on success, array of error messages otherwise |
||
| 23 | */ |
||
| 24 | 4 | public function is_username_available(array $fields) |
|
| 43 |