Code Duplication    Length = 7-7 lines in 3 locations

main/auth/cas/lib/CAS.php 3 locations

@@ 1094-1100 (lines=7) @@
1091
     * @return true if authenticated, false otherwise.
1092
     * @since 0.4.22 by Brendan Arnold
1093
     */
1094
    function isSessionAuthenticated()
1095
    {
1096
        global $PHPCAS_CLIENT;
1097
        if (!is_object($PHPCAS_CLIENT)) {
1098
            phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
1099
        }
1100
        return ($PHPCAS_CLIENT->isSessionAuthenticated());
1101
    }
1102
1103
    /**
@@ 1165-1171 (lines=7) @@
1162
     *
1163
     * @return the login name of the authenticated user
1164
     */
1165
    function getServerLoginURL()
1166
    {
1167
        global $PHPCAS_CLIENT;
1168
        if (!is_object($PHPCAS_CLIENT)) {
1169
            phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
1170
        }
1171
        return $PHPCAS_CLIENT->getServerLoginURL();
1172
    }
1173
1174
    /**
@@ 1266-1272 (lines=7) @@
1263
     *
1264
     * @return the login name of the authenticated user
1265
     */
1266
    function getServerLogoutURL()
1267
    {
1268
        global $PHPCAS_CLIENT;
1269
        if (!is_object($PHPCAS_CLIENT)) {
1270
            phpCAS:: error('this method should not be called before ' . __CLASS__ . '::client() or ' . __CLASS__ . '::proxy()');
1271
        }
1272
        return $PHPCAS_CLIENT->getServerLogoutURL();
1273
    }
1274
1275
    /**