Code Duplication    Length = 10-10 lines in 2 locations

plugins/cpanel-change-password/xmlapi.php 2 locations

@@ 1671-1680 (lines=10) @@
1668
    * @return mixed
1669
    * @link http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/ListResellersAccountsInformation XML API Call documentation
1670
    */
1671
    public function resellerstats($username)
1672
    {
1673
        if (!isset($username)) {
1674
            error_log("resellerstats requires that a username is passed to it");
1675
1676
            return false;
1677
        }
1678
1679
        return $this->xmlapi_query('resellerstats', array('reseller' => $username));
1680
    }
1681
1682
    /**
1683
    * Remove Reseller Privileges
@@ 1712-1721 (lines=10) @@
1709
    * @return mixed
1710
    * @link http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/SetResellersACLList XML API Call documentation
1711
    */
1712
    public function setacls($acl)
1713
    {
1714
        if (!isset($acl['reseller'])) {
1715
            error_log("setacls requires that reseller is defined in the array passed to it");
1716
1717
            return false;
1718
        }
1719
1720
        return $this->xmlapi_query('setacls', $acl);
1721
    }
1722
1723
    /**
1724
    * Terminate a Reseller's Account