Starbugstone/SnowTricks

View on GitHub
src/Controller/Trick/ShowTrickController.php

Summary

Maintainability
A
1 hr
Test Coverage

Method show has 26 lines of code (exceeds 25 allowed). Consider refactoring.
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);
Severity: Minor
Found in src/Controller/Trick/ShowTrickController.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status