| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 1 | protected function getPossibleErrors() |
|
| 20 | { |
||
| 21 | 1 | return array_merge(parent::getPossibleErrors(), [ |
|
| 22 | 1 | 'account_inactive' => 'Authentication token is for a deleted user or team', |
|
| 23 | 1 | 'cant_leave_last_channel' => 'Authenticated user cannot leave the last channel they are in', |
|
| 24 | 1 | 'channel_not_found' => 'Value passed for channel was invalid', |
|
| 25 | 1 | 'invalid_auth' => 'Invalid authentication token', |
|
| 26 | 1 | 'is_archived' => 'Group has been archived', |
|
| 27 | 1 | 'last_member' => 'Authenticated user is the last member of a group and cannot leave it', |
|
| 28 | 1 | 'not_authed' => 'No authentication token provided', |
|
| 29 | 1 | ]); |
|
| 30 | } |
||
| 31 | } |
||
| 32 |