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.
Passed
Push — master ( 3fb9ca...8cc1d2 )
by Kristjan
03:55 queued 54s
created

InnerChronoIterator::current()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace COG\ChronoShifter\Iterator;
4
5
use COG\ChronoShifter\Shifter\Shifter;
6
7
/**
8
 * @author Kristjan Siimson <[email protected]>
9
 * @package Iterator\Domain
10
 */
11
class InnerChronoIterator extends ChronoIterator
12
{
13
    /**
14
     * @var Shifter
15
     */
16
    private $outerShifter;
17
18
    /**
19
     * @param Shifter $innerShifter
20
     * @param Shifter $outerShifter
21
     * @param string $date
22
     */
23 2
    public function __construct(Shifter $innerShifter, Shifter $outerShifter, $date)
24
    {
25 2
        parent::__construct($innerShifter, $date);
26 2
        $this->outerShifter = $outerShifter;
27 2
    }
28
29
    /**
30
     * @return string
31
     */
32 2
    public function current()
33
    {
34 2
        return $this->outerShifter->shift(parent::current());
35
    }
36
}
37