Test Setup Failed
Push — master ( cd49bc...44c35f )
by Carlos
56s
created
src/QiniuAdapter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         }
183 183
     }
184 184
 
185
-    protected function getMetadata($path): FileAttributes|array
185
+    protected function getMetadata($path): FileAttributes | array
186 186
     {
187 187
         $result = $this->getBucketManager()->stat($this->bucket, $path);
188 188
         $result[0]['key'] = $path;
@@ -193,13 +193,13 @@  discard block
 block discarded – undo
193 193
     public function getUrl(string $path): string
194 194
     {
195 195
         $segments = $this->parseUrl($path);
196
-        $query = empty($segments['query']) ? '' : '?' . $segments['query'];
196
+        $query = empty($segments['query']) ? '' : '?'.$segments['query'];
197 197
 
198
-        return $this->normalizeHost($this->domain) . ltrim(implode('/', array_map('rawurlencode', explode('/', $segments['path']))), '/') . $query;
198
+        return $this->normalizeHost($this->domain).ltrim(implode('/', array_map('rawurlencode', explode('/', $segments['path']))), '/').$query;
199 199
     }
200 200
 
201 201
 
202
-    public function fetch(string $path, string $url): bool|array
202
+    public function fetch(string $path, string $url): bool | array
203 203
     {
204 204
         [$response, $error] = $this->getBucketManager()->fetch($url, $this->bucket, $path);
205 205
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     /**
214 214
      * For laravel FilesystemAdapter.
215 215
      */
216
-    public function getTemporaryUrl($path, int|string|\DateTimeInterface $expiration): string
216
+    public function getTemporaryUrl($path, int | string | \DateTimeInterface $expiration): string
217 217
     {
218 218
         if ($expiration instanceof \DateTimeInterface) {
219 219
             $expiration = $expiration->getTimestamp();
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
             $domain = "http://{$domain}";
320 320
         }
321 321
 
322
-        return rtrim($domain, '/') . '/';
322
+        return rtrim($domain, '/').'/';
323 323
     }
324 324
 
325 325
     protected static function parseUrl($url): array
Please login to merge, or discard this patch.