Strimoid/Strimoid

View on GitHub
app/Models/Folders/Popular.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method getBuilder has 97 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function getBuilder(string $model): Builder
    {
        $builder = (new $model())->newQuery();

        $groups = [
Severity: Major
Found in app/Models/Folders/Popular.php - About 3 hrs to fix

    The method getBuilder() has 103 lines of code. Current threshold is set to 100. Avoid really long methods.
    Open

        protected function getBuilder(string $model): Builder
        {
            $builder = (new $model())->newQuery();
    
            $groups = [
    Severity: Minor
    Found in app/Models/Folders/Popular.php by phpmd

    There are no issues that match your filters.

    Category
    Status