Passed
Branch 0.5 (404206)
by Philippe
05:17
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   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,14 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Thinktomorrow\AssetLibrary\Models;
4 4
 
5
-use Thinktomorrow\Locale\Locale;
6
-use Illuminate\Support\Collection;
7
-use Spatie\MediaLibrary\Models\Media;
8 5
 use Illuminate\Database\Eloquent\Model;
6
+use Illuminate\Support\Collection;
9 7
 use Spatie\MediaLibrary\HasMedia\HasMedia;
10 8
 use Spatie\MediaLibrary\HasMedia\HasMediaTrait;
11
-use Thinktomorrow\AssetLibrary\Exceptions\ConfigException;
9
+use Spatie\MediaLibrary\Models\Media;
12 10
 use Thinktomorrow\AssetLibrary\Exceptions\AssetUploadException;
11
+use Thinktomorrow\AssetLibrary\Exceptions\ConfigException;
13 12
 use Thinktomorrow\AssetLibrary\Exceptions\CorruptMediaException;
14 13
 
15 14
 /**
Please login to merge, or discard this patch.
src/Traits/AssetTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      * @param $file
73 73
      * @param string $type
74 74
      * @param string|null $locale
75
-     * @param null $filename
75
+     * @param string $filename
76 76
      * @param bool $keepOriginal
77 77
      * @throws \Spatie\MediaLibrary\Exceptions\FileCannotBeAdded
78 78
      * @throws \Thinktomorrow\AssetLibrary\Exceptions\AssetUploadException
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Thinktomorrow\AssetLibrary\Traits;
4 4
 
5
-use Thinktomorrow\AssetLibrary\Models\Asset;
6 5
 use Spatie\MediaLibrary\HasMedia\HasMediaTrait;
6
+use Thinktomorrow\AssetLibrary\Models\Asset;
7 7
 use Thinktomorrow\AssetLibrary\Models\AssetUploader;
8 8
 
9 9
 trait AssetTrait
Please login to merge, or discard this patch.