diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist new file mode 100644 index 0000000..3ed86e9 --- /dev/null +++ b/.phpcs.xml.dist @@ -0,0 +1,67 @@ + + Heimerdinger PHP CS rules for Laravel + + + */cache/* + */*.js + */*.css + */*.xml + */*.blade.php + */autoload.php + */storage/* + */docs/* + */vendor/* + */migrations/* + + + + + + + + + /public/index.php + + + + + + + + */database/* + */tests/* + + + + + + + + + + + */tests/* + + + + + + + + + + + + + + + + + + /config/* + + + + + + \ No newline at end of file diff --git a/app/Http/Controllers/HTMLSitemapController.php b/app/Http/Controllers/HTMLSitemapController.php index 76e299f..21d7530 100644 --- a/app/Http/Controllers/HTMLSitemapController.php +++ b/app/Http/Controllers/HTMLSitemapController.php @@ -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, + ]); } }