Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
48 | protected function getPossibleErrors() |
||
49 | { |
||
50 | return array_merge(parent::getPossibleErrors(), [ |
||
51 | 'channel_not_found' => 'Value passed for group was invalid', |
||
52 | 'already_archived' => 'Group has already been archived', |
||
53 | 'group_contains_others' => 'Restricted accounts cannot archive groups containing others', |
||
54 | 'last_ra_channel' => 'You cannot archive the last channel for a restricted account', |
||
55 | 'restricted_action' => 'A team preference prevents authenticated user from archiving', |
||
56 | ]); |
||
57 | } |
||
58 | } |
||
59 |