Completed
Pull Request — master (#237)
by Tim
06:53
created
app/Http/Controllers/SickController.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * Store a newly created resource in storage.
42 42
      *
43 43
      * @param  \Illuminate\Http\Request  $request
44
-     * @return \Illuminate\Http\Response
44
+     * @return \Illuminate\Http\RedirectResponse
45 45
      */
46 46
     public function store(Request $request)
47 47
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             $mailbox = env('MAIL_USERNAME');
70 70
 
71 71
             \Session::flash('message', "Information has been saved to the database");
72
-            \Mail::send('emails.new_sick', ['data' => $data], function ($m) use ($mailbox, $subject) {
72
+            \Mail::send('emails.new_sick', ['data' => $data], function($m) use ($mailbox, $subject) {
73 73
                 $m->from($mailbox);
74 74
                 $m->to("[email protected]")->subject("$subject");
75 75
             });
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@
 block discarded – undo
72 72
             \Mail::send('emails.new_sick', ['data' => $data], function ($m) use ($mailbox, $subject) {
73 73
                 $m->from($mailbox);
74 74
                 /** Send confirmation mail to all managers in the department from the user.
75
-                *$m->to("")->subject("$subject");
76
-                */
75
+                 *$m->to("")->subject("$subject");
76
+                 */
77 77
             });
78 78
 
79 79
             return redirect('sick');
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-use App\Http\Requests;
7 6
 use App\Http\Controllers\Controller;
8 7
 use App\User;
9 8
 use App\Teams;
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function map(Router $router)
39 39
     {
40
-        $router->group(['namespace' => $this->namespace], function ($router) {
40
+        $router->group(['namespace' => $this->namespace], function($router) {
41 41
             require app_path('Http/routes.php');
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function boot()
16 16
     {
17
-        Bouncer::seeder(function () {
17
+        Bouncer::seeder(function() {
18 18
             Bouncer::allow('Agent');
19 19
 
20 20
             Bouncer::allow('Administrator')
Please login to merge, or discard this patch.
app/Http/Controllers/BreakController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-
7
-use App\Http\Requests;
8 6
 use App\Http\Controllers\Controller;
9 7
 
10 8
 class SettingsController extends Controller
Please login to merge, or discard this patch.
app/Http/Controllers/DepartmentsController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use App\Http\Requests;
7 7
 use App\Departments;
8 8
 use App\Department_members;
9
-use Mail;
10 9
 use App\User;
11 10
 
12 11
 class DepartmentsController extends Controller
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * Store a newly created resource in storage.
52 52
      *
53 53
      * @param  Requests\DepartmentsValidator|Request $request
54
-     * @return \Illuminate\Http\Response
54
+     * @return \Illuminate\Http\RedirectResponse
55 55
      */
56 56
     public function store(Requests\DepartmentsValidator $request)
57 57
     {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *
103 103
      * @param  \Illuminate\Http\Request  $request
104 104
      * @param  int  $id
105
-     * @return \Illuminate\Http\Response
105
+     * @return \Illuminate\Http\RedirectResponse
106 106
      */
107 107
     public function update(Request $request, $id)
108 108
     {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      * Remove the specified resource from storage.
138 138
      *
139 139
      * @param  Request $request
140
-     * @return \Illuminate\Http\Response
140
+     * @return \Illuminate\Http\RedirectResponse
141 141
      */
142 142
     public function destroy(Request $request)
143 143
     {
Please login to merge, or discard this patch.
app/Http/Controllers/TypesController.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * Store a newly created resource in storage.
36 36
      *
37 37
      * @param  \Illuminate\Http\Request  $request
38
-     * @return \Illuminate\Http\Response
38
+     * @return \Illuminate\Http\RedirectResponse
39 39
      */
40 40
     public function store(Request $request)
41 41
     {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * Remove the specified resource from storage.
86 86
      *
87 87
      * @param  int  $id
88
-     * @return \Illuminate\Http\Response
88
+     * @return \Illuminate\Http\RedirectResponse
89 89
      */
90 90
     public function destroy($id)
91 91
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use App\Tasks;
6 6
 use Illuminate\Http\Request;
7
-
8 7
 use App\Http\Requests;
9 8
 use App\Http\Controllers\Controller;
10 9
 
Please login to merge, or discard this patch.
app/Http/Controllers/StaffController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
         $injectionData = ['user' => $user, 'password' => $mail_password];
74 74
 
75
-        Mail::send('emails.new_user', $injectionData, function ($m) use ($user, $mailbox) {
75
+        Mail::send('emails.new_user', $injectionData, function($m) use ($user, $mailbox) {
76 76
             $m->from($mailbox);
77 77
             $m->to($user->email)->subject('Your user credentials!');
78 78
         });
Please login to merge, or discard this patch.
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @param Requests\StaffValidator|Request $request
60 60
      *
61
-     * @return mixed
61
+     * @return \Illuminate\Http\RedirectResponse
62 62
      */
63 63
     public function store(Requests\StaffValidator $request)
64 64
     {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      * @param Int,    $id
93 93
      * @param Request $request
94 94
      *
95
-     * @return mixed
95
+     * @return \Illuminate\Http\RedirectResponse
96 96
      */
97 97
     public function updateUser($id, Request $request)
98 98
     {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     /**
138 138
      * @param Request $request
139 139
      *
140
-     * @return string
140
+     * @return \Illuminate\Http\RedirectResponse
141 141
      */
142 142
     public function addRole(Request $request)
143 143
     {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      *
170 170
      * @param int, $id
171 171
      *
172
-     * @return redirect
172
+     * @return \Illuminate\Http\RedirectResponse
173 173
      */
174 174
     public function destroyRole($id)
175 175
     {
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @param Request $request
214 214
      *
215
-     * @return redirect
215
+     * @return \Illuminate\Http\RedirectResponse
216 216
      */
217 217
     public function savePermission(Request $request)
218 218
     {
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
      * Delete a permission out off timecontrol.
227 227
      *
228 228
      * @param int, $id, the id off the permission.
229
-     * @return Redirect
229
+     * @return \Illuminate\Http\RedirectResponse
230 230
      */
231 231
     public function destroyPermission($id)
232 232
     {
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
      * Update the specified resource in storage.
291 291
      *
292 292
      * @param Requests\accountManagementValidator|Request $request
293
-     * @return \Illuminate\Http\Response
293
+     * @return \Illuminate\Http\RedirectResponse
294 294
      */
295 295
     public function update(Requests\accountManagementValidator $request)
296 296
     {
Please login to merge, or discard this patch.
app/Http/Controllers/SettingsController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * Store a newly created resource in storage.
42 42
      *
43 43
      * @param  \Illuminate\Http\Request  $request
44
-     * @return \Illuminate\Http\Response
44
+     * @return \Illuminate\Http\RedirectResponse
45 45
      */
46 46
     public function store(Request $request)
47 47
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-
7 5
 use App\Http\Requests;
8 6
 use App\Http\Controllers\Controller;
9 7
 
Please login to merge, or discard this patch.
app/Console/Kernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      *
13 13
      * @var array
14 14
      */
15
-    protected $commands = [ ];
15
+    protected $commands = [];
16 16
 
17 17
     /**
18 18
      * Define the application's command schedule.
Please login to merge, or discard this patch.