@@ -159,7 +159,7 @@ |
||
| 159 | 159 | curl_setopt($this->client->ch, CURLOPT_CUSTOMREQUEST, $request_type); |
| 160 | 160 | |
| 161 | 161 | // If additional data is delivered, we will send it along with the API request |
| 162 | - if (is_array($form) && ! empty($form)) { |
|
| 162 | + if (is_array($form) && !empty($form)) { |
|
| 163 | 163 | curl_setopt($this->client->ch, CURLOPT_POSTFIELDS, http_build_query($form)); |
| 164 | 164 | } |
| 165 | 165 | |
@@ -21,15 +21,15 @@ |
||
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * __construct function. |
|
| 25 | - * |
|
| 26 | - * Instantiates the main class. |
|
| 27 | - * Creates a client which is passed to the request construct. |
|
| 28 | - * |
|
| 29 | - * @auth_string string Authentication string for QuickPay |
|
| 30 | - * |
|
| 31 | - * @access public |
|
| 32 | - */ |
|
| 24 | + * __construct function. |
|
| 25 | + * |
|
| 26 | + * Instantiates the main class. |
|
| 27 | + * Creates a client which is passed to the request construct. |
|
| 28 | + * |
|
| 29 | + * @auth_string string Authentication string for QuickPay |
|
| 30 | + * |
|
| 31 | + * @access public |
|
| 32 | + */ |
|
| 33 | 33 | public function __construct($auth_string = '') |
| 34 | 34 | { |
| 35 | 35 | $client = new Client($auth_string); |