Code Duplication    Length = 9-9 lines in 2 locations

src/Payant.php 2 locations

@@ 781-789 (lines=9) @@
778
    * @param  int $product_id [Mandatory - Product ID]
779
    * @return object 
780
    */
781
    public function getProduct($product_id){
782
        if(!$product_id){
783
            throw new IsNullOrInvalid("Error Processing Request - Null/Invalid product_id");
784
        }
785
786
        $url = "/products/{$product_id}";
787
788
        return $this->sendRequest('get', $url);
789
    }
790
791
    
792
@@ 850-858 (lines=9) @@
847
    * @param $product_id [Mandatory - Product ID]
848
    * @return object           
849
    */
850
    public function deleteProduct($product_id){
851
        if(!$product_id){
852
            throw new IsNullOrInvalid("Error Processing Request - Null/Invalid Product Id");
853
        }
854
855
        $url = "/products/{$product_id}";
856
857
        return $this->sendRequest('delete', $url);
858
    }
859
860
861