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 ( 340627...c6d03b )
by Ema
05:56 queued 04:30
created

Posts   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 18
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createItem() 0 4 1
A getItemsDataName() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Pnz\MattermostClient\Model\Post;
6
7
use Pnz\MattermostClient\Model\ModelCollectionOrdered;
8
9
final class Posts extends ModelCollectionOrdered
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14 2
    protected function createItem(array $data)
15
    {
16 2
        return Post::createFromArray($data);
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     */
22 2
    protected static function getItemsDataName()
23
    {
24 2
        return 'posts';
25
    }
26
}
27