From c053a65825f87cd1d994c5d2bf1f8c6ea03711b3 Mon Sep 17 00:00:00 2001 From: mohamadreza Date: Mon, 16 Sep 2024 15:53:04 +0330 Subject: [PATCH] refactor(pint): clean code with pint --- app/Http/Controllers/Admin/DashboardController.php | 2 +- app/Http/Controllers/VisitController.php | 4 ++-- routes/api.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Admin/DashboardController.php b/app/Http/Controllers/Admin/DashboardController.php index 48e08c3..4ee2e3a 100644 --- a/app/Http/Controllers/Admin/DashboardController.php +++ b/app/Http/Controllers/Admin/DashboardController.php @@ -54,7 +54,7 @@ function GetTables($day, $model) 'codes_visits_history' => $codes_visits_history, 'emails_history' => $emails_history, 'best_code_results' => $best_code_results, - "visits_history" => $visits_history + 'visits_history' => $visits_history, ]); } } diff --git a/app/Http/Controllers/VisitController.php b/app/Http/Controllers/VisitController.php index 76e0e81..bbecad1 100644 --- a/app/Http/Controllers/VisitController.php +++ b/app/Http/Controllers/VisitController.php @@ -10,8 +10,8 @@ class VisitController extends Controller public function store(Request $request) { Visit::create([ - "user_ip" => $request->ip(), - "user_agent" => $request->userAgent(), + 'user_ip' => $request->ip(), + 'user_agent' => $request->userAgent(), ]); } } diff --git a/routes/api.php b/routes/api.php index 6b80754..3821a21 100644 --- a/routes/api.php +++ b/routes/api.php @@ -8,4 +8,4 @@ // return $request->user(); //})->middleware('auth:sanctum'); -Route::get("visit", [VisitController::class, "store"]); +Route::get('visit', [VisitController::class, 'store']);