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-10-28 01:44:55 +00:00
parent 4edbf56950
commit ca0fe4481a
23 changed files with 36 additions and 56 deletions

View File

@@ -686,7 +686,7 @@ class UserController extends Controller
if (auth()->user()->group->is_modo || auth()->user()->id == $user->id) {
$torrents = Torrent::withAnyStatus()->sortable(['created_at' => 'desc'])->where('user_id', $user->id)->where([
['name', 'like', '%' . $request->input('name') . '%'],
])->paginate(50);
])->paginate(50);
return view('user.uploads', ['user' => $user, 'torrents' => $torrents]);
} else {
return back()->with(Toastr::error('You Are Not Authorized To Perform This Action!', 'Error 403', ['options']));