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.
Test Failed
Pull Request — master (#3)
by Sascha
02:37
created

AbstractContainer::clear()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Conversio\Mail\Container;
4
5
/**
6
 * Class AbstractContainer
7
 * @package Conversio\Mail\Container
8
 */
9
abstract class AbstractContainer
10
{
11
    /**
12
     * @var array
13
     */
14
    protected $store = [];
15
16
    /**
17
     * @return bool
18
     */
19 2
    public function isEmpty(): bool
20
    {
21 2
        return empty($this->store);
22
    }
23
24
    /**
25
     * @return int
26
     */
27 3
    public function count(): int
28
    {
29 3
        return count($this->store);
30
    }
31
32
    /**
33
     * @return array
34
     */
35 1
    public function asArray(): array
36
    {
37 1
        return $this->store;
38
    }
39
40 1
    public function clear(): void
41
    {
42 1
        $this->store = [];
43
    }
44
}