diff --git a/Modules/Task/Database/Factories/TaskFactory.php b/Modules/Task/Database/Factories/TaskFactory.php index 7ff65a6..8b19009 100644 --- a/Modules/Task/Database/Factories/TaskFactory.php +++ b/Modules/Task/Database/Factories/TaskFactory.php @@ -18,7 +18,7 @@ class TaskFactory extends Factory public function definition(): array { return [ - 'user_id' => User::factory()->create()->id, + 'user_id' => User::factory()->create()->id, 'title' => fake()->title, 'description' => fake()->text, 'remind_date' => now(), diff --git a/Modules/Task/Database/Migrations/2023_04_21_190126_create_tasks_table.php b/Modules/Task/Database/Migrations/2023_04_21_190126_create_tasks_table.php index 619d1e1..24452e3 100644 --- a/Modules/Task/Database/Migrations/2023_04_21_190126_create_tasks_table.php +++ b/Modules/Task/Database/Migrations/2023_04_21_190126_create_tasks_table.php @@ -3,8 +3,6 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -use Modules\Task\Enums\TaskPriorityEnum; -use Modules\Task\Enums\TaskStatusEnum; return new class() extends Migration { /** diff --git a/Modules/Task/Http/Controllers/TaskMarkAsDoneController.php b/Modules/Task/Http/Controllers/TaskMarkAsDoneController.php index 4796e57..303dc3d 100644 --- a/Modules/Task/Http/Controllers/TaskMarkAsDoneController.php +++ b/Modules/Task/Http/Controllers/TaskMarkAsDoneController.php @@ -16,14 +16,14 @@ public function __invoke(Task $task): \Illuminate\Http\JsonResponse { if ($task->status !== TaskStatusEnum::STATUS_ACTIVE->value) { return response()->json([ - 'message' => 'You already done this task.' + 'message' => 'You already done this task.', ], Response::HTTP_BAD_REQUEST); } $task->markAsDone(); return response()->json([ - 'data' => 'The task mark as done successfully.' + 'data' => 'The task mark as done successfully.', ], Response::HTTP_OK); } } diff --git a/Modules/Task/Providers/TaskServiceProvider.php b/Modules/Task/Providers/TaskServiceProvider.php index a48ea48..fb5e18e 100644 --- a/Modules/Task/Providers/TaskServiceProvider.php +++ b/Modules/Task/Providers/TaskServiceProvider.php @@ -23,7 +23,7 @@ private function registerRoutes(): void { Route::middleware('api') ->prefix('api/'.config('app.version')) - ->group(__DIR__ . '/../Routes/api.php'); + ->group(__DIR__.'/../Routes/api.php'); } /** diff --git a/Modules/User/Database/Migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/Modules/User/Database/Migrations/2019_12_14_000001_create_personal_access_tokens_table.php index e828ad8..e637aaf 100644 --- a/Modules/User/Database/Migrations/2019_12_14_000001_create_personal_access_tokens_table.php +++ b/Modules/User/Database/Migrations/2019_12_14_000001_create_personal_access_tokens_table.php @@ -4,8 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration -{ +return new class() extends Migration { /** * Run the migrations. */