@@ -26,7 +26,7 @@ |
||
26 | 26 | * Determine if the model or given attribute(s) have been modified. |
27 | 27 | * Implemented in \Illuminate\Database\Eloquent\Model |
28 | 28 | * |
29 | - * @param array|string|null $attributes = null |
|
29 | + * @param string $attributes = null |
|
30 | 30 | * |
31 | 31 | * @return bool |
32 | 32 | */ |
@@ -6,8 +6,6 @@ |
||
6 | 6 | use Illuminate\Database\Eloquent\Model; |
7 | 7 | use Illuminate\Http\UploadedFile; |
8 | 8 | use Illuminate\Support\Facades\Log; |
9 | -use Illuminate\Support\Facades\Storage; |
|
10 | -use Illuminate\Support\Facades\URL; |
|
11 | 9 | use Padosoft\Uploadable\Events\UploadDeleteExecuted; |
12 | 10 | use Padosoft\Uploadable\Events\UploadExecuted; |
13 | 11 |
@@ -7,6 +7,10 @@ discard block |
||
7 | 7 | //TODO: move some this functions into padosoft/support or padosoft/laravel-support |
8 | 8 | |
9 | 9 | if (!function_exists('getFilenameWithoutExtension')) { |
10 | + |
|
11 | + /** |
|
12 | + * @param string|null $filePath |
|
13 | + */ |
|
10 | 14 | function getFileNameWithoutExtension($filePath){ |
11 | 15 | if ($filePath == '' || is_dir($filePath) || \Illuminate\Support\Str::endsWith($filePath,'/')) { |
12 | 16 | return ''; |
@@ -25,7 +29,7 @@ discard block |
||
25 | 29 | /** |
26 | 30 | * Return the file name of uploaded file (without path and witout extension). |
27 | 31 | * Ex.: /public/upload/pippo.txt ritorna 'pippo' |
28 | - * @param UploadedFile $uploadedFile |
|
32 | + * @param Illuminate\Http\UploadedFile $uploadedFile |
|
29 | 33 | * @return string |
30 | 34 | */ |
31 | 35 | function getUploadedFilenameWithoutExtension(\Illuminate\Http\UploadedFile $uploadedFile) |