Completed
Push — master ( 6928ec...73303a )
by
unknown
01:52
created
src/helpers.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,6 +7,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Uploadable.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.