@@ -17,6 +17,7 @@ |
||
| 17 | 17 | * Redefine the exception so message isn't optional |
| 18 | 18 | * |
| 19 | 19 | * @access public |
| 20 | + * @param string $message |
|
| 20 | 21 | * @return void |
| 21 | 22 | */ |
| 22 | 23 | public function __construct($message, $code = 0, Exception $previous = null) |
@@ -12,13 +12,13 @@ |
||
| 12 | 12 | class Exception extends \Exception |
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | - * __Construct function. |
|
| 16 | - * |
|
| 17 | - * Redefine the exception so message isn't optional |
|
| 18 | - * |
|
| 19 | - * @access public |
|
| 20 | - * @return void |
|
| 21 | - */ |
|
| 15 | + * __Construct function. |
|
| 16 | + * |
|
| 17 | + * Redefine the exception so message isn't optional |
|
| 18 | + * |
|
| 19 | + * @access public |
|
| 20 | + * @return void |
|
| 21 | + */ |
|
| 22 | 22 | public function __construct($message, $code = 0, Exception $previous = null) |
| 23 | 23 | { |
| 24 | 24 | // Make sure everything is assigned properly |
@@ -27,6 +27,7 @@ discard block |
||
| 27 | 27 | * Instantiates the object |
| 28 | 28 | * |
| 29 | 29 | * @access public |
| 30 | + * @param Client $client |
|
| 30 | 31 | * @return object |
| 31 | 32 | */ |
| 32 | 33 | public function __construct( $client ) |
@@ -68,6 +69,7 @@ discard block |
||
| 68 | 69 | * Performs an API POST request |
| 69 | 70 | * |
| 70 | 71 | * @access public |
| 72 | + * @param string $path |
|
| 71 | 73 | * @return Response |
| 72 | 74 | */ |
| 73 | 75 | public function post( $path, $form = array() ) |
@@ -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); |