Passed
Pull Request — master (#52)
by
unknown
04:06
created
QuickPay/API/Client.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public $ch;
20 20
 
21
-	/**
22
-	 * Base url for the selected API.
23
-	 *
24
-	 * @var string
25
-	 */
21
+    /**
22
+     * Base url for the selected API.
23
+     *
24
+     * @var string
25
+     */
26 26
     public $base_url;
27 27
 
28 28
     /**
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
      * Instantiate object
39 39
      *
40 40
      * @access public
41
-	 * @param string $auth_string	Format 'username:password' or ':apiKey'
42
-	 * @param string $base_url		The API to call. Use on of the constants.
43
-	 * @throws Exception
44
-	 */
41
+     * @param string $auth_string	Format 'username:password' or ':apiKey'
42
+     * @param string $base_url		The API to call. Use on of the constants.
43
+     * @throws Exception
44
+     */
45 45
     public function __construct($auth_string = '', $base_url = Constants::API_URL)
46 46
     {
47 47
         // Check if lib cURL is enabled
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $this->auth_string = $auth_string;
54 54
 
55 55
         // Set base url of selected API
56
-		$this->base_url =  $base_url;
56
+        $this->base_url =  $base_url;
57 57
 
58 58
         // Instantiate cURL object
59 59
         $this->authenticate();
@@ -84,20 +84,20 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $this->ch = curl_init();
86 86
 
87
-		$headers = array();
88
-		switch ($this->base_url) {
89
-			case Constants::API_URL_INVOICING:
90
-				$headers[] = 'Accept: application/vnd.api+json';
91
-				break;
87
+        $headers = array();
88
+        switch ($this->base_url) {
89
+            case Constants::API_URL_INVOICING:
90
+                $headers[] = 'Accept: application/vnd.api+json';
91
+                break;
92 92
 
93
-			case Constants::API_URL:
94
-				$headers[] = 'Accept-Version: v' . Constants::API_VERSION;
95
-				$headers[] = 'Accept: application/json';
96
-				break;
93
+            case Constants::API_URL:
94
+                $headers[] = 'Accept-Version: v' . Constants::API_VERSION;
95
+                $headers[] = 'Accept: application/json';
96
+                break;
97 97
 
98
-			default:
99
-				break;
100
-		}
98
+            default:
99
+                break;
100
+        }
101 101
 
102 102
         if (!empty($this->auth_string)) {
103 103
             $headers[] = 'Authorization: Basic ' . base64_encode($this->auth_string);
Please login to merge, or discard this patch.
QuickPay/API/Constants.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
     const API_URL = 'https://api.quickpay.net/';
18 18
     const API_VERSION = '10';
19 19
 
20
-	/**
21
-	 * Invoicing API
22
-	 */
23
-	const API_URL_INVOICING = 'https://invoicing.quickpay.net/';
20
+    /**
21
+     * Invoicing API
22
+     */
23
+    const API_URL_INVOICING = 'https://invoicing.quickpay.net/';
24 24
 }
Please login to merge, or discard this patch.