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