Completed
Push — master ( 600877...0dfca5 )
by smiley
01:35
created
src/HTTPClientInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
 	 * HTTPClientInterface constructor.
21 21
 	 *
22 22
 	 * @param \chillerlan\Traits\ContainerInterface $options
23
+	 * @return void
23 24
 	 */
24 25
 	public function __construct(ContainerInterface $options);
25 26
 
Please login to merge, or discard this patch.
src/CurlClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 		curl_setopt_array($this->http, [
40 40
 			CURLOPT_HEADER         => false,
41 41
 			CURLOPT_RETURNTRANSFER => true,
42
-			CURLOPT_PROTOCOLS      => CURLPROTO_HTTP|CURLPROTO_HTTPS,
42
+			CURLOPT_PROTOCOLS      => CURLPROTO_HTTP | CURLPROTO_HTTPS,
43 43
 			CURLOPT_CAINFO         => $this->options->ca_info,
44 44
 			CURLOPT_SSL_VERIFYPEER => true,
45 45
 			CURLOPT_SSL_VERIFYHOST => 2,
Please login to merge, or discard this patch.
src/HTTPClientAbstract.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 */
86 86
 	public function buildQuery(array $params, bool $urlencode = null, string $delimiter = null, string $enclosure = null):string {
87 87
 
88
-		if(empty($params)) {
88
+		if(empty($params)){
89 89
 			return '';
90 90
 		}
91 91
 
@@ -106,13 +106,13 @@  discard block
 block discarded – undo
106 106
 
107 107
 		foreach($params as $parameter => $value){
108 108
 
109
-			if(is_array($value)) {
109
+			if(is_array($value)){
110 110
 				// If two or more parameters share the same name, they are sorted by their value
111 111
 				// Ref: Spec: 9.1.1 (1)
112 112
 				// June 12th, 2010 - changed to sort because of issue 164 by hidetaka
113 113
 				sort($value, SORT_STRING);
114 114
 
115
-				foreach ($value as $duplicateValue) {
115
+				foreach($value as $duplicateValue){
116 116
 					$pairs[] = $parameter.'='.$enclosure.$duplicateValue.$enclosure;
117 117
 				}
118 118
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	 */
86 86
 	public function buildQuery(array $params, bool $urlencode = null, string $delimiter = null, string $enclosure = null):string {
87 87
 
88
-		if(empty($params)) {
88
+		if(empty($params)){
89 89
 			return '';
90 90
 		}
91 91
 
@@ -106,13 +106,13 @@  discard block
 block discarded – undo
106 106
 
107 107
 		foreach($params as $parameter => $value){
108 108
 
109
-			if(is_array($value)) {
109
+			if(is_array($value)){
110 110
 				// If two or more parameters share the same name, they are sorted by their value
111 111
 				// Ref: Spec: 9.1.1 (1)
112 112
 				// June 12th, 2010 - changed to sort because of issue 164 by hidetaka
113 113
 				sort($value, SORT_STRING);
114 114
 
115
-				foreach ($value as $duplicateValue) {
115
+				foreach ($value as $duplicateValue){
116 116
 					$pairs[] = $parameter.'='.$enclosure.$duplicateValue.$enclosure;
117 117
 				}
118 118
 
Please login to merge, or discard this patch.