Code Duplication    Length = 9-9 lines in 2 locations

src/Payant.php 2 locations

@@ 632-640 (lines=9) @@
629
    * @param  [int] $product_id [Mandatory - Product ID]
630
    * @return [object] 
631
    */
632
    public function getProduct($product_id){
633
        if(!$product_id){
634
            throw new IsNullOrInvalid("Error Processing Request - Null/Invalid product_id");
635
        }
636
637
        $url = "/products/{$product_id}";
638
639
        return $this->sendRequest('get', $url);
640
    }
641
642
    
643
@@ 701-709 (lines=9) @@
698
    * @param $product_id [Mandatory - Product ID]
699
    * @return object           
700
    */
701
    public function deleteProduct($product_id){
702
        if(!$product_id){
703
            throw new IsNullOrInvalid("Error Processing Request - Null/Invalid Product Id");
704
        }
705
706
        $url = "/products/{$product_id}";
707
708
        return $this->sendRequest('delete', $url);
709
    }
710
711
712