@@ -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 | */ |
@@ -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 $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) |