Completed
Pull Request — master (#126)
by Glenn
02:14
created
app/Http/Controllers/HomeController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * Show the application dashboard.
24 24
      *
25
-     * @return \Illuminate\Http\Response
25
+     * @return \Illuminate\Http\RedirectResponse
26 26
      */
27 27
     public function index()
28 28
     {
Please login to merge, or discard this patch.
Braces   +2 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,13 +30,9 @@
 block discarded – undo
30 30
 
31 31
       if(Bouncer::is($user)->a('Administrator', 'Manager')) {
32 32
           return redirect()->route('dashboard.administration');
33
-      }
34
-
35
-      elseif(Bouncer::is($user)->an('Agent')) {
33
+      } elseif(Bouncer::is($user)->an('Agent')) {
36 34
         return redirect()->route('dashboard.agent');
37
-      }
38
-
39
-      elseif(Bouncer::is($user)->an('Customer')) {
35
+      } elseif(Bouncer::is($user)->an('Customer')) {
40 36
           return redirect('/');
41 37
       }
42 38
         return redirect('/');
Please login to merge, or discard this patch.
app/Http/Controllers/WelcomeController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     /**
51 51
      * Save the customer.
52 52
      *
53
-     * @return \Illuminate\Http\Response
53
+     * @return \Illuminate\Http\RedirectResponse
54 54
      */
55 55
     public function registerCustomer(Request $request)
56 56
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthController.php 1 patch
Braces   +2 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,13 +50,9 @@
 block discarded – undo
50 50
 
51 51
             if(Bouncer::is($user)->a('Administrator', 'Manager')) {
52 52
                 return redirect()->route('dashboard.administration');
53
-            }
54
-
55
-            elseif(Bouncer::is($user)->an('Agents')) {
53
+            } elseif(Bouncer::is($user)->an('Agents')) {
56 54
               return redirect()->route('dashboard.agent');
57
-            }
58
-
59
-            elseif(Bouncer::is($user)->an('Customer')) {
55
+            } elseif(Bouncer::is($user)->an('Customer')) {
60 56
                 return redirect('/');
61 57
             }
62 58
 
Please login to merge, or discard this patch.