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.
Completed
Push — master ( 8dcbdd...e0ff20 )
by Cas
23:59 queued 21:09
created

GroupsArchivePayloadResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 1
c 3
b 1
f 0
lcom 0
cbo 1
dl 0
loc 16
ccs 8
cts 8
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPossibleErrors() 0 10 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