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.

FileUploadInfo::getFileInfos()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Pnz\MattermostClient\Model\File;
6
7
use Pnz\MattermostClient\Model\Model;
8
9
class FileUploadInfo extends Model
10
{
11
    protected function __construct(array $data)
12
    {
13
        parent::__construct([
14
            'client_ids' => $data['client_ids'],
15
            'file_infos' => FileInfos::createFromArray($data['file_infos']),
16
        ]);
17
    }
18
19
    public function getFileInfos(): FileInfos
20
    {
21
        return $this->data['file_infos'];
22
    }
23
24
    /**
25
     * @return string[]
26
     */
27
    public function getClientIds(): array
28
    {
29
        return $this->data['client_ids'];
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    protected static function getFields(): array
36
    {
37
        return [
38
            'file_infos',
39
            'client_ids',
40
        ];
41
    }
42
}
43