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

src/classes/Ram.php 2 locations

@@ 153-166 (lines=14) @@
150
     * 
151
     * @return bool
152
     */
153
    public function ifExists($key)
154
    {
155
        $verifParams = verifTypeData(array(array('type' => 'string', 'data' => $key)));
156
        
157
        if(!$verifParams)
158
        {
159
            throw new \Exception('Erreur dans les paramètres de Ram->ifExists()');
160
        }
161
        
162
        $ret = $this->Server->get($key); //Récupère la valeur
163
        
164
        if($ret === false) {return false;}
165
        return true;
166
    }
167
    
168
    /**
169
     * Supprime une clé
@@ 175-186 (lines=12) @@
172
     * 
173
     * @return bool
174
     */
175
    public function delete($key)
176
    {
177
        $verifParams = verifTypeData(array(array('type' => 'string', 'data' => $key)));
178
        
179
        if(!$verifParams)
180
        {
181
            throw new \Exception('Erreur dans les paramètres de Ram->delete()');
182
        }
183
        
184
        if($this->Server->delete($key)) {return true;}
185
        return false;
186
    }
187
    
188
    /**
189
     * Permet de retourner la valeur d'une clé.