Adopt PSR-2 coding style

The Laravel framework adopts the PSR-2 coding style in version 5.1.
Laravel apps *should* adopt this coding style as well. Read the
[PSR-2 coding style guide][1] for more details and check out [PHPCS][2]
to use as a code formatting tool.

[1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2]: https://github.com/squizlabs/PHP_CodeSniffer
This commit is contained in:
Laravel Shift
2018-02-14 16:53:22 +00:00
parent e6e3615f2c
commit 4f42853bad
+2 -2
View File
@@ -190,8 +190,8 @@ class UserController extends Controller
$user->peer_hidden = Request::get('peer_hidden');
$user->show_poster = Request::get('show_poster');
$user->ratings = Request::get('ratings');
if(config('auth.TwoStepEnabled') == true) {
$user->twostep = Request::get('twostep');
if (config('auth.TwoStepEnabled') == true) {
$user->twostep = Request::get('twostep');
}
$user->save();