Code Duplication    Length = 9-9 lines in 2 locations

src/Payant.php 2 locations

@@ 160-168 (lines=9) @@
157
     * @param  string $client_id
158
     * @return object
159
    */
160
    public function getClient($client_id = null){
161
        if(!$client_id){
162
            throw new IsNullOrInvalid("Error Processing Request - Null/Invalid Client Id");
163
        }
164
165
        $url = "/clients/{$client_id}";
166
167
        return $this->sendRequest('get', $url);
168
    }
169
170
    
171
@@ 206-214 (lines=9) @@
203
     * [deleteClient]
204
     * @param  string $client_id [description]
205
     */
206
    public function deleteClient($client_id = null){
207
        if(!$client_id){
208
            throw new IsNullOrInvalid("Error Processing Request - Null/Invalid Client Id");
209
        }
210
211
        $url = "/clients/{$client_id}";
212
213
        return $this->sendRequest('delete', $url);
214
    }
215
216
217