| @@ -54,7 +54,7 @@ | ||
| 54 | 54 |      { | 
| 55 | 55 | $router->group([ | 
| 56 | 56 | 'namespace' => $this->namespace, 'middleware' => 'web', | 
| 57 | -        ], function ($router) { | |
| 57 | +        ], function($router) { | |
| 58 | 58 |              require app_path('Http/routes.php'); | 
| 59 | 59 | }); | 
| 60 | 60 | } | 
| @@ -37,7 +37,7 @@ discard block | ||
| 37 | 37 | */ | 
| 38 | 38 | public function __construct() | 
| 39 | 39 |      { | 
| 40 | - $this->middleware($this->guestMiddleware(), ['except' => 'logout']); | |
| 40 | + $this->middleware($this->guestMiddleware(), [ 'except' => 'logout' ]); | |
| 41 | 41 | } | 
| 42 | 42 | |
| 43 | 43 | /** | 
| @@ -65,10 +65,10 @@ discard block | ||
| 65 | 65 | protected function create(array $data) | 
| 66 | 66 |      { | 
| 67 | 67 | return User::create([ | 
| 68 | - 'fname' => $data['fname'], | |
| 69 | - 'name' => $data['name'], | |
| 70 | - 'email' => $data['email'], | |
| 71 | - 'password' => bcrypt($data['password']), | |
| 68 | + 'fname' => $data[ 'fname' ], | |
| 69 | + 'name' => $data[ 'name' ], | |
| 70 | + 'email' => $data[ 'email' ], | |
| 71 | + 'password' => bcrypt($data[ 'password' ]), | |
| 72 | 72 | ]); | 
| 73 | 73 | } | 
| 74 | 74 | } | 
| @@ -17,7 +17,7 @@ | ||
| 17 | 17 | /** | 
| 18 | 18 | * @var array | 
| 19 | 19 | */ | 
| 20 | - protected static $supportedLanguages = ['nl', 'en', 'fr']; | |
| 20 | + protected static $supportedLanguages = [ 'nl', 'en', 'fr' ]; | |
| 21 | 21 | /** | 
| 22 | 22 | * Handle an incoming request. | 
| 23 | 23 | * | 
| @@ -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('available')->to(''); | 
| 19 | 19 |              Bouncer::allow('unavailable')->to(''); | 
| 20 | 20 | |
| @@ -16,7 +16,7 @@ | ||
| 16 | 16 | */ | 
| 17 | 17 | public function handle($request, Closure $next, $role) | 
| 18 | 18 |      { | 
| 19 | -        if (! auth()->user()->is($role)) { | |
| 19 | +        if (!auth()->user()->is($role)) { | |
| 20 | 20 | return redirect()->back(302); | 
| 21 | 21 | } | 
| 22 | 22 | |
| @@ -21,7 +21,7 @@ discard block | ||
| 21 | 21 | public function index() | 
| 22 | 22 |      { | 
| 23 | 23 | $data['query'] = Callback::all(); | 
| 24 | -    	return view('callbacks/list', $data); | |
| 24 | +        return view('callbacks/list', $data); | |
| 25 | 25 | } | 
| 26 | 26 | |
| 27 | 27 | |
| @@ -43,7 +43,7 @@ discard block | ||
| 43 | 43 | */ | 
| 44 | 44 | public function edit($id) | 
| 45 | 45 |      { | 
| 46 | -    	return view('callbacks/details'); | |
| 46 | +        return view('callbacks/details'); | |
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | 49 | } | 
| @@ -30,7 +30,7 @@ discard block | ||
| 30 | 30 | */ | 
| 31 | 31 | public function index() | 
| 32 | 32 |      { | 
| 33 | - $data['query'] = Callback::all(); | |
| 33 | + $data[ 'query' ] = Callback::all(); | |
| 34 | 34 |      	return view('callbacks/list', $data); | 
| 35 | 35 | } | 
| 36 | 36 | |
| @@ -44,7 +44,7 @@ discard block | ||
| 44 | 44 |      { | 
| 45 | 45 | $user = auth()->user(); | 
| 46 | 46 | |
| 47 | -        if (! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) { | |
| 47 | +        if (!$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) { | |
| 48 | 48 | return redirect()->back(); | 
| 49 | 49 | } | 
| 50 | 50 | |
| @@ -60,7 +60,7 @@ discard block | ||
| 60 | 60 |      { | 
| 61 | 61 | $user = auth()->user(); | 
| 62 | 62 | |
| 63 | -        if (! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) { | |
| 63 | +        if (!$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) { | |
| 64 | 64 | return redirect()->back(); | 
| 65 | 65 | } | 
| 66 | 66 | |
| @@ -77,7 +77,7 @@ discard block | ||
| 77 | 77 |      { | 
| 78 | 78 | $user = auth()->user(); | 
| 79 | 79 | |
| 80 | -        if (! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) { | |
| 80 | +        if (!$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) { | |
| 81 | 81 | return redirect()->back(); | 
| 82 | 82 | } | 
| 83 | 83 | |
| @@ -94,7 +94,7 @@ discard block | ||
| 94 | 94 |      { | 
| 95 | 95 | $user = auth()->user(); | 
| 96 | 96 | |
| 97 | -        if (! $user->is('Agent') || ! $user->is('Manager') || ! $user->is('Administrator')) { | |
| 97 | +        if (!$user->is('Agent') || !$user->is('Manager') || !$user->is('Administrator')) { | |
| 98 | 98 | return redirect()->back(); | 
| 99 | 99 | } | 
| 100 | 100 | |
| @@ -8,7 +8,7 @@ discard block | ||
| 8 | 8 | |
| 9 | 9 | class SettingsController extends Controller | 
| 10 | 10 |  { | 
| 11 | - /** | |
| 11 | + /** | |
| 12 | 12 | * SettingsController constructor. | 
| 13 | 13 | */ | 
| 14 | 14 | public function __construct() | 
| @@ -19,7 +19,7 @@ discard block | ||
| 19 | 19 | |
| 20 | 20 | public function index() | 
| 21 | 21 |      { | 
| 22 | -    	return view('settings.index'); | |
| 22 | +        return view('settings.index'); | |
| 23 | 23 | } | 
| 24 | 24 | |
| 25 | 25 | |
| @@ -26,6 +26,6 @@ | ||
| 26 | 26 | */ | 
| 27 | 27 | public function rules() | 
| 28 | 28 |      { | 
| 29 | - return ['password' => 'required|min:6|confirmed']; | |
| 29 | + return [ 'password' => 'required|min:6|confirmed' ]; | |
| 30 | 30 | } | 
| 31 | 31 | } | 
| @@ -29,13 +29,13 @@ discard block | ||
| 29 | 29 | public function updateProfile(Requests\ProfileValidator $input) | 
| 30 | 30 |      { | 
| 31 | 31 | // User information | 
| 32 | - User::find(auth()->user()->id)->update($input->except(['_token', 'avatar'])); | |
| 32 | + User::find(auth()->user()->id)->update($input->except([ '_token', 'avatar' ])); | |
| 33 | 33 | |
| 34 | 34 | // User image information. | 
| 35 | 35 |          if (Input::file()) { | 
| 36 | 36 |              $image    = Input::file('avatar'); | 
| 37 | - $filename = time() . '.' . $image->getClientOriginalExtension(); | |
| 38 | -            $path     = public_path('profilepics/' . $filename); | |
| 37 | + $filename = time().'.'.$image->getClientOriginalExtension(); | |
| 38 | +            $path     = public_path('profilepics/'.$filename); | |
| 39 | 39 | |
| 40 | 40 | Image::make($image->getRealPath())->resize(80, 80)->save($path); | 
| 41 | 41 | |
| @@ -56,7 +56,7 @@ discard block | ||
| 56 | 56 | */ | 
| 57 | 57 | public function updateSecurity(Requests\PasswordValidation $input) | 
| 58 | 58 |      { | 
| 59 | - $data['password'] = bcrypt($input->password); | |
| 59 | + $data[ 'password' ] = bcrypt($input->password); | |
| 60 | 60 | |
| 61 | 61 | User::find(auth()->user()->id)->update($data); | 
| 62 | 62 |          session()->flash('message', 'Your password has been updated.'); |