Completed
Push — master ( f3c73f...660e59 )
by Glenn
03:41 queued 01:27
created
app/Http/Controllers/DepartmentController.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * Store a newly created resource in storage.
50 50
      *
51 51
      * @param  Requests\DepartmentsValidator $input
52
-     * @return \Illuminate\Http\Response
52
+     * @return \Illuminate\Http\RedirectResponse
53 53
      */
54 54
     public function store(Requests\DepartmentsValidator $input)
55 55
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * @param  Requests\DepartmentsValidator $input
88 88
      * @param  int $id the department id in the database.
89
-     * @return \Illuminate\Http\Response
89
+     * @return \Illuminate\Http\RedirectResponse
90 90
      */
91 91
     public function update(Requests\DepartmentsValidator $input, $id)
92 92
     {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * Remove the specified resource from storage.
99 99
      *
100 100
      * @param  int  $id the department id in the database.
101
-     * @return \Illuminate\Http\Response
101
+     * @return \Illuminate\Http\RedirectResponse
102 102
      */
103 103
     public function destroy($id)
104 104
     {
Please login to merge, or discard this patch.
app/Http/Controllers/StaffController.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,8 +88,7 @@  discard block
 block discarded – undo
88 88
           );
89 89
           session()->flash('message', 'The new user has been created and is assigned to his department and role.');
90 90
           return redirect("staff");
91
-         }
92
-         else
91
+         } else
93 92
          {
94 93
           return redirect()->back(302);
95 94
          }
@@ -193,8 +192,7 @@  discard block
 block discarded – undo
193 192
         session()->flash('message', 'The user has been removed.');
194 193
 
195 194
         return redirect()->to('/staff');
196
-      }
197
-      else
195
+      } else
198 196
       {
199 197
         return redirect()->back();
200 198
       }
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/HomeController.php 2 patches
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.
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.