Code Duplication    Length = 11-11 lines in 2 locations

src/Smoqadam/Telegram.php 2 locations

@@ 380-390 (lines=11) @@
377
     * @param null $reply_to_message_id
378
     * @param null $reply_markup
379
     */
380
    public function sendPhoto($photo, $chat_id = null, $caption = null, $reply_to_message_id = null, $reply_markup = null) {
381
        $res = $this->exec('sendPhoto', [
382
            'chat_id' => $this->getChatId($chat_id),
383
            'photo' => $photo,
384
            'caption' => $caption,
385
            'reply_to_message_id' => $reply_to_message_id,
386
            'reply_markup' => json_encode($reply_markup)
387
        ]);
388
389
        return $res;
390
    }
391
392
    /**
393
     * @param $video video file path
@@ 435-445 (lines=11) @@
432
     * @param null $reply_to_message_id
433
     * @param null $reply_markup
434
     */
435
    public function sendLocation($latitude, $longitude, $chat_id = null, $reply_to_message_id = null, $reply_markup = null) {
436
        $res = $this->exec('sendLocation', [
437
            'chat_id' => $this->getChatId($chat_id),
438
            'latitude' => $latitude,
439
            'longitude' => $longitude,
440
            'reply_to_message_id' => $reply_to_message_id,
441
            'reply_markup' => json_encode($reply_markup)
442
        ]);
443
444
        return $res;
445
    }
446
447
    /**
448
     * @param $document