Passed
Push — master ( d048db...e350b2 )
by Shahrad
01:41
created
src/Middleware.php 1 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 (Toolkit::insensitiveString($header, 'content-type')) continue;
131
+				if (Toolkit::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/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.