Code Duplication    Length = 8-8 lines in 2 locations

htdocs/lib2/logic/user.class.php 2 locations

@@ 263-270 (lines=8) @@
260
        return $this->reUser->getValue('country');
261
    }
262
263
    public function setCountryCode($value)
264
    {
265
        if ($value !== null && (sql_value("SELECT COUNT(*) FROM countries WHERE short='&1'", 0, $value) == 0)) {
266
            return false;
267
        }
268
269
        return $this->reUser->setValue('country', $value);
270
    }
271
272
    public function getLanguageCode()
273
    {
@@ 277-284 (lines=8) @@
274
        return $this->reUser->getValue('language');
275
    }
276
277
    public function setLanguageCode($value)
278
    {
279
        if ($value !== null && (sql_value("SELECT COUNT(*) FROM languages WHERE short='&1'", 0, $value) == 0)) {
280
            return false;
281
        }
282
283
        return $this->reUser->setValue('language', $value);
284
    }
285
286
    public function getLatitude()
287
    {