Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit 41d8ded

Browse files
committed
format code
1 parent 0da877b commit 41d8ded

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/QiNiuStorage.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ class QiNiuStorage implements StorageInterface
3333
public function store(UploadedFile $file, $filename)
3434
{
3535
$uploadManager = new UploadManager();
36-
list($result, $error) = $uploadManager->putFile($this->getQiNiuAuth()->uploadToken(config('filesystems.disks.qiniu.bucket')), basename($filename), $file->getRealPath());
36+
list($result, $error) = $uploadManager->putFile(
37+
$this->getQiNiuAuth()->uploadToken(config('filesystems.disks.qiniu.bucket')),
38+
basename($filename),
39+
$file->getRealPath()
40+
);
3741

3842
if ($error !== null) {
3943
throw new StoreErrorException(trans('ERROR_UNKNOWN'));
@@ -65,7 +69,7 @@ public function lists($path, $start, $size = 20, array $allowFiles = [])
6569
foreach (collect($iterms)->sortBy('putTime', SORT_REGULAR, true)->toArray() as $file ) {
6670
$files[] = [
6771
'url' => $this->getQiNiuUrl($file['key']),
68-
'mtime' => $file['fsize'],
72+
'mtime' => $file['putTime'],
6973
];
7074
}
7175

0 commit comments

Comments
 (0)