Completed
Push — master ( 75c5ae...f3c73f )
by Glenn
8s
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.