Passed
Push — master ( f70266...e410c8 )
by Shahrad
01:49
created
src/lib/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -426,7 +426,7 @@
 block discarded – undo
426 426
             ]
427 427
         ]);
428 428
 
429
-        return (int)$response->getHeaderLine('Content-Length') ?? 0;
429
+        return (int) $response->getHeaderLine('Content-Length') ?? 0;
430 430
     }
431 431
 
432 432
     /**
Please login to merge, or discard this patch.
src/lib/Model/HttpResponse.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,9 @@
 block discarded – undo
90 90
      */
91 91
     public function getCurlInfo(): CurlInfo|false
92 92
     {
93
-        if (empty($this->curlHandle)) return false;
93
+        if (empty($this->curlHandle)) {
94
+            return false;
95
+        }
94 96
         return new CurlInfo(curl_getinfo($this->curlHandle));
95 97
     }
96 98
 
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.