mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
Apply fixes from StyleCI
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user