Passed
Push — master ( 951734...eda701 )
by Philippe
05:19
created
src/Models/AssetUploader.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
52 52
      * Uploads the file/files or asset by creating the
53 53
      * asset that is needed to upload the files too.
54 54
      *
55
-     * @param $file
55
+     * @param string $file
56 56
      * @param string|null $filename
57 57
      * @param bool $keepOriginal
58
-     * @return \Illuminate\Support\Collection|null|Asset
58
+     * @return null|Asset
59 59
      * @throws \Spatie\MediaLibrary\Exceptions\FileCannotBeAdded
60 60
      * @internal param array|string $files
61 61
      */
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Thinktomorrow\AssetLibrary\Models;
4 4
 
5
-use Traversable;
5
+use Illuminate\Database\Eloquent\Model;
6 6
 use Illuminate\Http\File;
7 7
 use Illuminate\Http\UploadedFile;
8
-use Illuminate\Database\Eloquent\Model;
8
+use Traversable;
9 9
 
10 10
 class AssetUploader extends Model
11 11
 {
Please login to merge, or discard this patch.
src/Models/Asset.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Thinktomorrow\AssetLibrary\Models;
4 4
 
5
-use Spatie\MediaLibrary\Media;
6
-use Illuminate\Support\Collection;
7 5
 use Illuminate\Database\Eloquent\Model;
6
+use Illuminate\Support\Collection;
8 7
 use Spatie\MediaLibrary\HasMedia\HasMediaTrait;
9
-use Thinktomorrow\AssetLibrary\Exceptions\ConfigException;
10
-use Thinktomorrow\AssetLibrary\Exceptions\AssetUploadException;
11 8
 use Spatie\MediaLibrary\HasMedia\Interfaces\HasMediaConversions;
9
+use Spatie\MediaLibrary\Media;
10
+use Thinktomorrow\AssetLibrary\Exceptions\AssetUploadException;
11
+use Thinktomorrow\AssetLibrary\Exceptions\ConfigException;
12 12
 use Thinktomorrow\AssetLibrary\Exceptions\CorruptMediaException;
13 13
 
14 14
 /**
Please login to merge, or discard this patch.
src/Traits/AssetTrait.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Thinktomorrow\AssetLibrary\Traits;
4 4
 
5
-use Traversable;
6
-use Thinktomorrow\AssetLibrary\Models\Asset;
7 5
 use Spatie\MediaLibrary\HasMedia\HasMediaTrait;
6
+use Thinktomorrow\AssetLibrary\Models\Asset;
8 7
 use Thinktomorrow\AssetLibrary\Models\AssetUploader;
8
+use Traversable;
9 9
 
10 10
 trait AssetTrait
11 11
 {
Please login to merge, or discard this patch.