Passed
Push — master ( f7937a...beaa4b )
by Shahrad
10:48
created
src/lib/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
 
108 108
 		$result->setStatusCode(curl_getinfo($CurlHandle, CURLINFO_HTTP_CODE));
109 109
 		$result->setHeaderSize(curl_getinfo($CurlHandle, CURLINFO_HEADER_SIZE));
110
-		$result->setHeaders(substr((string)$response, 0, $result->getHeaderSize()));
111
-		$result->setBody(substr((string)$response, $result->getHeaderSize()));
110
+		$result->setHeaders(substr((string) $response, 0, $result->getHeaderSize()));
111
+		$result->setBody(substr((string) $response, $result->getHeaderSize()));
112 112
 
113 113
 		curl_close($CurlHandle);
114 114
 
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 			]
327 327
 		]);
328 328
 
329
-		return (int)$response->getHeaderLine('Content-Length') ?? 0;
329
+		return (int) $response->getHeaderLine('Content-Length') ?? 0;
330 330
 	}
331 331
 
332 332
 	/**
Please login to merge, or discard this patch.
src/lib/Middleware.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 		curl_setopt($cHandler, CURLOPT_TIMEOUT, $options->getTimeout());
101 101
 
102 102
 		# If self-signed certs are allowed, set it.
103
-		if ((bool)getenv('HAS_SELF_SIGNED_CERT') === true) {
103
+		if ((bool) getenv('HAS_SELF_SIGNED_CERT') === true) {
104 104
 			curl_setopt($cHandler, CURLOPT_SSL_VERIFYPEER, false);
105 105
 			curl_setopt($cHandler, CURLOPT_SSL_VERIFYHOST, false);
106 106
 		}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,9 @@
 block discarded – undo
128 128
 
129 129
 			$headers = [];
130 130
 			foreach ($options->getHeaders() as $header => $value) {
131
-				if (Utils::insensitiveString($header, 'content-type')) continue;
131
+				if (Utils::insensitiveString($header, 'content-type')) {
132
+				    continue;
133
+				}
132 134
 				$headers[] = $header . ': ' . $value;
133 135
 			}
134 136
 			$headers[] = 'Content-Type: multipart/form-data';
Please login to merge, or discard this patch.
src/lib/Model/DownloadResult.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,9 @@
 block discarded – undo
132 132
 	public function save(string $filePath): bool
133 133
 	{
134 134
 		$pathInfo = pathinfo($filePath, PATHINFO_DIRNAME);
135
-		if (gettype($pathInfo) != "string") $pathInfo = $pathInfo['dirname'];
135
+		if (gettype($pathInfo) != "string") {
136
+		    $pathInfo = $pathInfo['dirname'];
137
+		}
136 138
 		if (!file_exists($pathInfo)) {
137 139
 			throw new \InvalidArgumentException('The directory does not exist');
138 140
 		}
Please login to merge, or discard this patch.