Code Duplication    Length = 10-10 lines in 2 locations

src/WHM/Accounts.php 2 locations

@@ 546-555 (lines=10) @@
543
     * @throws ClientExceptions
544
     * @throws Exception
545
     */
546
    public function hasDigestAuth($user)
547
    {
548
        $params = ['user' => $user];
549
        $result = $this->client->sendRequest("/json-api/has_digest_auth", "GET", $params);
550
        if ( ! empty($result['data'])) {
551
            return $result['data']['digestauth'] === 1 ? true : false;
552
        }
553
554
        return null;
555
    }
556
557
    /**
558
     * This function checks whether a cPanel user's home directory contains a valid .my.cnf file.
@@ 568-577 (lines=10) @@
565
     * @throws ClientExceptions
566
     * @throws Exception
567
     */
568
    public function hasMyCnfInHomeDirectory($user)
569
    {
570
        $params = ['user' => $user];
571
        $result = $this->client->sendRequest("/json-api/has_mycnf_for_cpuser", "GET", $params);
572
        if ( ! empty($result['data'])) {
573
            return $result['data']['has_mycnf_for_cpuser'] === 1 ? true : false;
574
        }
575
576
        return null;
577
    }
578
579
    /**
580
     * Modify a cPanel account's bandwidth quota.