Completed
Pull Request — master (#23)
by Lars
02:48
created
QuickPay/API/Exception.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,13 +12,13 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
QuickPay/API/Request.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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() )
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
QuickPay/QuickPay.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,15 +21,15 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.