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

@@ -1,9 +1,9 @@
<?php <?php
use App\Models\ChampionImage; use App\Models\ChampionImage;
use Illuminate\Support\Facades\Cache;
use Intervention\Image\Drivers\Gd\Driver; use Intervention\Image\Drivers\Gd\Driver;
use Intervention\Image\ImageManager; use Intervention\Image\ImageManager;
use Illuminate\Support\Facades\Cache;
function getRoleIcon($roleName): string function getRoleIcon($roleName): string
{ {

View File

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