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

Commit ae6c06b

Browse files
author
yueziii
committed
style update
1 parent 1286c67 commit ae6c06b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Events/Catched.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class Catched
3737
*/
3838
public function __construct(array $result)
3939
{
40-
// $this->file = $file;
4140
$this->result = $result;
4241
}
4342
}

src/StorageManager.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public function upload(Request $request)
8686

8787
return response()->json($response);
8888
}
89+
8990
/**
9091
* Fetch a file.
9192
*
@@ -127,12 +128,13 @@ public function fetch(Request $request)
127128

128129
return response()->json($response);
129130
}
131+
130132
/**
131133
* Download a file.
132134
*
133135
* @param \Illuminate\Http\Request $request
134136
*
135-
* @return file
137+
* @return Array
136138
*/
137139
private function download($url, $config)
138140
{
@@ -144,7 +146,7 @@ private function download($url, $config)
144146
if (strpos($imgUrl, 'http') !== 0) {
145147
return $this->error('ERROR_HTTP_LINK');
146148
}
147-
149+
148150
$context = stream_context_create(
149151
array('http' => array(
150152
'follow_location' => false, // don't follow redirects
@@ -168,7 +170,6 @@ private function download($url, $config)
168170
'file' => $img,
169171
'filename' => $filename,
170172
];
171-
172173
}
173174

174175
/**

0 commit comments

Comments
 (0)