Code Duplication    Length = 8-8 lines in 3 locations

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

@@ 61-68 (lines=8) @@
58
    /**
59
     * 使用默认设置推送消息给单个ios设备
60
     */
61
    public static function PushTokenIos($accessId, $secretKey, $content, $token, $environment)
62
    {
63
        $push = new XingeApp($accessId, $secretKey);
64
        $mess = new MessageIOS();
65
        $mess->setAlert($content);
66
        $ret = $push->PushSingleDevice($token, $mess, $environment);
67
        return $ret;
68
    }
69
70
    /**
71
     * 使用默认设置推送消息给单个android版账户
@@ 91-98 (lines=8) @@
88
    /**
89
     * 使用默认设置推送消息给单个ios版账户
90
     */
91
    public static function PushAccountIos($accessId, $secretKey, $content, $account, $environment)
92
    {
93
        $push = new XingeApp($accessId, $secretKey);
94
        $mess = new MessageIOS();
95
        $mess->setAlert($content);
96
        $ret = $push->PushSingleAccount(0, $account, $mess, $environment);
97
        return $ret;
98
    }
99
100
    /**
101
     * 使用默认设置推送消息给所有设备android版
@@ 121-128 (lines=8) @@
118
    /**
119
     * 使用默认设置推送消息给所有设备ios版
120
     */
121
    public static function PushAllIos($accessId, $secretKey, $content, $environment)
122
    {
123
        $push = new XingeApp($accessId, $secretKey);
124
        $mess = new MessageIOS();
125
        $mess->setAlert($content);
126
        $ret = $push->PushAllDevices(0, $mess, $environment);
127
        return $ret;
128
    }
129
130
    /**
131
     * 使用默认设置推送消息给标签选中设备android版