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.

WebHostReportEntryItemCollection::key()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
namespace Checkdomain\Comodo\Model\Result;
3
use Checkdomain\Comodo\Model\Exception\UnknownException;
4
5
/**
6
 * Class WebHostReportEntryItemCollection
7
 */
8
class WebHostReportEntryItemCollection implements \Iterator
9
{
10
11
    /**
12
     * @var int
13
     */
14
    private $position = 0;
15
16
    /**
17
     * @var array
18
     */
19
    private $entries = [];
20
21
    /**
22
     *
23
     */
24
    public function rewind() {
25
        $this->position = 0;
26
    }
27
28
    /**
29
     * @return mixed
30
     */
31
    public function current() {
32
        return $this->entries[$this->position];
33
    }
34
35
    /**
36
     * @return int
37
     */
38
    public function key() {
39
        return $this->position;
40
    }
41
42
    /**
43
     *
44
     */
45
    public function next() {
46
        ++$this->position;
47
    }
48
49
    /**
50
     * @param WebHostReportEntry $webHostReportEntry
51
     * @return WebHostReportEntryCollection
52
     */
53
    public function add($webHostReportEntry) {
54
        $this->entries[] = $webHostReportEntry;
55
56
        return $this;
57
    }
58
59
    /**
60
     * @return bool
61
     */
62
    public function valid() {
63
        return isset($this->entries[$this->position]);
64
    }
65
66
}
67