Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2017-05-23 10:18:08 +00:00
committed by StyleCI Bot
parent 4ec6000d69
commit 7b8ee415be
8 changed files with 91 additions and 68 deletions

View File

@@ -769,7 +769,7 @@ class UserController extends Controller
// fetching upload destination path
$destinationPath = 'uploads/profilepic';
// adding a random value to profile picture filename
$fileName = rand(0000, 9999).'.'.str_replace(" ", "_", $name);
$fileName = rand(0000, 9999).'.'.str_replace(' ', '_', $name);
// moving the picture to a destination folder
Input::file('profile_pic')->move($destinationPath, $fileName);
// saving filename to database