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 ( cd256e...747ec6 )
by Ema
03:19
created

FileUploadInfo::getFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Pnz\MattermostClient\Model\File;
4
5
use Pnz\MattermostClient\Model\Model;
6
7
class FileUploadInfo extends Model
8
{
9
    protected function __construct(array $data)
10
    {
11
        parent::__construct([
0 ignored issues
show
Bug introduced by
The method __construct() cannot be called from this context as it is declared private in class Pnz\MattermostClient\Model\Model.

This check looks for access to methods that are not accessible from the current context.

If you need to make a method accessible to another context you can raise its visibility level in the defining class.

Loading history...
12
            'client_ids' => $data['client_ids'],
13
            'file_infos' => FileInfos::createFromArray($data['file_infos']),
14
        ]);
15
    }
16
17
    /**
18
     * @return FileInfos
19
     */
20
    public function getFileInfos(): FileInfos
21
    {
22
        return $this->data['file_infos'];
23
    }
24
25
    /**
26
     * @return string[]
27
     */
28
    public function getClientIds(): array
29
    {
30
        return $this->data['client_ids'];
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    protected static function getFields()
37
    {
38
        return [
39
            'file_infos',
40
            'client_ids',
41
        ];
42
    }
43
}
44