Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
AmonDeShir committed Aug 8, 2024
1 parent fea22e5 commit f35a51d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/Http/Controllers/OrganizationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ public function fetchData(int $organizationId): JsonResponse
return response()->json(["message" => "please wait"], Response::HTTP_CONFLICT);
}

$jobs = [
new FetchRepositoriesJob($organizationId, Auth::user()->id),
];
$jobs = [new FetchRepositoriesJob($organizationId, Auth::user()->id)];

$organization->fetch_at = Carbon::now();
$organization->save();
Expand Down Expand Up @@ -82,12 +80,12 @@ protected function getProgress(int $organizationId): ?array

protected function findBatch(int $organizationId): ?Batch
{
$batch_id = Cache::get("fetch/" . $organizationId);
$batchId = Cache::get("fetch/" . $organizationId);

if ($batch_id === null) {
if ($batchId === null) {
return null;
}

return Bus::findBatch($batch_id);
return Bus::findBatch($batchId);
}
}

0 comments on commit f35a51d

Please sign in to comment.