feat: Add Heimerdinger PHP CS rules for Laravel

- Added a new phpcs.xml.dist file with specific coding standards for Laravel development.
This commit is contained in:
Rico van Zelst
2024-06-18 13:09:26 +02:00
parent 131c7b94d6
commit 20f08944c2
2 changed files with 73 additions and 1 deletions

View File

@@ -19,6 +19,11 @@ class HTMLSitemapController extends Controller
$icons = Cache::remember('sitemap_iconsCache', $twentyHoursInSeconds, fn () => SummonerIcon::orderBy('title')->get());
$posts = Sheets::all()->sortByDesc('date');
return view('sitemap.index', compact('champions', 'skins', 'icons', 'posts'));
return view('sitemap.index', [
'champions' => $champions,
'skins' => $skins,
'icons' => $icons,
'posts' => $posts,
]);
}
}