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 = 8-8 lines in 2 locations

src/Modules/Box.php 2 locations

@@ 77-84 (lines=8) @@
74
     * @throws \Exception When boxid is not present
75
     * @return object Result of the request
76
     */
77
    public function Update($box)
78
    {
79
        if (!isset($box['boxid'])) {
80
            throw new \Exception("box must contain a boxid");
81
        }
82
83
        return $this->request(self::HTTP_PUT, "/".$box['boxid'], $box);
84
    }
85
86
    /**
87
     * Update a box
@@ 93-100 (lines=8) @@
90
     * @throws \Exception When versionid is not present
91
     * @return object Result of the request
92
     */
93
    public function UpdateVersion($boxid, $version)
94
    {
95
        if (!isset($version['versionid'])) {
96
            throw new \Exception("version must contain a versionid");
97
        }
98
99
        return $this->request(self::HTTP_PUT, "/".$boxid."/version/".$version['versionid'], $version);
100
    }
101
}
102