Code Duplication    Length = 10-10 lines in 4 locations

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

@@ 1258-1267 (lines=10) @@
1255
    * @link http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/DomainUserData
1256
    */
1257
1258
    public function domainuserdata( $domain )
1259
    {
1260
        if (!isset( $domain ) ) {
1261
            error_log("domainuserdata requires that domain is passed to it");
1262
1263
            return false;
1264
        }
1265
1266
        return $this->xmlapi_query("domainuserdata", array( 'domain' => $domain ) );
1267
    }
1268
1269
    /**
1270
    * Change a site's IP Address
@@ 1406-1415 (lines=10) @@
1403
    * @return mixed
1404
    * @link http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/DeleteDNSZone XML API Call documentation
1405
    */
1406
    public function killdns($domain)
1407
    {
1408
        if (!isset($domain)) {
1409
            error_log("killdns requires that domain is passed to it");
1410
1411
            return false;
1412
        }
1413
1414
        return $this->xmlapi_query('killdns', array('domain' => $domain));
1415
    }
1416
1417
    /**
1418
    * Return a List of all DNS Zones on the server
@@ 1440-1449 (lines=10) @@
1437
    * @see editdnsrecord()
1438
    * @see getdnsrecord()
1439
    */
1440
    public function dumpzone($domain)
1441
    {
1442
        if (!isset($domain)) {
1443
            error_log("dumpzone requires that a domain is passed to it");
1444
1445
            return false;
1446
        }
1447
1448
        return $this->xmlapi_query('dumpzone', array('domain' => $domain));
1449
    }
1450
1451
    /**
1452
    * Return a Nameserver's IP
@@ 1498-1507 (lines=10) @@
1495
    * @return mixed
1496
    * @link http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/ResetZone XML API Call documentation
1497
    */
1498
    public function resetzone($domain)
1499
    {
1500
        if ( !isset($domain) ) {
1501
            error_log("resetzone requires that a domain name is passed to it");
1502
1503
            return false;
1504
        }
1505
1506
        return $this->xmlapi_query('resetzone', array('domain' => $domain));
1507
    }
1508
1509
    ####
1510
    # Package Functions