Code Duplication    Length = 7-7 lines in 2 locations

main/auth/cas/lib/CAS/client.php 2 locations

@@ 783-789 (lines=7) @@
780
     *
781
     * @return the login name of the authenticated user
782
     */
783
    function getUser()
784
    {
785
        if (empty($this->_user)) {
786
            phpCAS::error('this method should be used only after ' . __CLASS__ . '::forceAuthentication() or ' . __CLASS__ . '::isAuthenticated()');
787
        }
788
        return $this->_user;
789
    }
790
791
792
@@ 813-819 (lines=7) @@
810
        $this->_attributes = $attributes;
811
    }
812
813
    function getAttributes()
814
    {
815
        if (empty($this->_user)) { // if no user is set, there shouldn't be any attributes also...
816
            phpCAS::error('this method should be used only after ' . __CLASS__ . '::forceAuthentication() or ' . __CLASS__ . '::isAuthenticated()');
817
        }
818
        return $this->_attributes;
819
    }
820
821
    function hasAttributes()
822
    {