Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2024-06-18 10:44:33 +00:00
parent 5038a18397
commit e05dd6201a
2 changed files with 3 additions and 3 deletions

View File

@@ -14,13 +14,14 @@ class SaleController extends Controller
$lmi_api_key = config('services.lmi.api_key');
$response = Http::withHeaders([
'Authorization' => 'Bearer ' . $lmi_api_key,
'Authorization' => 'Bearer '.$lmi_api_key,
])->get('https://lmi.orianna.dev/api/lol-sales');
$response = $response->json();
if ($response['champion_sales'] === null) {
logger()->error('LMI has broken');
return abort(503, 'Trying to access array offset on value of type null');
}
@@ -36,7 +37,6 @@ class SaleController extends Controller
}
}
return view('sales.index', ['sales' => $sales]);
}
}