@@ -248,6 +248,11 @@ discard block |
||
248 | 248 | | Other Methods |
249 | 249 | | ----------------------------------------------------------------- |
250 | 250 | */ |
251 | + |
|
252 | + /** |
|
253 | + * @param string $location |
|
254 | + * @param string $from |
|
255 | + */ |
|
251 | 256 | private function moveFile($location, $from, array $data) |
252 | 257 | { |
253 | 258 | $ext = pathinfo($data['media']['url'], PATHINFO_EXTENSION); |
@@ -258,6 +263,10 @@ discard block |
||
258 | 263 | return $to; |
259 | 264 | } |
260 | 265 | |
266 | + /** |
|
267 | + * @param string $location |
|
268 | + * @param string $from |
|
269 | + */ |
|
261 | 270 | private function moveDirectory($location, $from, array $data) |
262 | 271 | { |
263 | 272 | $to = $location.'/'.Str::slug($data['newName']); |