Completed
Push — master ( 20dd9c...f5e17e )
by PROSPER
8s
created
app/Http/Controllers/AccountController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
     public function updateProfile(Request $request)
35 35
     {
36 36
         $this->validate($request, [
37
-            'email'     => 'required|email|min:3|unique:users,email,'. $this->id,
37
+            'email'     => 'required|email|min:3|unique:users,email,'.$this->id,
38 38
             'fullname'  => 'required|min:3'
39 39
         ]);
40 40
 
41 41
         $values = $request->all();
42 42
         $this->user->fill($values)->save();
43 43
 
44
-        return redirect()->back()->with('info','Your Profile has been updated successfully');
44
+        return redirect()->back()->with('info', 'Your Profile has been updated successfully');
45 45
     }
46 46
 
47 47
     public function updateAvatar(Request $request)
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
             'file_name'     => 'required|mimes:jpeg,bmp,png|between:1,7000',
51 51
         ]);
52 52
 
53
-        $filename  = $request->file('file_name')->getRealPath();
53
+        $filename = $request->file('file_name')->getRealPath();
54 54
 
55 55
         Cloudder::upload($filename, null);
56 56
         list($width, $height) = getimagesize($filename);
57 57
 
58
-        $fileUrl = Cloudder::show(Cloudder::getPublicId(), ["width" => $width, "height" => $height]);
58
+        $fileUrl = Cloudder::show(Cloudder::getPublicId(), [ "width" => $width, "height" => $height ]);
59 59
 
60
-        $this->user->update(['avatar' => $fileUrl]);
60
+        $this->user->update([ 'avatar' => $fileUrl ]);
61 61
 
62 62
         return redirect()->back()->with('info', 'Your Avatar has been updated Successfully');
63 63
     }
Please login to merge, or discard this patch.