Changed variable name for consistency

This commit is contained in:
snipe 2017-05-23 14:30:07 -07:00
parent 76926c97c1
commit 452c52a3ab

View file

@ -83,9 +83,9 @@ class UsersController extends Controller
$users = $users->orderBy($sort, $order); $users = $users->orderBy($sort, $order);
break; break;
} }
$userCount = $users->count(); $total = $users->count();
$users = $users->skip($offset)->take($limit)->get(); $users = $users->skip($offset)->take($limit)->get();
return (new UsersTransformer)->transformUsers($users, $userCount); return (new UsersTransformer)->transformUsers($users, $total);
} }