Code Duplication    Length = 8-8 lines in 2 locations

code/authenticators/HttpAuth.php 1 location

@@ 34-41 (lines=8) @@
31
		return $session;
32
	}
33
34
	public static function delete($request) {
35
        $owner = self::current($request);
36
        if(!$owner) {
37
            throw new RestUserException("No session found", 404, 404);
38
        }
39
        $owner->logOut();
40
        return true;
41
    }
42
43
44
        /**

code/authenticators/SessionAuth.php 1 location

@@ 34-41 (lines=8) @@
31
		return $session;
32
	}
33
34
	public static function delete($request) {
35
        $owner = self::current($request);
36
        if(!$owner) {
37
            throw new RestUserException("No session found", 404, 404);
38
        }
39
        $owner->logOut();
40
        return true;
41
    }
42
43
44
    /**