GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

GroupsArchivePayloadResponse::getPossibleErrors()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 8
cts 8
cp 1
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Slack API library.
5
 *
6
 * (c) Cas Leentfaar <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CL\Slack\Payload;
13
14
/**
15
 * @author Cas Leentfaar <[email protected]>
16
 */
17
class GroupsArchivePayloadResponse extends AbstractPayloadResponse
18
{
19
    /**
20
     * @inheritdoc
21
     */
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