Completed
Pull Request — master (#2433)
by
unknown
02:40
created
src/Form/Field/UploadField.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Encore\Admin\Form;
6 6
 use Illuminate\Support\Facades\Storage;
7 7
 use Illuminate\Support\Facades\URL;
8
-use Illuminate\Support\MessageBag;
9 8
 use Symfony\Component\HttpFoundation\File\UploadedFile;
10 9
 
11 10
 trait UploadField
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,9 @@
 block discarded – undo
60 60
     {
61 61
         $app_url = config('app.url');
62 62
 
63
-        if (!isset($_SERVER['SERVER_PORT']))
64
-            return $app_url;
63
+        if (!isset($_SERVER['SERVER_PORT'])) {
64
+                    return $app_url;
65
+        }
65 66
 
66 67
         $parsed_url = parse_url($app_url);
67 68
         if (!isset($parsed_url['port'])
Please login to merge, or discard this patch.