Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 360-365 (lines=6) @@
357
        $params['timestamp'] = time();
358
        $params['environment'] = $environment;
359
360
        if (! is_null($message->getLoopInterval()) && $message->getLoopInterval() > 0
361
            && ! is_null($message->getLoopTimes()) && $message->getLoopTimes() > 0
362
        ) {
363
            $params['loop_interval'] = $message->getLoopInterval();
364
            $params['loop_times'] = $message->getLoopTimes();
365
        }
366
        //var_dump($params);
367
368
        return $this->callRestful(self::RESTAPI_PUSHALLDEVICE, $params);
@@ 428-433 (lines=6) @@
425
        $params['timestamp'] = time();
426
        $params['environment'] = $environment;
427
428
        if (! is_null($message->getLoopInterval()) && $message->getLoopInterval() > 0
429
            && ! is_null($message->getLoopTimes()) && $message->getLoopTimes() > 0
430
        ) {
431
            $params['loop_interval'] = $message->getLoopInterval();
432
            $params['loop_times'] = $message->getLoopTimes();
433
        }
434
435
        return $this->callRestful(self::RESTAPI_PUSHTAGS, $params);
436
    }