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.

Code Duplication    Length = 60-60 lines in 2 locations

src/Service/Place/Base/OpenClosePeriod.php 1 location

@@ 17-76 (lines=60) @@
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
class OpenClosePeriod
18
{
19
    /**
20
     * @var int|null
21
     */
22
    private $day;
23
24
    /**
25
     * @var \DateTime|null
26
     */
27
    private $time;
28
29
    /**
30
     * @return bool
31
     */
32
    public function hasDay()
33
    {
34
        return $this->day !== null;
35
    }
36
37
    /**
38
     * @return int|null
39
     */
40
    public function getDay()
41
    {
42
        return $this->day;
43
    }
44
45
    /**
46
     * @param int|null $day
47
     */
48
    public function setDay($day)
49
    {
50
        $this->day = $day;
51
    }
52
53
    /**
54
     * @return bool
55
     */
56
    public function hasTime()
57
    {
58
        return $this->time !== null;
59
    }
60
61
    /**
62
     * @return \DateTime|null
63
     */
64
    public function getTime()
65
    {
66
        return $this->time;
67
    }
68
69
    /**
70
     * @param \DateTime|null $time
71
     */
72
    public function setTime(\DateTime $time = null)
73
    {
74
        $this->time = $time;
75
    }
76
}
77

src/Service/Place/Base/Period.php 1 location

@@ 17-76 (lines=60) @@
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
class Period
18
{
19
    /**
20
     * @var OpenClosePeriod|null
21
     */
22
    private $open;
23
24
    /**
25
     * @var OpenClosePeriod|null
26
     */
27
    private $close;
28
29
    /**
30
     * @return bool
31
     */
32
    public function hasOpen()
33
    {
34
        return $this->open !== null;
35
    }
36
37
    /**
38
     * @return OpenClosePeriod|null
39
     */
40
    public function getOpen()
41
    {
42
        return $this->open;
43
    }
44
45
    /**
46
     * @param OpenClosePeriod|null $open
47
     */
48
    public function setOpen(OpenClosePeriod $open = null)
49
    {
50
        $this->open = $open;
51
    }
52
53
    /**
54
     * @return bool
55
     */
56
    public function hasClose()
57
    {
58
        return $this->close !== null;
59
    }
60
61
    /**
62
     * @return OpenClosePeriod|null
63
     */
64
    public function getClose()
65
    {
66
        return $this->close;
67
    }
68
69
    /**
70
     * @param OpenClosePeriod|null $close
71
     */
72
    public function setClose(OpenClosePeriod $close = null)
73
    {
74
        $this->close = $close;
75
    }
76
}
77