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:
Mekan1206
2026-02-08 02:24:43 +05:00
parent 2dfa3747b5
commit c46eccb24f
38 changed files with 257 additions and 257 deletions

View File

@@ -11,7 +11,7 @@ class AppVersionController extends Controller
{
/**
* Check for app updates
*
*
* This api should be triggered when the app is **launched**, and **current version** and **operating system** should be sent in body. It should check if there is any update available for the app.\
* **Handle Response**:\
* * **Update Required**: If the update is critical/mandatory, show a **blocking modal**. The user cannot dismiss it and must click a button to go to the App Store or Google Play Store.\

View File

@@ -14,17 +14,17 @@ class AuthRegisterRequest extends FormRequest
public function rules(): array
{
return [
/**
/**
* @example 61929248
*/
'phone_number' => ['required', 'integer', 'between:61000000,71999999', 'unique:users,phone_number'],
/**
/**
* @example Nurmuhammet Allanov
*/
'name' => ['required', 'string', 'max:255'],
/**
/**
* @example 75 3rd Ave, New York, NY 10003, USA
*/
'address' => ['required', 'string', 'max:255'],

View File

@@ -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

View File

@@ -38,7 +38,7 @@ class OrderController extends Controller
*/
public function store(CheckoutOrderRequest $request, CreateOrderService $service): JsonResponse
{
$order = $service->execute(auth()->user(), $request->validated());
$order = $service->execute(auth()->user(), $request->all());
$url = null;
if ($request->payment_type_id == 3) {
@@ -81,7 +81,6 @@ class OrderController extends Controller
/**
* Remove the specified resource from storage.
*
* @param Order $order
* @return \Illuminate\Http\Response
*/
public function destroy(Order $order)

View File

@@ -4,7 +4,6 @@ namespace App\Http\Controllers\Api\V1\Product\Resources;
use App\Http\Resources\MediaResource;
use App\Repositories\Ecommerce\Product\Property\PropertyRepository;
use App\Http\Controllers\Api\V1\Product\Resources\Variant\ProductVariantResource;
use Illuminate\Http\Resources\Json\JsonResource;
class ProductIndexResource extends JsonResource