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

@@ 39-46 (lines=8) @@
36
     * @return bool
37
     * @throws RestUserException
38
     */
39
	public static function delete($request) {
40
        $owner = self::current($request);
41
        if(!$owner) {
42
            throw new RestUserException("No session found", 404, 404);
43
        }
44
        $owner->logOut();
45
        return true;
46
    }
47
48
    /**
49
     * @param \SS_HTTPRequest $request