src/Controller/Trick/ShowTrickController.php
Method show
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show(Trick $trick, string $slug, Request $request)
{
//Checking if slug is equal to the ID. This is for SEO and external links
if ($trick->getSlug() !== $slug) {
return $this->correctSlug($trick);