Completed
Branch master (6b4715)
by Bence
02:32
created
src/WrapIt/Helpers/WrapItPushHelper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/WrapIt/WrapIt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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"];
Please login to merge, or discard this patch.
src/WrapIt/Http/Requester.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
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":
Please login to merge, or discard this patch.
src/WrapIt/Http/WrapItUserRequester.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/WrapIt/Http/WrapItPushRequester.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.