Code Duplication    Length = 15-15 lines in 2 locations

app/Support/Tencent/XgPush/XingeApp.php 2 locations

@@ 571-585 (lines=15) @@
568
    /**
569
     * 查询应用标签.
570
     */
571
    public function QueryTags($start = 0, $limit = 100)
572
    {
573
        $ret = ['ret_code' => -1];
574
        if (! is_int($start) || ! is_int($limit)) {
575
            $ret['err_msg'] = 'start or limit not valid';
576
577
            return $ret;
578
        }
579
        $params = [];
580
        $params['access_id'] = $this->accessId;
581
        $params['start'] = $start;
582
        $params['limit'] = $limit;
583
        $params['timestamp'] = time();
584
585
        return $this->callRestful(self::RESTAPI_QUERYTAGS, $params);
586
    }
587
588
    /**
@@ 769-783 (lines=15) @@
766
        return $this->callRestful(self::RESTAPI_QUERYTOKENSOFACCOUNT, $params);
767
    }
768
769
    public function DeleteTokenOfAccount($account, $deviceToken)
770
    {
771
        $ret = ['ret_code' => -1];
772
        if (! is_string($account) || ! is_string($deviceToken)) {
773
            $ret['err_msg'] = 'account or deviceToken is not valid';
774
775
            return $ret;
776
        }
777
        $params = [];
778
        $params['access_id'] = $this->accessId;
779
        $params['account'] = $account;
780
        $params['device_token'] = $deviceToken;
781
        $params['timestamp'] = time();
782
783
        return $this->callRestful(self::RESTAPI_DELETETOKENOFACCOUNT, $params);
784
    }
785
786
    public function DeleteAllTokensOfAccount($account)