@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use WrapIt\WrapIt; |
| 6 | 6 | use WrapIt\Exceptions\WrapItParameterException; |
| 7 | -use WrapIt\Exceptions\WrapItResponseException; |
|
| 8 | 7 | use WrapIt\Http\WrapItApiRequester; |
| 9 | 8 | use WrapIt\Http\WrapItPushRequester; |
| 10 | 9 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | $this->config["domain"] = str_replace("https://", "", $this->config["domain"]); |
| 47 | 47 | $this->config["domain"] = str_replace("http://", "", $this->config["domain"]); |
| 48 | 48 | $this->config["domain"] = rtrim($this->config["domain"], "/"); |
| 49 | - $this->server_uri = "https://".$this->config["domain"]; |
|
| 49 | + $this->server_uri = "https://" . $this->config["domain"]; |
|
| 50 | 50 | |
| 51 | 51 | $this->domain = $this->config["domain"]; |
| 52 | 52 | $this->public_key = $this->config["client_id"]; |
@@ -40,8 +40,8 @@ |
||
| 40 | 40 | curl_setopt($ch, CURLOPT_URL, $url); |
| 41 | 41 | curl_setopt($ch, CURLOPT_USERAGENT, $data["useragent"]); |
| 42 | 42 | if ($data["post"] != null) { |
| 43 | - $data["headers"][] = "Content-type: ".$data["body_type"]; |
|
| 44 | - $data["headers"][] = "Charset: ".$data["body_charset"]; |
|
| 43 | + $data["headers"][] = "Content-type: " . $data["body_type"]; |
|
| 44 | + $data["headers"][] = "Charset: " . $data["body_charset"]; |
|
| 45 | 45 | |
| 46 | 46 | switch ($data["body_type"]) { |
| 47 | 47 | case "application/x-www-form-urlencoded": |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | "url" => "https://" . $this->domain . "/" . $api, |
| 23 | 23 | "get" => $data, |
| 24 | 24 | "headers" => array( |
| 25 | - "Authorization: Bearer ".$this->access_token |
|
| 25 | + "Authorization: Bearer " . $this->access_token |
|
| 26 | 26 | ) |
| 27 | 27 | )); |
| 28 | 28 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | "url" => "https://" . $this->domain . "/" . $api, |
| 34 | 34 | "post" => $data, |
| 35 | 35 | "headers" => array( |
| 36 | - "Authorization: Bearer ".$this->access_token |
|
| 36 | + "Authorization: Bearer " . $this->access_token |
|
| 37 | 37 | ) |
| 38 | 38 | )); |
| 39 | 39 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | "post" => $data, |
| 30 | 30 | "body_type" => "applicaton/json", |
| 31 | 31 | "headers" => array( |
| 32 | - "Authorization: Bearer ".$this->access_token |
|
| 32 | + "Authorization: Bearer " . $this->access_token |
|
| 33 | 33 | ) |
| 34 | 34 | )); |
| 35 | 35 | } |