Test Setup Failed
Push — development ( b732b5...6e0b21 )
by Tim
08:34 queued 01:23
created
app/Http/Controllers/StaffController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $mail_password = $request->get('password');
66 66
         session()->flash('message', "New employee has been added to the application");
67 67
 
68
-        Mail::send('emails.new_user', ['user' => $user, 'password' => $mail_password], function ($m) use ($user, $mailbox) {
68
+        Mail::send('emails.new_user', ['user' => $user, 'password' => $mail_password], function($m) use ($user, $mailbox) {
69 69
             $m->from($mailbox);
70 70
             $m->to($user->email)->subject('Your user credentials!');
71 71
         });
@@ -262,8 +262,8 @@  discard block
 block discarded – undo
262 262
 
263 263
         if (Input::file()) {
264 264
             $image = Input::file('avatar');
265
-            $filename = time() . '.' . $image->getClientOriginalExtension();
266
-            $path = public_path('profilepics/' . $filename);
265
+            $filename = time().'.'.$image->getClientOriginalExtension();
266
+            $path = public_path('profilepics/'.$filename);
267 267
 
268 268
             Image::make($image->getRealPath())->resize(200, 200)->save($path);
269 269
             $user->image = $filename;
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      */
283 283
     public function destroy($id)
284 284
     {
285
-        if (! Auth::user()->is('Administrator')) {
285
+        if (!Auth::user()->is('Administrator')) {
286 286
             return Redirect::back();
287 287
         }
288 288
 
Please login to merge, or discard this patch.