Passed
Branch master (72025d)
by
unknown
02:41
created
src/URL.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -93,12 +93,12 @@
 block discarded – undo
93 93
 		}
94 94
 
95 95
 		$url = parse_url($url);
96
-		$this->host      = !isset($url['host'])      ? null : $url['host'];
97
-		$this->port      = !isset($url['port'])      ? null : $url['port'];
98
-		$this->path      = !isset($url['path'])      ? null : $url['path'];
99
-		$this->scheme    = !isset($url['scheme'])    ? null : $url['scheme'];
100
-		$this->query     = !isset($url['query'])     ? null : $url['query'];
101
-		$this->fragment  = !isset($url['fragment'])  ? null : $url['fragment'];
96
+		$this->host      = !isset($url['host']) ? null : $url['host'];
97
+		$this->port      = !isset($url['port']) ? null : $url['port'];
98
+		$this->path      = !isset($url['path']) ? null : $url['path'];
99
+		$this->scheme    = !isset($url['scheme']) ? null : $url['scheme'];
100
+		$this->query     = !isset($url['query']) ? null : $url['query'];
101
+		$this->fragment  = !isset($url['fragment']) ? null : $url['fragment'];
102 102
 
103 103
 		if($this->query){
104 104
 			parse_str($this->query, $this->parsedquery);
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,8 @@
 block discarded – undo
97 97
 		$this->body   = $body;
98 98
 
99 99
 		$method = strtoupper($method);
100
-		if(in_array($method, ['GET', 'POST'], true)){ // @todo
100
+		if(in_array($method, ['GET', 'POST'], true)){
101
+// @todo
101 102
 			$this->method = $method;
102 103
 		}
103 104
 
Please login to merge, or discard this patch.
src/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
 		// set defaults
70 70
 		curl_setopt_array($this->curl, [
71
-			CURLOPT_PROTOCOLS => CURLPROTO_HTTP|CURLPROTO_HTTPS|CURLPROTO_FTP|CURLPROTO_FTPS,
71
+			CURLOPT_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS | CURLPROTO_FTP | CURLPROTO_FTPS,
72 72
 			CURLOPT_RETURNTRANSFER => true,
73 73
 			CURLOPT_SSL_VERIFYPEER => (bool)$ca_info,
74 74
 			CURLOPT_SSL_VERIFYHOST => 2, // Support for value 1 removed in cURL 7.28.1
Please login to merge, or discard this patch.