Completed
Push — dev5 ( 096a7b...37965d )
by Ron
09:47
created
app/Http/Controllers/FileLinks/LinkFilesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
             {
82 82
                 $fileID = $this->saveFile($save->getFile(), $linkID);
83 83
                 
84
-                return response()->json(['success' => true]);;
84
+                return response()->json(['success' => true]); ;
85 85
             }
86 86
         
87 87
             //  Get the current progress
Please login to merge, or discard this patch.
app/Http/Controllers/FileLinks/FileLinksController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
         {
140 140
             $hash = strtolower(Str::random(15));
141 141
             $dup  = FileLinks::where('link_hash', $hash)->get()->count();
142
-        }while($dup != 0);
142
+        } while($dup != 0);
143 143
         
144 144
         //  If the "customer id" field is populated, separate the ID from the name and prepare for insertion.
145 145
         if($data->customer_tag != null)
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         ]);
66 66
         
67 67
         if(!empty($request->file))
68
-        {            
68
+        {
69 69
             $receiver = new FileReceiver('file', $request, HandlerFactory::classFromRequest($request));
70 70
             
71 71
             //  Verify that the upload is valid and being processed
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         //  If there are no files being uploaded or the file uploade process is done
98 98
         if(isset($request->_completed) && $request->_completed)
99
-        {            
99
+        {
100 100
             $linkID = $this->createLink($request);
101 101
             if($request->session()->has('newLinkFile'))
102 102
             {
Please login to merge, or discard this patch.
app/Http/Controllers/FileLinks/UserLinksController.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     //  Upload new file
70 70
     public function update(Request $request, $id)
71
-    {        
71
+    {
72 72
         $request->validate(['name' => 'required', 'file' => 'required']);
73 73
         
74 74
         $receiver = new FileReceiver('file', $request, HandlerFactory::classFromRequest($request));
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     
102 102
     //  Save the file in the database
103 103
     private function saveFile(UploadedFile $file, $id, $request)
104
-    {        
104
+    {
105 105
         $details = FileLinks::where('link_hash', $id)->first();
106 106
         $filePath = config('filesystems.paths.links').DIRECTORY_SEPARATOR.$details->link_id;
107 107
         
Please login to merge, or discard this patch.