Refactor code for improved readability and consistency
- Removed unnecessary blank lines in various files to enhance code clarity. - Updated comments for consistency and clarity across multiple classes and methods. - Adjusted spacing in test files for better formatting and readability.
This commit is contained in:
@@ -15,7 +15,7 @@ class AuthController extends Controller
|
||||
{
|
||||
/**
|
||||
* Guest token (walk-in-user)
|
||||
*
|
||||
*
|
||||
* Use when user visits website/app for the first time, and save the token in cache.
|
||||
*/
|
||||
public function guestToken(): JsonResponse
|
||||
@@ -28,8 +28,8 @@ class AuthController extends Controller
|
||||
|
||||
/**
|
||||
* Register user
|
||||
*
|
||||
* Register a new user and send a verification code to their phone number. Then make another request to verification route.
|
||||
*
|
||||
* Register a new user and send a verification code to their phone number. Then make another request to verification route.
|
||||
*/
|
||||
public function register(AuthRegisterRequest $request): JsonResponse
|
||||
{
|
||||
@@ -46,7 +46,7 @@ class AuthController extends Controller
|
||||
|
||||
/**
|
||||
* Login
|
||||
*
|
||||
*
|
||||
* Send a verification code to the phone number. Then make another request to verify route.
|
||||
*/
|
||||
public function login(AuthLoginRequest $request): JsonResponse
|
||||
@@ -62,7 +62,7 @@ class AuthController extends Controller
|
||||
|
||||
/**
|
||||
* Verify the code
|
||||
*
|
||||
*
|
||||
* After verification, bearer token will be returned.
|
||||
*/
|
||||
public function verify(AuthVerifyRequest $request): JsonResponse
|
||||
|
||||
Reference in New Issue
Block a user