Completed
Push — master ( 5b123a...5e7977 )
by Freek
01:21
created
src/Helpers/RemoteFile.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -21,6 +21,8 @@
 block discarded – undo
21 21
     /**
22 22
      * Constructor method.
23 23
      *
24
+     * @param string $key
25
+     * @param string $disk
24 26
      * @return void
25 27
      */
26 28
     public function __construct($key, $disk)
Please login to merge, or discard this patch.
src/Filesystem/Filesystem.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@
 block discarded – undo
65 65
             );
66 66
     }
67 67
 
68
+    /**
69
+     * @param string $type
70
+     */
68 71
     public function copyToMediaLibrary(string $pathToFile, Media $media, ?string $type = null, ?string $targetFileName = null)
69 72
     {
70 73
         $destinationFileName = $targetFileName ?: pathinfo($pathToFile, PATHINFO_BASENAME);
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,14 +3,14 @@
 block discarded – undo
3 3
 namespace Spatie\MediaLibrary\Filesystem;
4 4
 
5 5
 use Illuminate\Contracts\Filesystem\Factory;
6
+use Illuminate\Support\Facades\Storage;
6 7
 use Illuminate\Support\Str;
7 8
 use Spatie\MediaLibrary\Conversion\ConversionCollection;
8 9
 use Spatie\MediaLibrary\Events\MediaHasBeenAdded;
9 10
 use Spatie\MediaLibrary\FileManipulator;
10 11
 use Spatie\MediaLibrary\Helpers\File;
11
-use Spatie\MediaLibrary\Models\Media;
12
-use Illuminate\Support\Facades\Storage;
13 12
 use Spatie\MediaLibrary\Helpers\RemoteFile;
13
+use Spatie\MediaLibrary\Models\Media;
14 14
 use Spatie\MediaLibrary\PathGenerator\PathGeneratorFactory;
15 15
 
16 16
 class Filesystem
Please login to merge, or discard this patch.
src/FileAdder/FileAdder.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@  discard block
 block discarded – undo
5 5
 use Illuminate\Database\Eloquent\Model;
6 6
 use Illuminate\Support\Facades\Storage;
7 7
 use Illuminate\Support\Traits\Macroable;
8
-use Spatie\MediaLibrary\Helpers\RemoteFile;
9 8
 use Spatie\MediaLibrary\Exceptions\FileCannotBeAdded\DiskDoesNotExist;
10 9
 use Spatie\MediaLibrary\Exceptions\FileCannotBeAdded\FileDoesNotExist;
11 10
 use Spatie\MediaLibrary\Exceptions\FileCannotBeAdded\FileIsTooBig;
@@ -15,6 +14,7 @@  discard block
 block discarded – undo
15 14
 use Spatie\MediaLibrary\Filesystem\Filesystem;
16 15
 use Spatie\MediaLibrary\HasMedia\HasMedia;
17 16
 use Spatie\MediaLibrary\Helpers\File;
17
+use Spatie\MediaLibrary\Helpers\RemoteFile;
18 18
 use Spatie\MediaLibrary\ImageGenerators\FileTypes\Image as ImageGenerator;
19 19
 use Spatie\MediaLibrary\Jobs\GenerateResponsiveImages;
20 20
 use Spatie\MediaLibrary\MediaCollection\MediaCollection;
Please login to merge, or discard this patch.