Completed
Branch dev4 (91d39d)
by Ron
09:48
created
app/Http/Middleware/CheckRole.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     //  Check and verify that the user has permission to visit the request page
12 12
     public function handle($request, Closure $next)
13 13
     {
14
-        if($request->user() === null)
14
+        if ($request->user() === null)
15 15
         {
16 16
             Log::alert($request->route().' denied for Guest');
17 17
             return response()->view('errors.401', [], 401);
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         $actions = $request->route()->getAction();
20 20
         $roles = isset($actions['roles']) ? $actions['roles'] : null;
21 21
         
22
-        if($request->user()->hasAnyRole($roles)  || !$roles)
22
+        if ($request->user()->hasAnyRole($roles) || !$roles)
23 23
         {
24 24
             return $next($request);
25 25
         }
Please login to merge, or discard this patch.
app/Notifications/NewFileUploaded.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
         return (new MailMessage)
32 32
                     ->line('A new file has been uploaded to the file link - '.$this->details->link_name)
33 33
                     ->action('Click to View Link', 
34
-                             url(route('links.info', [
35
-                                 'id' => $this->details->link_id, 
36
-                                 'name' => urlencode($this->details->link_name)
34
+                                url(route('links.info', [
35
+                                    'id' => $this->details->link_id, 
36
+                                    'name' => urlencode($this->details->link_name)
37 37
                             ])));
38 38
     }
39 39
 
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
             'type'    => 'warning',
45 45
             'message' => 'New File Uploaded to link - '.$this->details->link_name,
46 46
             'link'    => url(route('links.info', [
47
-                                 'id' => $this->details->link_id, 
48
-                                 'name' => urlencode($this->details->link_name)
47
+                                    'id' => $this->details->link_id, 
48
+                                    'name' => urlencode($this->details->link_name)
49 49
                             ]))
50 50
         ];
51 51
     }
Please login to merge, or discard this patch.