fix: styleci

Apply fixes from StyleCI
This commit is contained in:
Rico
2023-12-05 15:42:30 +01:00
committed by GitHub

View File

@@ -1,6 +1,7 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Cache;
class SaleController extends Controller
@@ -8,8 +9,10 @@ class SaleController extends Controller
public function index()
{
$sales = Cache::remember('sales_data', 60 * 60 * 8, function () {
$shopData = json_decode(file_get_contents('https://api.shop.riotgames.com/v3/collections/'),
true);
$shopData = json_decode(
file_get_contents('https://api.shop.riotgames.com/v3/collections/'),
true
);
$salesData = array_filter($shopData, function ($collection) {
return $collection['path'] === '/event/sales';
});