Completed
Pull Request — master (#1705)
by Voyula
02:37 queued 01:12
created
src/Conversion/ConversionCollection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      *
48 48
      * @param string $name
49 49
      *
50
-     * @return mixed
50
+     * @return Conversion
51 51
      *
52 52
      * @throws \Spatie\MediaLibrary\Exceptions\InvalidConversion
53 53
      */
Please login to merge, or discard this patch.
src/Models/Media.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
 
157 157
     /**
158 158
      * @param string $name
159
-     * @param mixed $value
159
+     * @param boolean $value
160 160
      *
161 161
      * @return $this
162 162
      */
Please login to merge, or discard this patch.
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 1 patch
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.
src/HasMedia.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -501,7 +501,7 @@
 block discarded – undo
501 501
      *
502 502
      * @param string $collectionName
503 503
      *
504
-     * @return mixed
504
+     * @return Collection
505 505
      */
506 506
     public function loadMedia(string $collectionName)
507 507
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,6 +9,7 @@  discard block
 block discarded – undo
9 9
 use Illuminate\Support\Collection;
10 10
 use Illuminate\Support\Facades\Validator;
11 11
 use Illuminate\Support\Str;
12
+use Spatie\MediaLibrary\Contracts\HasMedia;
12 13
 use Spatie\MediaLibrary\Conversion\Conversion;
13 14
 use Spatie\MediaLibrary\Events\CollectionHasBeenCleared;
14 15
 use Spatie\MediaLibrary\Exceptions\FileCannotBeAdded\InvalidBase64Data;
@@ -18,7 +19,6 @@  discard block
 block discarded – undo
18 19
 use Spatie\MediaLibrary\Exceptions\MediaCannotBeUpdated;
19 20
 use Spatie\MediaLibrary\FileAdder\FileAdder;
20 21
 use Spatie\MediaLibrary\FileAdder\FileAdderFactory;
21
-use Spatie\MediaLibrary\Contracts\HasMedia;
22 22
 use Spatie\MediaLibrary\MediaCollection\MediaCollection;
23 23
 use Spatie\MediaLibrary\MediaRepository;
24 24
 use Spatie\MediaLibrary\Models\Media;
Please login to merge, or discard this patch.