Skip to content
This repository was archived by the owner on May 18, 2020. It is now read-only.

Commit 8109d18

Browse files
committed
API-20: Modified Wrapper file
1 parent bd0c417 commit 8109d18

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Wrapper/Mailin.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace SendinBlue\SendinBlueApiBundle\Wrapper;
44

5-
use RuntimeException;
65
/**
76
* SendinBlue REST client
87
*
@@ -22,7 +21,7 @@ public function __construct($api_key)
2221
{
2322
if(!function_exists('curl_init'))
2423
{
25-
throw new RuntimeException('Mailin requires CURL module');
24+
throw new \RuntimeException('Mailin requires cURL module');
2625
}
2726
$this->base_url = "https://api.sendinblue.com/v2.0";
2827
$this->api_key = $api_key;
@@ -51,7 +50,7 @@ private function do_request($resource,$method,$input)
5150
$info = curl_getinfo($ch);
5251
if(curl_errno($ch))
5352
{
54-
throw new RuntimeException('Curl error: ' . curl_error($ch). '\n');
53+
throw new \RuntimeException('Curl error: ' . curl_error($ch));
5554
}
5655
curl_close($ch);
5756
return json_decode($data,true);

0 commit comments

Comments
 (0)