Code cleanup

This commit is contained in:
James Cole
2021-03-21 09:15:40 +01:00
parent da1751940e
commit 206845575c
317 changed files with 7418 additions and 7362 deletions

View File

@@ -77,7 +77,7 @@ class UserController extends Controller
{
/** @var User $admin */
$admin = auth()->user();
if($admin->id === $user->id) {
if ($admin->id === $user->id) {
return response()->json([], 500);
}
@@ -98,7 +98,7 @@ class UserController extends Controller
public function index(): JsonResponse
{
// user preferences
$pageSize = (int) app('preferences')->getForUser(auth()->user(), 'listPageSize', 50)->data;
$pageSize = (int)app('preferences')->getForUser(auth()->user(), 'listPageSize', 50)->data;
$manager = $this->getManager();
// build collection