Code Duplication    Length = 8-8 lines in 3 locations

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

@@ 295-302 (lines=8) @@
292
     * @param float $value
293
     * @return bool
294
     */
295
    public function setLatitude($value)
296
    {
297
        if (($value + 0) > 90 || ($value + 0) < - 90) {
298
            return false;
299
        }
300
301
        return $this->reUser->setValue('latitude', $value + 0);
302
    }
303
304
    public function getLongitude()
305
    {
@@ 313-320 (lines=8) @@
310
     * @param float $value
311
     * @return bool
312
     */
313
    public function setLongitude($value)
314
    {
315
        if (($value + 0) > 180 || ($value + 0) < -180) {
316
            return false;
317
        }
318
319
        return $this->reUser->setValue('longitude', $value + 0);
320
    }
321
322
    public function getNotifyRadius()
323
    {
@@ 331-338 (lines=8) @@
328
     * @param int $value
329
     * @return bool
330
     */
331
    public function setNotifyRadius($value)
332
    {
333
        if (($value + 0) < 0 || ($value + 0) > 150) {
334
            return false;
335
        }
336
337
        return $this->reUser->setValue('notify_radius', $value + 0);
338
    }
339
340
    public function getNotifyOconly()
341
    {