Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
22 | 1 | protected function getPossibleErrors() |
|
23 | { |
||
24 | 1 | return array_merge(parent::getPossibleErrors(), [ |
|
25 | 1 | 'channel_not_found' => 'Value passed for group was invalid', |
|
26 | 1 | 'already_archived' => 'Group has already been archived', |
|
27 | 1 | 'group_contains_others' => 'Restricted accounts cannot archive groups containing others', |
|
28 | 1 | 'last_ra_channel' => 'You cannot archive the last channel for a restricted account', |
|
29 | 1 | 'restricted_action' => 'A team preference prevents authenticated user from archiving', |
|
30 | 1 | ]); |
|
31 | } |
||
32 | } |
||
33 |