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:
@@ -10,7 +10,7 @@ class CheckForUpdateRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Http\Requests\Api\V1\Auth;
|
||||
|
||||
use App\Rules\VerificationRule;
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
|
||||
@@ -15,12 +15,12 @@ class AuthVerifyRequest extends FormRequest
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
/**
|
||||
/**
|
||||
* @example 61929248
|
||||
*/
|
||||
'phone_number' => ['required', 'integer', 'between:61000000,65999999'],
|
||||
|
||||
/**
|
||||
/**
|
||||
* @example 99934
|
||||
*/
|
||||
'code' => ['required', 'integer', new VerificationRule($this->phone_number)],
|
||||
|
||||
Reference in New Issue
Block a user