@@ -37,7 +37,7 @@ |
||
| 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 | } |
@@ -69,7 +69,7 @@ |
||
| 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 | }); |
@@ -14,7 +14,7 @@ |
||
| 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') |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $mailbox = env('MAIL_USERNAME'); |
| 60 | 60 | $mail_password = $request->get('password'); |
| 61 | 61 | \Session::flash('message', "New employee has been added to the application"); |
| 62 | - \Mail::send('emails.new_user', ['user' => $user, 'password' => $mail_password], function ($m) use ($user, $mailbox) { |
|
| 62 | + \Mail::send('emails.new_user', ['user' => $user, 'password' => $mail_password], function($m) use ($user, $mailbox) { |
|
| 63 | 63 | $m->from($mailbox); |
| 64 | 64 | $m->to($user->email)->subject('Your user credentials!'); |
| 65 | 65 | }); |
@@ -102,11 +102,11 @@ discard block |
||
| 102 | 102 | foreach ($request->get('permissions') as $permission) { |
| 103 | 103 | $role->givePermissionTo($permission); |
| 104 | 104 | } |
| 105 | - if($assign_role) |
|
| 105 | + if ($assign_role) |
|
| 106 | 106 | { |
| 107 | 107 | \Session::flash('message', 'New user role has been created'); |
| 108 | 108 | return redirect('staff/policies'); |
| 109 | - }else { |
|
| 109 | + } else { |
|
| 110 | 110 | return "Mislukt"; |
| 111 | 111 | } |
| 112 | 112 | } |
@@ -225,10 +225,10 @@ discard block |
||
| 225 | 225 | $user->address = $request->get('address'); |
| 226 | 226 | $user->email = '[email protected]'; |
| 227 | 227 | |
| 228 | - if(Input::file()) { |
|
| 228 | + if (Input::file()) { |
|
| 229 | 229 | $image = Input::file('avatar'); |
| 230 | - $filename = time() . '.' . $image->getClientOriginalExtension(); |
|
| 231 | - $path = public_path('profilepics/' . $filename); |
|
| 230 | + $filename = time().'.'.$image->getClientOriginalExtension(); |
|
| 231 | + $path = public_path('profilepics/'.$filename); |
|
| 232 | 232 | |
| 233 | 233 | Image::make($image->getRealPath())->resize(200, 200)->save($path); |
| 234 | 234 | $user->image = $filename; |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | */ |
| 246 | 246 | public function destroy($id) |
| 247 | 247 | { |
| 248 | - if (! Auth::user()->is('Administrator')) { |
|
| 248 | + if (!Auth::user()->is('Administrator')) { |
|
| 249 | 249 | return Redorect::back(); |
| 250 | 250 | } |
| 251 | 251 | |
@@ -18,7 +18,7 @@ |
||
| 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 | |