Code Duplication    Length = 5-5 lines in 2 locations

src/API/CardApi.php 1 location

@@ 238-242 (lines=5) @@
235
     */
236
    public function landingpage($banner, $page_title, $can_share = false, $scene = 'SCENE_CARD_CUSTOM_CELL', $card_list = [])
237
    {
238
        if (empty($banner) || empty($page_title) || !is_bool($can_share) || !is_string($scene) || !is_array($card_list)) {
239
            $this->setError('参数错误');
240
241
            return false;
242
        }
243
244
        $queryStr               = [];
245
        $queryStr['banner']     = $banner;

src/API/TemplateApi.php 1 location

@@ 74-78 (lines=5) @@
71
     */
72
    public function send($touser, $template_id, $url, $data = [])
73
    {
74
        if (!is_string($touser) || !is_string($template_id) || !is_array($data) || empty($data)) {
75
            $this->setError('参数错误');
76
77
            return false;
78
        }
79
80
        $queryStr = [
81
            'touser'      => $touser,