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