Completed
Pull Request — master (#107)
by Glenn
15:28 queued 09:51
created
app/Http/Controllers/SickController.php 1 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.
app/Http/Controllers/TeamsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function index()
20 20
     {
21
-        $teams = Teams::orderBy('name', 'asc')->paginate(10);;
21
+        $teams = Teams::orderBy('name', 'asc')->paginate(10); ;
22 22
         return view('teams/list', ['teams' => $teams]);
23 23
     }
24 24
 
Please login to merge, or discard this patch.
app/Http/Controllers/SettingsController.php 3 patches
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.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     'Y.m.d' => '2010.12.23',
28 28
     'd.m.Y' => '23.12.2010',
29 29
     'm.d.Y' => '12.23.2010',
30
-  );
30
+    );
31 31
 
32 32
     $time_formats = array (
33 33
     'H:i' => '23:00',
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
     'h:iA' => '11:00PM',
36 36
     'h:i a' => '11:00 pm',
37 37
     'h:i A' => '11:00 PM',
38
-  );
38
+    );
39 39
 
40
-     return view('settings/basic', ['date_formats' => $date_formats, 'time_formats' => $time_formats]);
40
+        return view('settings/basic', ['date_formats' => $date_formats, 'time_formats' => $time_formats]);
41 41
     }
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     'm.d.Y' => '12.23.2010',
30 30
   );
31 31
 
32
-    $time_formats = array (
32
+    $time_formats = array(
33 33
     'H:i' => '23:00',
34 34
     'h:ia' => '11:00pm',
35 35
     'h:iA' => '11:00PM',
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/TaskController.php 2 patches
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.
Indentation   +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 store(Request $request)
39 39
     {
40
-       //
40
+        //
41 41
     }
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/StaffController.php 3 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * Store a newly created employee in storage.
48 48
      *
49 49
      * @param Request $request
50
-     * @return mixed
50
+     * @return \Illuminate\Http\RedirectResponse
51 51
      */
52 52
     public function store(Request $request)
53 53
     {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      *
79 79
      * @param  Int, $id
80 80
      * @param  Request $request
81
-     * @return mixed
81
+     * @return \Illuminate\Http\RedirectResponse
82 82
      */
83 83
     public function updateUser($id, Request $request)
84 84
     {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * Remove the user role.
151 151
      *
152 152
      * @param  int, $id
153
-     * @return redirect
153
+     * @return \Illuminate\Http\RedirectResponse
154 154
      */
155 155
     public function destroyRole($id)
156 156
     {
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      * Save the new permission.
184 184
      *
185 185
      * @param  Request $request
186
-     * @return redirect
186
+     * @return \Illuminate\Http\RedirectResponse
187 187
      */
188 188
     public function save_permission(Request $request)
189 189
     {
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      * Update the specified resource in storage.
250 250
      *
251 251
      * @param  \Illuminate\Http\Request $request
252
-     * @return \Illuminate\Http\Response
252
+     * @return \Illuminate\Http\RedirectResponse
253 253
      */
254 254
     public function update(Request $request)
255 255
     {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -261,10 +261,10 @@
 block discarded – undo
261 261
     public function update(Request $request)
262 262
     {
263 263
         /** TODO: Add validation - Tjoosten
264
-        *  <<<<<<< Updated upstream
265
-        *  =======
266
-        *  >>>>>>> Stashed changes 
267
-        */
264
+         *  <<<<<<< Updated upstream
265
+         *  =======
266
+         *  >>>>>>> Stashed changes 
267
+         */
268 268
         $user = User::findOrFail(auth()->user()->id);
269 269
         $user->fname = $request->get('email');
270 270
         $user->name = $request->get('name');
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         $injectionData = ['user' => $user, 'password' => $mail_password];
72 72
         
73
-        Mail::send('emails.new_user', $injectionData, function ($m) use ($user, $mailbox) {
73
+        Mail::send('emails.new_user', $injectionData, function($m) use ($user, $mailbox) {
74 74
             $m->from($mailbox);
75 75
             $m->to($user->email)->subject('Your user credentials!');
76 76
         });
@@ -274,8 +274,8 @@  discard block
 block discarded – undo
274 274
 
275 275
         if (Input::file()) {
276 276
             $image = Input::file('avatar');
277
-            $filename = time() . '.' . $image->getClientOriginalExtension();
278
-            $path = public_path('profilepics/' . $filename);
277
+            $filename = time().'.'.$image->getClientOriginalExtension();
278
+            $path = public_path('profilepics/'.$filename);
279 279
 
280 280
             Image::make($image->getRealPath())->resize(200, 200)->save($path);
281 281
             $user->image = $filename;
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      */
295 295
     public function destroy($id)
296 296
     {
297
-        if (! Auth::user()->is('Administrator')) {
297
+        if (!Auth::user()->is('Administrator')) {
298 298
             return Redirect::back();
299 299
         }
300 300
 
Please login to merge, or discard this patch.
app/Http/Controllers/DepartmentsController.php 1 patch
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.
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   -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.