@@ -261,10 +261,10 @@ |
||
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'); |
@@ -70,7 +70,7 @@ discard block |
||
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 |
||
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 |
||
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 |