From 452c52a3ab1f99742f35f71609197961684e7c02 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 23 May 2017 14:30:07 -0700 Subject: [PATCH] Changed variable name for consistency --- app/Http/Controllers/Api/UsersController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 3903dceb4b..1bab31243e 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -83,9 +83,9 @@ class UsersController extends Controller $users = $users->orderBy($sort, $order); break; } - $userCount = $users->count(); + $total = $users->count(); $users = $users->skip($offset)->take($limit)->get(); - return (new UsersTransformer)->transformUsers($users, $userCount); + return (new UsersTransformer)->transformUsers($users, $total); }